Shikhar Posted April 29, 2005 Share Posted April 29, 2005 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 OffSET PP=SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Program Installation" /fREG ADD %KEY%\000 /VE /D "Acrobat Reader 7.0" /fREG ADD %KEY%\000 /V 1 /D "%PP%%cdrom%\apps\AdbeRdr70_enu_full.exe -p"-s /v\"/qn\""" /fREG ADD %KEY%\001 /VE /D "DVD Region Free 5.5" /fREG ADD %KEY%\001 /V 1 /D "%PP%%cdrom%\apps\DVDRegionFree55.exe /VERYSILENT /SP-" /fREG ADD %KEY%\002 /VE /D "Google Toolbar (without advanced features)" /fREG ADD %KEY%\002 /V 1 /D "%PP%%cdrom%\apps\GoogleToolbarInstaller.exe /q /d" /fREG ADD %KEY%\003 /VE /D "Nero Burning ROM 6.6.0.6" /fREG ADD %KEY%\003 /V 1 /D "%PP%%cdrom%\apps\nero6606.exe /SILENT /NOREBOOT /SN=XXXX-XXXX-XXXX-XXXX-XXXX-XXXX /WRITE_SN" /fREG ADD %KEY%\004 /VE /D "SpyBot Search & Destroy" /fREG ADD %KEY%\004 /V 1 /D "%PP%%cdrom%\apps\spybotsd13.exe /verysilent" /fREG ADD %KEY%\005 /VE /D "TuneUp Utilities" /fREG ADD %KEY%\005 /V 1 /D "%PP%%cdrom%\apps\TU2004TrialEN.exe /q" /fREG ADD %KEY%\006 /VE /D "WinRAR 3.42" /fREG ADD %KEY%\006 /V 1 /D "%PP%%cdrom%\apps\wrar342.exe /s" /fREG ADD %KEY%\007 /VE /D "32bitFAX" /fREG ADD %KEY%\007 /V 1 /D "%PP%%cdrom%\apps\32bisx.exe" /fREG ADD %KEY%\008 /VE /D "PowerDVD5" /fREG ADD %KEY%\008 /V 1 /D "%PP%%cdrom%\apps\PDVD5.exe" /fREG ADD %KEY%\009 /VE /D "Yahoo Messenger 6" /fREG ADD %KEY%\009 /V 1 /D "%PP%%cdrom%\apps\ymsgr_1643.exe /s" /fREG ADD %KEY%\009 /V 2 /D "taskkill /f /t /im ypager.exe" /fREG ADD %KEY%\010 /VE /D "WinZip 9" /fREG ADD %KEY%\010 /V 1 /D "%PP%%cdrom%\apps\winzip90" /fREG ADD %KEY%\011 /VE /D "Flash player" /fREG ADD %KEY%\011 /V 1 /D "%PP%%cdrom%\apps\flash\flash.exe /silent" /fREG ADD %KEY%\012 /VE /D "Advanced Gif Animator" /fREG ADD %KEY%\012 /V 1 /D "%PP%%cdrom%\apps\gifanimator.exe /silent" /fREG ADD %KEY%\013 /VE /D "Spyware Doctor" /fREG ADD %KEY%\013 /V 1 /D "%PP%%cdrom%\apps\sdinstall.exe /silent" /fREG ADD %KEY%\014 /VE /D "Sify Broadband" /fREG ADD %KEY%\014 /V 1 /D "%PP%%cdrom%\apps\sify.exe /silent" /fREG ADD %KEY%\015 /VE /D "Video Inspector" /fREG ADD %KEY%\015 /V 1 /D "%PP%%cdrom%\apps\videoinspector.exe /silent" /fREG ADD %KEY%\016 /VE /D "Zone Alarm security suite" /fREG ADD %KEY%\016 /V 1 /D "%PP%%cdrom%\apps\zone\zone.exe" /fREG ADD %KEY%\020 /VE /D "FreeRAM" /fREG ADD %KEY%\020 /V 1 /D "%PP%%cdrom%\apps\freeram.exe" /fREG ADD %KEY%\021 /VE /D "FlashGet 1.4" /fREG ADD %KEY%\021 /V 1 /D "%PP%%cdrom%\apps\flashget.exe" /fEXITWill 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 More sharing options...
Zxian Posted April 29, 2005 Share Posted April 29, 2005 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 More sharing options...
Shikhar Posted April 29, 2005 Author Share Posted April 29, 2005 Thanks buddy 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