bart of borg Posted February 11, 2005 Share Posted February 11, 2005 I am having trouble getting my cleanup.cmd to work. I have not been able to get it to work - no matter where i put it either. I'm sure it's something simple but, I've read so many posts looking for the answer that i think i'm getting an aneurism! Here is my configs...Winnt.sif[setup Params]UserExecute = "%systemdrive%\install\tweaks.cmd"[Guirunonce]%systemdrive%\install\bootlogo.cmdCommand0=%SYSTEMDRIVE%\DP\S\Sound_Control_Panels.cmd%systemdrive%\install\start.cmdMy start.cmd file is merely this:cmdow.exe @ /HDstart /wait %systemdrive%\install\wpi\WPI.cmdEXITTweaks.cmd is just the reg tweaks for my system - should not be a problem as i run them first at the T-9 portion of the install using the [setup Params]Lastly, My cleanup.cmd file;cmdow @ /HDnet user aspnet /deletereg delete /S "hkcu\software\microsoft\internet explorer\styles"RD /S /Q "%systemdrive%\DP\"RD /S /Q "%systemdrive%\install\"EXITI Run my cleanup.cmd from the WPI.cmd using the order of 999 to make sure it runs last but, It does not remove anything from the drive. Anyone see anything wrong with this? Or am i doing things in the wrong order? or the wrong way? Link to comment Share on other sites More sharing options...
FuNKeR Posted February 11, 2005 Share Posted February 11, 2005 As i read somewhere the commands in the GuiRunOnce sections are not handeled in any particular order. Mabe I'm wrong, but why don't you put the cleanup.cmd in the wpi.cmd as it is in the example wpi.cmd? Could be that it works then.cuFuNKeR Link to comment Share on other sites More sharing options...
bart of borg Posted February 11, 2005 Author Share Posted February 11, 2005 I am running cleanup.cmd from WPI......I don't have it running from guirunonce. Link to comment Share on other sites More sharing options...
bart of borg Posted February 12, 2005 Author Share Posted February 12, 2005 Got this from MSDN site.....[GuiRunOnce]. You can also launch additional commands during setup using the [GuiRunOnce] section of an unattended setup answer file. As with cmdlines.txt, this section contains a list of one or more commands that you want Setup to run after the installation is complete. However, in this method, Setup doesn't run the command lines until the first user logs on to the system after Win2K is installed. The [GuiRunOnce] section of an unattended answer file (e.g., unattend.txt) uses the syntax:[GuiRunOnce]"command_1""command_2". . ."command_x"Where "command_1" and "command_2" refer to the commands you want Setup to run and the order in which you want Setup to run them.If any of the applications launched by the commands in the [GuiRunOnce] section cause a reboot, you should determine whether the application can be launched in a way that suppresses the system reboot (e.g., through a special command-line switch). Otherwise, if the system reboots, Setup automatically removes all the commands in the [GuiRunOnce] section and the remaining commands won't run. If any of the applications [GuiRunOnce] runs require the presence of the Microsoft Windows Explorer shell, they will fail because [GuiRunOnce] runs these commands before Explorer is present. If you can't address either of these problems for an application, consider using a different method to deploy the applicationI'm going to try to use the ordering system to run cleanup.cmd from here...... Link to comment Share on other sites More sharing options...
bart of borg Posted February 12, 2005 Author Share Posted February 12, 2005 Eureka! Got it! Changed my Winnt.sif file - guirunonce section to use the "command_1 , command_2 , etc......" and it worked! Everything goes in the proper order - all files deleted and tweaks are done and all without any errors! WOOHOO! Link to comment Share on other sites More sharing options...
Astalavista Posted February 12, 2005 Share Posted February 12, 2005 question borqwhy dont u run it from runonceEX.cmd?use RunonceEX.cmd to call wpi.exe i use a modified version of wpi.cmdin wpi. u hv a cleanup.cmd in your 999 order. Link to comment Share on other sites More sharing options...
bart of borg Posted February 12, 2005 Author Share Posted February 12, 2005 question borqwhy dont u run it from runonceEX.cmd?use RunonceEX.cmd to call wpi.exe i use a modified version of wpi.cmdin wpi. u hv a cleanup.cmd in your 999 order. Well Asta, Mostly because I'm a bit confused on how to figure out runonceEX.cmd! I look at the examples and just start to shudder! LOL....I'm fairly familiar with batch Files and Dos Commands so I guess I'm more in my comfort zone without trying it. Link to comment Share on other sites More sharing options...
Astalavista Posted February 12, 2005 Share Posted February 12, 2005 cmdow @ /HID@ECHO OFFSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\001 /V 1 /D "%systemdrive%\WPI\WPI.cmd" /fEXIT[COMMANDS]"REGEDIT /S tweaks.reg""RunonceEX.cmd"prog[pn]=['Cleanup.exe']desc[pn]=['Post Install Cleanup Removing Temporary Files and All Irrelevant objects']ordr[pn]=[999]cmd1[pn]=['%cdrom%\\Software\\cleanup.cmd']rega[pn]=['%cdrom%\\Software\\cleanup.reg']dflt[pn]=['yes']cat[pn]=['Execute']pn++ Link to comment Share on other sites More sharing options...
bart of borg Posted February 13, 2005 Author Share Posted February 13, 2005 That is certainly easy enough to follow.....As it sits it's working perfectly so i think I'll leave it alone for awhile! Maybe when I update it again I'll try it your way - Thanks Asta! Link to comment Share on other sites More sharing options...
Astalavista Posted February 13, 2005 Share Posted February 13, 2005 Resistance is Futile .... do it. do it do it. LOLgood luck always happy to help. Link to comment Share on other sites More sharing options...
Swimming_Bird Posted February 13, 2005 Share Posted February 13, 2005 what's the advantage of running wpi in runonce.cmd compared to CMDLINES.TXT? Link to comment Share on other sites More sharing options...
Astalavista Posted February 13, 2005 Share Posted February 13, 2005 Swimming take a few minutes to searchthere is a 5 page topic regarding the different methods of launching wpi 7. cmdlines.txt executes at T-12 minute stagecheck this link and it will come to you. http://unattended.msfn.org/global/timeline.htm Link to comment Share on other sites More sharing options...
Swimming_Bird Posted February 13, 2005 Share Posted February 13, 2005 i was more talking about practically. I know that runonceex.cmd runs after you boot it back up and cmdlines.tx is before that. I was mainly curious as to what sort of issues occur from one or the other. I've found enough information on what sort of programs prefer both startup methods but i was wondering if any issues with WPI cropped up. Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted February 14, 2005 Share Posted February 14, 2005 Personally I prefer to run WPI AFTER Windows is fully installed. Link to comment Share on other sites More sharing options...
Astalavista Posted February 14, 2005 Share Posted February 14, 2005 great minds think so much a like kelsenellenelvian. LOL Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now