amazonjustice Posted December 8, 2004 Posted December 8, 2004 hello, Assuming I have all the switches correct in my RunOnceex.cmd file, that isn't enough to install the programs right? I would have to copy files from the actuall program CD into one of the folders in $OEM$. (is this right so far ;o) say for example i was going to load Paint Shop Pro 8.... I woudl have to copy theJPSP8.msi file. Where exactly do i stick this? Do I have to copy anything else, such as the TUBES folder? Your help is greatly appreciated i have been sitting infront of this screen for hours you know how it is thanks michelle
amazonjustice Posted December 8, 2004 Author Posted December 8, 2004 I'm sorry this is a crappy newbie question.... if someone could throw me a bone I would greatly appreciate it. I'm at a wall and can't move on and start testing this thing untill I get passed it. Michelle
gunsmokingman Posted December 8, 2004 Posted December 8, 2004 This is for a install from CdYou Will Need a folder Called Apps On Your XP CD For This To workfor %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%iSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "The Install Section" /fREG ADD %KEY%\000 /VE /D "Preparing Installation..." /fREG ADD %KEY%\010 /VE /D "Installing WHATEVER" /fREG ADD %KEY%\010 /V 1 /D "%CDROM%Apps\SOME-APP-FOLDER\INSTALLTHIS.EXE /silent /v/qb " /fFor More Information Please Read Thisrunonceex.htm
amazonjustice Posted December 8, 2004 Author Posted December 8, 2004 thanks, I get that part. Creating the .cmd file isn't the problem.I am trying to figure out if I need ALL the contents off the programs CD (be it PSP, NAV, Alchohol 120%) to make the install work. And if I just drop it all in the "Install" folder... or if inside the "Install" folder I should create a sub-folder for each application?michelle
Alanoll Posted December 8, 2004 Posted December 8, 2004 the best way to say it...1. You should copy over all the SETUP files. Depending on the program it depends. 2. As for where to copy, it depends on your paths in your CMD file. You could have EVEYRTHING copied into Install but if you want to be organized you can copy things into subfolders in Install. They will still be copied over during Windows Setup.
BritishBulldog Posted December 9, 2004 Posted December 9, 2004 @gunsmokingman you forgot one backslash after %CDROM%should be REG ADD %KEY%\010 /V 1 /D "%CDROM%\Apps\SOME-APP-FOLDER\INSTALLTHIS.EXE /silent /v/qb " /f@amazonjusticeAssuming I have all the switches correct in my RunOnceex.cmd file, that isn't enough to install the programs right?CorrectI would have to copy files from the actuall program CD into one of the folders in $OEM$. (is this right so far;o) Yessay for example i was going to load Paint Shop Pro 8.... I woudl have to copy theJPSP8.msi file. Where exactly do i stick this? Do I have to copy anything else, such as the TUBES folder? Yes everythingFor an app such as Paint Shop Pro 8If you make a directory in the root of your cd called APPS and in that a directory called PSP8then you would have to copy the complete Paint Shop Pro 8 files into this directory. You always need all files plus sub directories in there.The RunOnceEx.cmd would look like thiscmdow @ /HID@echo offfor %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%iSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "The Install Section" /fREG ADD %KEY%\000 /VE /D "Preparing Installation..." /fREG ADD %KEY%\010 /VE /D "Installing Paint Shop Pro 8" /fREG ADD %KEY%\010 /V 1 /D "%CDROM%\APPS\PSP8\JPSP8.msi /qn " /fIf you use this method ie. from CDROM then you wont have everything being copied to the hard drive . Install time is far shorter as the APPs directory is not copied to the hard drive but the apps are installed directly from the cd.
gunsmokingman Posted December 9, 2004 Posted December 9, 2004 No I Didnt it get passed along I used This for my Cd and It never failed.for %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%iIt Would Translate this way C:\D:\E:\all the way to zYours wth my code REG ADD %KEY%\010 /VE /D "Installing Paint Shop Pro 8" /fREG ADD %KEY%\010 /V 1 /D "%CDROM%\APPS\PSP8\JPSP8.msi /qn " /fTranlates this wayC:\\APPS\PSP8\D:\\APPS\PSP8\E:\\APPS\PSP8\This way I dont Have to Type \Apps this for each entry
BritishBulldog Posted December 9, 2004 Posted December 9, 2004 Have you tried your code? I have and it gives the registry entry as in the picture below without a slash.It does not work because with thisfor %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%iyou might be checking if say D:\SETUP.exe exists and if it is you give CDROM the value from %%i at the end of the line which still is only C: D: E: and so forth, where do you give it the slash?
Radimus Posted December 9, 2004 Posted December 9, 2004 here is mine: (and it works just fine)cmdow @ /HID@echo Offset key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExFOR %%D IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%D:\WIN51IP SET CDROM=%%D:REG ADD %KEY% /V TITLE "Installing Applications" /fREG ADD %KEY%\010 /VE /D "Installation of Additional Components" /fREG ADD %KEY%\010 /V 1 /D "%windir%\First.cmd" /fREG ADD %KEY%\020 /VE /D "Installation of Type 1 Hotfixes" /fREG ADD %KEY%\020 /V 1 /D "%windir%\Type1.cmd" /fREG ADD %KEY%\030 /VE /D "Installation of Type 2 Hotfixes" /fREG ADD %KEY%\030 /V 1 /D "%windir%\Type2.cmd" /fREG ADD %KEY%\040 /VE /D "Installation of Type 3 Hotfixes" /fREG ADD %KEY%\040 /V 1 /D "%windir%\Type3.cmd" /fREG ADD %KEY%\050 /VE /D "Installation of Additional Components" /fREG ADD %KEY%\050 /V 1 /D "%windir%\Last.cmd" /fREG ADD %KEY%\100 /VE /D "7zip" /fREG ADD %KEY%\100 /V 1 /D "%cdrom%\Installs\7zip\7z313.exe -y /q /r:n" /fREG ADD %KEY%\105 /VE /D "Avast Antivirus" /fREG ADD %KEY%\105 /V 1 /D "%cdrom%\Installs\AvastAV\setupeng.exe /SILENT /SP- /NORESTART" /fREG ADD %KEY%\110 /VE /D "CDBurnerXP" /fREG ADD %KEY%\110 /V 1 /D "%cdrom%\Installs\CDBurnerXP\CDBurnerXP_Pro_3.msi /qb-!" /fREG ADD %KEY%\115 /VE /D "Daemon-Tools and accessories" /fREG ADD %KEY%\115 /V 1 /D "%cdrom%\Installs\DaemonTools\daemon.msi /qn REBOOT=ReallySuppress" /fREG ADD %KEY%\115 /V 2 /D "%cdrom%\Installs\DaemonTools\awxDTools_105b056.exe /S" /fREG ADD %KEY%\115 /V 3 /D "%cdrom%\Installs\DaemonTools\awxDTools_IconSet02.exe /S" /fREG ADD %KEY%\115 /V 4 /D "%cdrom%\Installs\DaemonTools\clean.cmd" /fREG ADD %KEY%\120 /VE /D "Flash and Shockwave" /fREG ADD %KEY%\120 /V 1 /D "%cdrom%\Installs\Flash\Shockwave10.exe" /fREG ADD %KEY%\120 /V 2 /D "%cdrom%\Installs\Flash\Flash7.exe" /fREG ADD %KEY%\125 /VE /D "Gimp Photo Tool" /fREG ADD %KEY%\125 /V 1 /D "%cdrom%\Installs\Gimp\gtk+-2.4.10-20041001-setup.exe /SILENT /SP- /NORESTART" /fREG ADD %KEY%\125 /V 2 /D "%cdrom%\Installs\Gimp\gimp-2.0.5-i586-setup.exe /SILENT /SP- /NORESTART" /fREG ADD %KEY%\130 /VE /D "KLM Codecs" /fREG ADD %KEY%\130 /V 1 /D "%cdrom%\Installs\KLMCodecs\klmcodec116.exe /verysilent /noicons" /fREG ADD %KEY%\135 /VE /D "LeechGet" /fREG ADD %KEY%\135 /V 1 /D "%cdrom%\Installs\Leechget\LeechGet_2004_RC5Ver1001520.exe /VERYSILENT /SP-" /fREG ADD %KEY%\135 /V 2 /D "TASKKILL /F /IM leechget.exe" /fREG ADD %KEY%\135 /V 3 /D "%cdrom%\Installs\Leechget\clean.cmd" /fREG ADD %KEY%\140 /VE /D "Microsoft Baseline Security Analyzer" /fREG ADD %KEY%\140 /V 1 /D "%cdrom%\Installs\MBSA\MBSASetup-en.msi /qb-!" /fREG ADD %KEY%\145 /VE /D "MS Calculator Plus" /fREG ADD %KEY%\145 /V 1 /D "%cdrom%\Installs\MSCalcPlus\CalcPlus.msi /qb-!" /fREG ADD %KEY%\145 /VE /D "MSN Messenger" /fREG ADD %KEY%\145 /V 1 /D "%cdrom%\Installs\MSNMess\MsnMsgs.msi /qb-!" /fREG ADD %KEY%\145 /V 2 /D "%cdrom%\Installs\MSNMess\MsgPlus-325.exe /SilentInstallNoSponsor" /fREG ADD %KEY%\145 /V 3 /D "TASKKILL /F /IM msnmsgr.exe" /fREG ADD %KEY%\150 /VE /D "MS Reader" /fREG ADD %KEY%\150 /V 1 /D "%cdrom%\Installs\msreader\setup.exe /s /sms" /fREG ADD %KEY%\155 /VE /D "OpenOffice" /fREG ADD %KEY%\155 /V 1 /D "%cdrom%\Installs\OpenOffice\OpenOffice113.exe" /fREG ADD %KEY%\155 /V 2 /D "regedit /s %cdrom%\Installs\openoffice\ooorg.reg" /fREG ADD %KEY%\160 /VE /D "PDFCreator" /fREG ADD %KEY%\160 /V 1 /D "%cdrom%\Installs\PDFCreator\PDFCreator.exe /SILENT /NOCANCEL /SP- /NORESTART" /fREG ADD %KEY%\165 /VE /D "PDFReader" /fREG ADD %KEY%\165 /V 1 /D "%cdrom%\Installs\PDFReader\PDFRd.exe" /fREG ADD %KEY%\170 /VE /D "PowerToys" /fREG ADD %KEY%\170 /V 1 /D "%cdrom%\Installs\powertoys\TweakUI.msi /qb-!" /fREG ADD %KEY%\175 /VE /D "SecretMaker" /fREG ADD %KEY%\175 /V 1 /D "%cdrom%\Installs\Secretmaker\secretmakersetup.exe /S /N" /fREG ADD %KEY%\180 /VE /D "SpywareBlaster" /fREG ADD %KEY%\180 /V 1 /D "%cdrom%\Installs\SpywareBlaster\spywareblastersetup32.exe /SILENT /NOCANCEL /SP- /NORESTART" /fREG ADD %KEY%\180 /V 2 /D "TASKKILL /F /IM spywareblaster.exe" /fREG ADD %KEY%\185 /VE /D "SpywareGuard" /fREG ADD %KEY%\185 /V 1 /D "%cdrom%\Installs\SpywareBlaster\spywareguardsetup.exe /SILENT /noicons /NOCANCEL /SP- /NORESTART" /fREG ADD %KEY%\190 /VE /D "USB Drive Manager" /fREG ADD %KEY%\190 /V 1 /D "%cdrom%\Installs\UFDMgr\UFDSetupWizard.msi /qb-!" /fREG ADD %KEY%\195 /VE /D "Winamp" /fREG ADD %KEY%\195 /V 1 /D "%cdrom%\Installs\Winamp\winamp507_full.exe /S /install=rqf" /fREG ADD %KEY%\195 /V 2 /D "TASKKILL /F /IM winamp.exe" /fREG ADD %KEY%\200 /VE /D "Windows Media Player 10" /fREG ADD %KEY%\200 /V 1 /D "%cdrom%\Installs\WMP10\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"" /fREG ADD %KEY%\205 /VE /D "Zonealarm" /fREG ADD %KEY%\205 /V 1 /D "%cdrom%\Installs\Zonealarm\zlsSetup_55_062_004.exe /s /noreboot" /fREG ADD %KEY%\985 /VE /D "Removing Unnecessary User Accounts" /fREG ADD %KEY%\985 /V 1 /D "%windir%\user.cmd" /fREG ADD %KEY%\990 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%\990 /V 1 /D "REGEDIT /S %windir%\RegTweaks.reg" /fREG ADD %KEY%\995 /VE /D "Cleaning Up Temporary Files" /fREG ADD %KEY%\995 /V 1 /D "cmd /c del %windir%\*.cmd /f /q" /f
BritishBulldog Posted December 9, 2004 Posted December 9, 2004 Radimusof course it works you give the variable CDROM the value from%%D plus the : behind it in SET CDROM=%%D: and in your lines you give the slash after %CDROM%REG ADD %KEY%\105 /V 1 /D "%cdrom%\Installs\AvastAV\setupeng.exe /SILENT /SP-
gunsmokingman Posted December 9, 2004 Posted December 9, 2004 I will show you againRadimusFOR %%D IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%D:\WIN51IP SET CDROM=%%D:Please Note the differencesfor %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%iThat the RunOnce I used To Install Never Had A problem Every Thing do if exist %%i\ gets past to setup. exewhich would get the varibles pass from the cdAll Xp Cd has setup.exeso it looking for setup.exe On WHATEVER:\setup.exe
MHz Posted December 9, 2004 Posted December 9, 2004 I ran this in a batch filefor %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if exist %%i\SETUP.exe set CDROM=%%i%CDROM%pauseI get G: returned. The windows cdrom. But added with your runonceex command would beREG ADD %KEY%\010 /V 1 /D "G:Apps\SOME-APP-FOLDER\INSTALLTHIS.EXE /silent /v/qb " /fConversion would be no backslash between the full colon and Apps, as BritishBullDog was pointing out. He is only trying to help out. Am I wrong?
BritishBulldog Posted December 9, 2004 Posted December 9, 2004 yes it LOOKS for setup.exe on the CD but the variable is passed on in set CDROM=%%i and there only D: or E: is passed on, That is what the difference is.MHz you are correct there is no backslash as my picture from the registry proves. and i am only trying to help as a bad part on the beginning puts the whole cmd file out
gunsmokingman Posted December 16, 2004 Posted December 16, 2004 I just installed this Xp earlier Tonight As You Can See That My Code Does Work. %CDROM%Apps\%CDROM%\Apps\ When I first converted over to the install from cd instead of the hd. I got errors about not finding Dir WHATEVER CD:\..\AppWhat convinced me was , that I notice that some of my apps in theRunonceEx Had Install, with this %CDROM%Apps\ So I decided to try again and on the next Run1 I took out the \ Every thing installed. I cannot explain why or how this works, but it does work.OneStart Of The Install Two Installing Axialis And Showing RunOnceEx.cmd ThreeShowing InstallP2.JPG In Ms Paint And TaskManager FourInstalling Mozzila Self Extracting Winrar FiveInstalling Nero Self Extracting Winrar SixShow RunOnceEx Location SevenSpy Bot Being Install EightAsking To Reg Something NineConfirming The Reg You Will Notice In The Last 2 Images M:app\ Is The Path and That it worked
BritishBulldog Posted December 16, 2004 Posted December 16, 2004 Hi GunsmokingmanSo in one way we were both right i said only d: was going into %CDROM% and you said it worked though.So i let myself be corrected as i said when you PM'ed me earlier with this.I am surprised it worked, but going by the pictures it does, so nice one
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now