Jump to content

Please check the RunOnceEx.cmd file


Recommended Posts

The following is the RunOnceEx.cmd file (Note in the serial part of nero I have have put XXX in place of the serial.)

@Echo Off

SET PP=

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

REG ADD %KEY% /V TITLE /D "Program Installation" /f

REG ADD %KEY%\000 /VE /D "Acrobat Reader 7.0" /f

REG ADD %KEY%\000 /V 1 /D "%PP%%cdrom%\apps\AdbeRdr70_enu_full.exe -p"-s /v\"/qn\""" /f

REG ADD %KEY%\001 /VE /D "DVD Region Free 5.5" /f

REG ADD %KEY%\001 /V 1 /D "%PP%%cdrom%\apps\DVDRegionFree55.exe /VERYSILENT /SP-" /f

REG ADD %KEY%\002 /VE /D "Google Toolbar (without advanced features)" /f

REG ADD %KEY%\002 /V 1 /D "%PP%%cdrom%\apps\GoogleToolbarInstaller.exe /q /d" /f

REG ADD %KEY%\003 /VE /D "Nero Burning ROM 6.6.0.6" /f

REG ADD %KEY%\003 /V 1 /D "%PP%%cdrom%\apps\nero6606.exe /SILENT /NOREBOOT /SN=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX /WRITE_SN" /f

REG ADD %KEY%\004 /VE /D "SpyBot Search & Destroy" /f

REG ADD %KEY%\004 /V 1 /D "%PP%%cdrom%\apps\spybotsd13.exe /verysilent" /f

REG ADD %KEY%\005 /VE /D "TuneUp Utilities" /f

REG ADD %KEY%\005 /V 1 /D "%PP%%cdrom%\apps\TU2004TrialEN.exe /q" /f

REG ADD %KEY%\006 /VE /D "WinRAR 3.42" /f

REG ADD %KEY%\006 /V 1 /D "%PP%%cdrom%\apps\wrar342.exe /s" /f

REG ADD %KEY%\007 /VE /D "32bitFAX" /f

REG ADD %KEY%\007 /V 1 /D "%PP%%cdrom%\apps\32bisx.exe" /f

REG ADD %KEY%\008 /VE /D "PowerDVD5" /f

REG ADD %KEY%\008 /V 1 /D "%PP%%cdrom%\apps\PDVD5.exe" /f

REG ADD %KEY%\009 /VE /D "Yahoo Messenger 6" /f

REG ADD %KEY%\009 /V 1 /D "%PP%%cdrom%\apps\ymsgr_1643.exe /s" /f

REG ADD %KEY%\009 /V 2 /D "taskkill /f /t /im ypager.exe" /f

REG ADD %KEY%\010 /VE /D "WinZip 9" /f

REG ADD %KEY%\010 /V 1 /D "%PP%%cdrom%\apps\winzip90" /f

REG ADD %KEY%\011 /VE /D "Flash player" /f

REG ADD %KEY%\011 /V 1 /D "%PP%%cdrom%\apps\flash\flash.exe /silent" /f

REG ADD %KEY%\012 /VE /D "Advanced Gif Animator" /f

REG ADD %KEY%\012 /V 1 /D "%PP%%cdrom%\apps\gifanimator.exe /silent" /f

REG ADD %KEY%\013 /VE /D "Spyware Doctor" /f

REG ADD %KEY%\013 /V 1 /D "%PP%%cdrom%\apps\sdinstall.exe /silent" /f

REG ADD %KEY%\014 /VE /D "Sify Broadband" /f

REG ADD %KEY%\014 /V 1 /D "%PP%%cdrom%\apps\sify.exe /silent" /f

REG ADD %KEY%\015 /VE /D "Video Inspector" /f

REG ADD %KEY%\015 /V 1 /D "%PP%%cdrom%\apps\videoinspector.exe /silent" /f

REG ADD %KEY%\016 /VE /D "Zone Alarm security suite" /f

REG ADD %KEY%\016 /V 1 /D "%PP%%cdrom%\apps\zone\zone.exe" /f

REG ADD %KEY%\020 /VE /D "FreeRAM" /f

REG ADD %KEY%\020 /V 1 /D "%PP%%cdrom%\apps\freeram.exe" /f

REG ADD %KEY%\021 /VE /D "FlashGet 1.4" /f

REG ADD %KEY%\021 /V 1 /D "%PP%%cdrom%\apps\flashget.exe" /f

EXIT

Will this file work??? Or do I have to change the %cdrom% to %systemdrive%

Also , Are all the files on the cd copied onto the harddisk??? (For example suppose if the installation files of the above programs are placed under apps folder in the cdrom ie the location is %cdrom%\apps\ so When these files are copied will the location of the installation files be %systemdrive%\apps ???)

Suppose if i want to add the cmdow.exe what line should i add at the starting and also where should cmdow.exe file be placed??

Link to comment
Share on other sites


1) Why do you have the PP variable? I've never used anything like it and all my RunOnceEx installs have been fine. Unless there's a specific reason for it, I would remove it.

2) As for the files being copied to the hard drive, have a look through the UACD Guide here for information on the $OEM$ folders. This is where I learned all about this stuff. You'll also find all the information on how to incorporate the %CDROM% variable properly. Just a note, you'll end up using one or the other. I'd suggest implementing both and testing them in VMWare or VirtualPC for your own benefit. Ultimately, the CDROM is probably the way to go, since you'll end up with less files on your hard drive. You'll also find more information on CMDOW.

To quickly answer your question, only files that are located in specific places in a folder on the CD named $OEM$ will be copied to the hard drive. All other files will stay on the CD. If you have a folder named apps where all your installers are, then the code you posted looks fairly good (except for the PP variable).

That site is the UACD bible/koran/*insert book of choice here*.

Also, next time you post, use

 tags. It makes the actual file itself a lot easier to read.

Good luck and welcome to the forums!

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