May 10, 201115 yr I usually restore my Windows 7 usign an hidden system partition, and the applying the image using ImageX. I kown that SetupComplete.cmd works when you put it in DVD\Sources\$OEM$\$\Setup\Scripts; is there a way to run it with /apply switch? I mean putting it in the .wim file?Thanks Edited May 10, 201115 yr by Gremo
May 10, 201115 yr Yes, you can also put it in "Windows\Setup\Scripts" of Install.wim as well. Edited May 10, 201115 yr by nice_guy75
May 10, 201115 yr Author Yes, you can also put it in "Windows\Setup\Scripts" of Install wim as well.Thanks for helping. Do you think i can use the variable %~dp0 for referring to C:\ Windows\Setup\Scripts? And, will this work (removing the entire directory after completion)?@ECHO OFFregedit /s %~dp0Tweaks.reg%~dp0Runthis.execd %~dp0attrib -R -A -S -H *.*RMDIR /S /Q "%WINDIR%\Setup\Scripts"
May 10, 201115 yr Yes, you can also put it in "Windows\Setup\Scripts" of Install wim as well.Thanks for helping. Do you think i can use the variable %~dp0 for referring to C:\ Windows\Setup\Scripts? And, will this work (removing the entire directory after completion)?@ECHO OFFregedit /s %~dp0Tweaks.reg%~dp0Runthis.execd %~dp0attrib -R -A -S -H *.*RMDIR /S /Q "%WINDIR%\Setup\Scripts"Sorry mate I am not so comfortable with dos commands, I usually capture my install.wim to integrate applications and registry tweaks.
Create an account or sign in to comment