Jump to content

So where do these go?


Recommended Posts

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.exe

Thanx,

pimp_gimp

Link to comment
Share on other sites


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

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

Heres My codes:

Prepare.cmd

cmdow @ /HID

DEL "%WINDOWS%\Downloaded Installations

DEL "%WINDOWS%\Temp

DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"

DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"

DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"

EXIT

Cleanup.cmd

cmdow @ /HID

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."

net user aspnet /delete

RD /S /Q %systemdrive%\drivers\

RD /S /Q %systemdrive%\install\

EXIT

RunOnceEx.cmd

cmdow @ /HID

@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f

REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /f

REG ADD %KEY%\040 /VE /D "DirectX 9.0b" /f

REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\DX9NTopk.exe/qn" /f

REG ADD %KEY%\040 /VE /D "MSN Messenger 6.2" /f

REG ADD %KEY%\040 /V1 /D "systemdrive\install\MSN_Messenger_6.1.0202.msi /qn" /f

REG ADD %KEY%\040 /VE /D "Cmd Here Powertoy" /f

REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\CmdHerePowertoySetup.exe /qn" /f

REG ADD %KEY%\040 /VE /D "Image Resizer Powertoy" /f

REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\ImageResizerPowertoySetup.exe /qn" /f

REG ADD %KEY%\040 /VE /D "Slide Show Powertoy" /f

REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\SlideshowPowertoySetup.exe /qn" /f

REG ADD %KEY%\040 /VE /D "Task Switch Powertoy" /f

REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\SlideshowPowertoySetup.exe /qn" /f

REG ADD %KEY%\040 /VE /D "Tweak Ui Powertoy" /f

REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\TweakUiPowertoySetup.exe /qn" /f

REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f

REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

REG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /f

REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

Found one problem already in this file... look at msn messenger I need to change to MSN_Messenger_6.2.0133.msi

and 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 CD

And also its installing the zone games and I set that to off in winnt.sif file

winnt.sif

Link to comment
Share on other sites

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 off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /f

REG ADD %KEY%\040 /VE /D "DirectX 9.0b" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\DirectX 9.0b\DX9NTopk.exe /qn" /f

REG ADD %KEY%\040 /VE /D "MSN Messenger 6.2" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\MSN\MSN_Messenger_6.2.0133.msi /qn" /f

REG ADD %KEY%\040 /VE /D "Cmd Here Powertoy" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\PowerToys\CmdHerePowertoySetup.exe /qn" /f

REG ADD %KEY%\040 /VE /D "Image Resizer Powertoy" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\PowerToys\ImageResizerPowertoySetup.exe /qn" /f

REG ADD %KEY%\040 /VE /D "Slide Show Powertoy" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\PowerToys\SlideshowPowertoySetup.exe /qn" /f

REG ADD %KEY%\040 /VE /D "Tweak Ui Powertoy" /f
REG ADD %KEY%\040 /V 1 /D "%systemdrive%\install\PowerToys\TweakUiPowertoySetup.exe /qn" /f

REG ADD %KEY%\050 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\050 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

REG ADD %KEY%\055 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\055 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

Link to comment
Share on other sites

You need to edit your RunOnceEx as so:

cmdow @ /HID
@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Applications" /f

REG ADD %KEY%\001 /VE /D "Preparing Installation..." /f
REG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\prepare.cmd" /f

REG ADD %KEY%\010 /VE /D "DirectX 9.0b" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\DirectX 9.0b\DX9NTopk.exe /qn" /f

REG ADD %KEY%\015 /VE /D "MSN Messenger 6.2" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\MSN\MSN_Messenger_6.2.0133.msi /qn" /f

REG ADD %KEY%\020 /VE /D "Cmd Here Powertoy" /f
REG ADD %KEY%\020 /V 1 /D "%systemdrive%\install\PowerToys\CmdHerePowertoySetup.exe /qn" /f

REG ADD %KEY%\025 /VE /D "Image Resizer Powertoy" /f
REG ADD %KEY%\025 /V 1 /D "%systemdrive%\install\PowerToys\ImageResizerPowertoySetup.exe /qn" /f

REG ADD %KEY%\030 /VE /D "Slide Show Powertoy" /f
REG ADD %KEY%\030 /V 1 /D "%systemdrive%\install\PowerToys\SlideshowPowertoySetup.exe /qn" /f

REG ADD %KEY%\035 /VE /D "Tweak Ui Powertoy" /f
REG ADD %KEY%\035 /V 1 /D "%systemdrive%\install\PowerToys\TweakUiPowertoySetup.exe /qn" /f

REG ADD %KEY%\040 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\040 /V 1 /D "REGEDIT /S %systemdrive%\install\regtweaks.reg" /f

REG ADD %KEY%\045 /VE /D "Cleaning Up and Rebooting" /f
REG ADD %KEY%\045 /V 1 /D "%systemdrive%\install\cleanup.cmd" /f

EXIT

You 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

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

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