Jump to content

Controlling RunOnceExec numbering in CreateFile function (generate.js)


Recommended Posts

Guest blokeinkent
Posted

Hi all,

Javascript isn't my strong point I'm afraid :(

I have several things pre and post WPI, going on in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx so when WPI does it's bit in generate.js, the list looks out of order.

Is there any way of controlling the numbering (highlighted below) during the generate.js script so that the scripts output makes things neat and tidy with the other entries instead of overwriting and the lowest numbering? Say, over 005 so the items WPI is installing fall into place

Cut down excerpt:

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx /V TITLE /D "Unattended XP SP2 Install" /f

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\001 /VE /D "Windows Updates..." /f

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\001 /V 1 /D "%CDROM%\WPI\Install\Updates\dotnet11sp1.exe" /f

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\005 /VE /D "Post-Install Wizard" /f

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\005 /V 5 /D "%CDROM%\WPI\WPI.CMD" /f

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\099 /VE /D "Cleanup..." /f

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\099 /V 5 /D "%CDROM%\WPI\Install\BTS_DPs_finish.cmd" /f

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\099 /V 10 /D "%CDROM%\WPI\Install\cleanup.cmd" /f

I hope that makes sense to those in the know :)

Cheers


Guest blokeinkent
Posted

Thanks mate, I'll give it a look. In the meantime, if anyone has any info on how to do it using the latest stable release it would be much appreciated

Cheers

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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