Gremo Posted May 10, 2011 Share Posted May 10, 2011 (edited) 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, 2011 by Gremo Link to comment Share on other sites More sharing options...
nice_guy75 Posted May 10, 2011 Share Posted May 10, 2011 (edited) Yes, you can also put it in "Windows\Setup\Scripts" of Install.wim as well. Edited May 10, 2011 by nice_guy75 Link to comment Share on other sites More sharing options...
Gremo Posted May 10, 2011 Author Share Posted May 10, 2011 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" Link to comment Share on other sites More sharing options...
nice_guy75 Posted May 10, 2011 Share Posted May 10, 2011 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now