Jump to content

SetupComplete.cmd without DVD


Recommended Posts

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 :thumbup

Edited by Gremo
Link to comment
Share on other sites


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 OFF

regedit /s %~dp0Tweaks.reg

%~dp0Runthis.exe

cd %~dp0

attrib -R -A -S -H *.*

RMDIR /S /Q "%WINDIR%\Setup\Scripts"

Link to comment
Share on other sites

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 OFF

regedit /s %~dp0Tweaks.reg

%~dp0Runthis.exe

cd %~dp0

attrib -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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...