pimp_gimp Posted May 29, 2004 Share Posted May 29, 2004 Im having trouble getting these two files to work with RunOnceEx.cmd......its runs fine but I dont get these messages in the install: "Preparing Installation..." AND"Windows XP will now restart in 1 minute..."RunOnceEx will run but I wont get those messages.....Im wondering if I put them in the wrong place.....I put them in the $OEM$ folder the same place where RunOnceEx.cmd is, Or am I putting all three files in the wrong place?and its saying something about my TweakUi Powertoy not being able to Install, but I think I fixed that.....I think the file was named TweakUISetup.exe instead of TweakUiSetup.exeThanx, pimp_gimp Link to comment Share on other sites More sharing options...
crck3rz Posted May 29, 2004 Share Posted May 29, 2004 doesn't matter where you put Cleanup.cmd and Prepare.cmd as long as when you refer to them in your RunOnceEx it points to the right location for them. Need to see your code to see why you are getting the messages. Link to comment Share on other sites More sharing options...
Alanoll Posted May 29, 2004 Share Posted May 29, 2004 I don't think a simple lowercasing of the I will fix that problem.Like crck3rz said, we need to see that code to tell you where the files should go. RunOnceEX is obviously in the right place, or it wouldn't even start up. Link to comment Share on other sites More sharing options...
pimp_gimp Posted May 29, 2004 Author Share Posted May 29, 2004 Heres My codes:Prepare.cmd cmdow @ /HIDDEL "%WINDOWS%\Downloaded InstallationsDEL "%WINDOWS%\TempDEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"EXITCleanup.cmdcmdow @ /HIDshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."net user aspnet /deleteRD /S /Q %systemdrive%\drivers\RD /S /Q %systemdrive%\install\EXITRunOnceEx.cmdcmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Preparing Installation..." /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /fREG ADD %KEY%\040 /VE /D "DirectX 9.0b" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\DX9NTopk.exe/qn" /fREG ADD %KEY%\040 /VE /D "MSN Messenger 6.2" /fREG ADD %KEY%\040 /V1 /D "systemdrive\install\MSN_Messenger_6.1.0202.msi /qn" /fREG ADD %KEY%\040 /VE /D "Cmd Here Powertoy" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\CmdHerePowertoySetup.exe /qn" /fREG ADD %KEY%\040 /VE /D "Image Resizer Powertoy" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\ImageResizerPowertoySetup.exe /qn" /fREG ADD %KEY%\040 /VE /D "Slide Show Powertoy" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\SlideshowPowertoySetup.exe /qn" /fREG ADD %KEY%\040 /VE /D "Task Switch Powertoy" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\SlideshowPowertoySetup.exe /qn" /fREG ADD %KEY%\040 /VE /D "Tweak Ui Powertoy" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\TweakUiPowertoySetup.exe /qn" /fREG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /fREG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXITFound one problem already in this file... look at msn messenger I need to change to MSN_Messenger_6.2.0133.msiand I may need to take the 1st line out of Prepare.cmd but I dont see why?also in the cleanup.cmd I probably gonna take out the RD /S /Q %systemdrive%\drivers\ line since I didnt put drivers on my CDAnd also its installing the zone games and I set that to off in winnt.sif filewinnt.sif Link to comment Share on other sites More sharing options...
jrzycrim Posted May 29, 2004 Share Posted May 29, 2004 Going by your RunOnceEx.cmd, they need to be placed in $OEM$\$1\install\%systemdrive%\install\prepare.cmd %systemdrive%\install\cleanup.cmd Link to comment Share on other sites More sharing options...
pimp_gimp Posted May 29, 2004 Author Share Posted May 29, 2004 ok....I'll let you know if it worked or not Link to comment Share on other sites More sharing options...
Alanoll Posted May 29, 2004 Share Posted May 29, 2004 If your tweakUI is the one downloaded from the microsoft website, it WON'T work. Link to comment Share on other sites More sharing options...
pimp_gimp Posted May 30, 2004 Author Share Posted May 30, 2004 Ok whats going on......Only the reg tweaks and TweakUI installed when I changed and fixed some lines in my RunOnceEx.cmd. Why wouldnt DX9, MSN Messenger and the other Powertoys install. All powertoy entries point to the same directory, and the corresponding file....and MSN points to MSN Messenger Installer (the correct one this time)...and DX9 points to its folder.cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Preparing Installation..." /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /fREG ADD %KEY%\040 /VE /D "DirectX 9.0b" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\DirectX 9.0b\DX9NTopk.exe /qn" /fREG ADD %KEY%\040 /VE /D "MSN Messenger 6.2" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\MSN\MSN_Messenger_6.2.0133.msi /qn" /fREG ADD %KEY%\040 /VE /D "Cmd Here Powertoy" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\PowerToys\CmdHerePowertoySetup.exe /qn" /fREG ADD %KEY%\040 /VE /D "Image Resizer Powertoy" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\PowerToys\ImageResizerPowertoySetup.exe /qn" /fREG ADD %KEY%\040 /VE /D "Slide Show Powertoy" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\PowerToys\SlideshowPowertoySetup.exe /qn" /fREG ADD %KEY%\040 /VE /D "Tweak Ui Powertoy" /fREG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\PowerToys\TweakUiPowertoySetup.exe /qn" /fREG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /fREG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXIT Link to comment Share on other sites More sharing options...
jrzycrim Posted May 30, 2004 Share Posted May 30, 2004 You need to edit your RunOnceEx as so:cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications" /fREG ADD %KEY%\001 /VE /D "Preparing Installation..." /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /fREG ADD %KEY%\010 /VE /D "DirectX 9.0b" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\DirectX 9.0b\DX9NTopk.exe /qn" /fREG ADD %KEY%\015 /VE /D "MSN Messenger 6.2" /fREG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\MSN\MSN_Messenger_6.2.0133.msi /qn" /fREG ADD %KEY%\020 /VE /D "Cmd Here Powertoy" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\PowerToys\CmdHerePowertoySetup.exe /qn" /fREG ADD %KEY%\025 /VE /D "Image Resizer Powertoy" /fREG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\PowerToys\ImageResizerPowertoySetup.exe /qn" /fREG ADD %KEY%\030 /VE /D "Slide Show Powertoy" /fREG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\PowerToys\SlideshowPowertoySetup.exe /qn" /fREG ADD %KEY%\035 /VE /D "Tweak Ui Powertoy" /fREG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\PowerToys\TweakUiPowertoySetup.exe /qn" /fREG ADD %KEY%\040 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\040 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /fREG ADD %KEY%\045 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\cleanup.cmd" /fEXITYou had the same reg keys for multiple entries; 40 for example. One key was being written and then the next would overwrite the last untill you got to the entry for TweakUi. The next entry was 55 (regtweaks) so it did not overwrite the key for tweakui.How you number the keys isn't important in itself. What is important is using a different number for each application. Generally, people increment them by 5 or 10 to allow room for inserting new applications in between. Link to comment Share on other sites More sharing options...
pimp_gimp Posted May 30, 2004 Author Share Posted May 30, 2004 makes sense now.....I see what you mean by my previous post and my old RunOnceEx.cmd. if it doesnt work this time ill get back with you but I dont see why, and windows doesnt install the zonegames anymore, I just had to rearrange how the components to not install were written in the sif file. Link to comment Share on other sites More sharing options...
pimp_gimp Posted May 30, 2004 Author Share Posted May 30, 2004 Here are some screenshots of Errors I get when RunOnceEx.cmd runs......what can I do to fix this Link to comment Share on other sites More sharing options...
pimp_gimp Posted May 30, 2004 Author Share Posted May 30, 2004 DirectX Error Link to comment Share on other sites More sharing options...
pimp_gimp Posted May 30, 2004 Author Share Posted May 30, 2004 CMD Here Powertoy Error Link to comment Share on other sites More sharing options...
pimp_gimp Posted May 30, 2004 Author Share Posted May 30, 2004 Image Resizer Powertoy Error Link to comment Share on other sites More sharing options...
pimp_gimp Posted May 30, 2004 Author Share Posted May 30, 2004 Slide Show Powertoy Error 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