Jump to content

loading files to work with RunOnceex


Recommended Posts

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 the

JPSP8.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 :wacko:

thanks

michelle

Link to comment
Share on other sites


This is for a install from Cd

You Will Need a folder Called Apps On Your XP CD For This To work

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=%%i

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

REG ADD %KEY% /V TITLE /D "The Install Section" /f

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

REG ADD %KEY%\010 /VE /D "Installing WHATEVER" /f

REG ADD %KEY%\010 /V 1 /D "%CDROM%Apps\SOME-APP-FOLDER\INSTALLTHIS.EXE /silent /v/qb  " /f

For More Information Please Read This

runonceex.htm

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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

@amazonjustice

Assuming I have all the switches correct in my RunOnceex.cmd file, that isn't enough to install the programs right?
Correct
I would have to copy files from the actuall program CD into one of the folders in $OEM$. (is this right so far;o)
Yes
say for example i was going to load Paint Shop Pro 8.... I woudl have to copy the

JPSP8.msi file. Where exactly do i stick this? Do I have to copy anything else, such as the TUBES folder?

Yes everything

For an app such as Paint Shop Pro 8

If you make a directory in the root of your cd called APPS and in that a directory called PSP8

then 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 this

cmdow @ /HID
@echo off

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=%%i

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

REG ADD %KEY% /V TITLE /D "The Install Section" /f

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

REG ADD %KEY%\010 /VE /D "Installing Paint Shop Pro 8" /f
REG ADD %KEY%\010 /V 1 /D "%CDROM%\APPS\PSP8\JPSP8.msi /qn " /f

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

Link to comment
Share on other sites

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=%%i

It Would Translate this way

C:\

D:\

E:\

all the way to z

Yours wth my code

REG ADD %KEY%\010 /VE /D "Installing Paint Shop Pro 8" /f

REG ADD %KEY%\010 /V 1 /D "%CDROM%\APPS\PSP8\JPSP8.msi /qn " /f

Tranlates this way

C:\\APPS\PSP8\

D:\\APPS\PSP8\

E:\\APPS\PSP8\

This way I dont Have to Type \Apps this for each entry

Link to comment
Share on other sites

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 this

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=%%i

you 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?

post-70-1102604264_thumb.png

Link to comment
Share on other sites

here is mine: (and it works just fine)

cmdow @ /HID
@echo Off
set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
FOR %%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" /f

REG ADD %KEY%\010 /VE /D "Installation of Additional Components" /f
REG ADD %KEY%\010 /V 1 /D "%windir%\First.cmd" /f

REG ADD %KEY%\020 /VE /D "Installation of Type 1 Hotfixes" /f
REG ADD %KEY%\020 /V 1 /D "%windir%\Type1.cmd" /f

REG ADD %KEY%\030 /VE /D "Installation of Type 2 Hotfixes" /f
REG ADD %KEY%\030 /V 1 /D "%windir%\Type2.cmd" /f

REG ADD %KEY%\040 /VE /D "Installation of Type 3 Hotfixes" /f
REG ADD %KEY%\040 /V 1 /D "%windir%\Type3.cmd" /f

REG ADD %KEY%\050 /VE /D "Installation of Additional Components" /f
REG ADD %KEY%\050 /V 1 /D "%windir%\Last.cmd" /f

REG ADD %KEY%\100 /VE /D "7zip" /f
REG ADD %KEY%\100 /V 1 /D "%cdrom%\Installs\7zip\7z313.exe -y /q /r:n" /f

REG ADD %KEY%\105 /VE /D "Avast Antivirus" /f
REG ADD %KEY%\105 /V 1 /D "%cdrom%\Installs\AvastAV\setupeng.exe /SILENT /SP- /NORESTART" /f

REG ADD %KEY%\110 /VE /D "CDBurnerXP" /f
REG ADD %KEY%\110 /V 1 /D "%cdrom%\Installs\CDBurnerXP\CDBurnerXP_Pro_3.msi /qb-!" /f

REG ADD %KEY%\115 /VE /D "Daemon-Tools and accessories" /f
REG ADD %KEY%\115 /V 1 /D "%cdrom%\Installs\DaemonTools\daemon.msi /qn REBOOT=ReallySuppress" /f
REG ADD %KEY%\115 /V 2 /D "%cdrom%\Installs\DaemonTools\awxDTools_105b056.exe /S" /f
REG ADD %KEY%\115 /V 3 /D "%cdrom%\Installs\DaemonTools\awxDTools_IconSet02.exe /S" /f
REG ADD %KEY%\115 /V 4 /D "%cdrom%\Installs\DaemonTools\clean.cmd" /f

REG ADD %KEY%\120 /VE /D "Flash and Shockwave" /f
REG ADD %KEY%\120 /V 1 /D "%cdrom%\Installs\Flash\Shockwave10.exe" /f
REG ADD %KEY%\120 /V 2 /D "%cdrom%\Installs\Flash\Flash7.exe" /f

REG ADD %KEY%\125 /VE /D "Gimp Photo Tool" /f
REG ADD %KEY%\125 /V 1 /D "%cdrom%\Installs\Gimp\gtk+-2.4.10-20041001-setup.exe /SILENT /SP- /NORESTART" /f
REG ADD %KEY%\125 /V 2 /D "%cdrom%\Installs\Gimp\gimp-2.0.5-i586-setup.exe /SILENT /SP- /NORESTART" /f

REG ADD %KEY%\130 /VE /D "KLM Codecs" /f
REG ADD %KEY%\130 /V 1 /D "%cdrom%\Installs\KLMCodecs\klmcodec116.exe /verysilent /noicons" /f

REG ADD %KEY%\135 /VE /D "LeechGet" /f
REG ADD %KEY%\135 /V 1 /D "%cdrom%\Installs\Leechget\LeechGet_2004_RC5Ver1001520.exe /VERYSILENT /SP-" /f
REG ADD %KEY%\135 /V 2 /D "TASKKILL /F /IM leechget.exe" /f
REG ADD %KEY%\135 /V 3 /D "%cdrom%\Installs\Leechget\clean.cmd" /f

REG ADD %KEY%\140 /VE /D "Microsoft Baseline Security Analyzer" /f
REG ADD %KEY%\140 /V 1 /D "%cdrom%\Installs\MBSA\MBSASetup-en.msi /qb-!" /f

REG ADD %KEY%\145 /VE /D "MS Calculator Plus" /f
REG ADD %KEY%\145 /V 1 /D "%cdrom%\Installs\MSCalcPlus\CalcPlus.msi /qb-!" /f

REG ADD %KEY%\145 /VE /D "MSN Messenger" /f
REG ADD %KEY%\145 /V 1 /D "%cdrom%\Installs\MSNMess\MsnMsgs.msi /qb-!" /f
REG ADD %KEY%\145 /V 2 /D "%cdrom%\Installs\MSNMess\MsgPlus-325.exe /SilentInstallNoSponsor" /f
REG ADD %KEY%\145 /V 3 /D "TASKKILL /F /IM msnmsgr.exe" /f

REG ADD %KEY%\150 /VE /D "MS Reader" /f
REG ADD %KEY%\150 /V 1 /D "%cdrom%\Installs\msreader\setup.exe /s /sms" /f

REG ADD %KEY%\155 /VE /D "OpenOffice" /f
REG ADD %KEY%\155 /V 1 /D "%cdrom%\Installs\OpenOffice\OpenOffice113.exe" /f
REG ADD %KEY%\155 /V 2 /D "regedit /s %cdrom%\Installs\openoffice\ooorg.reg" /f

REG ADD %KEY%\160 /VE /D "PDFCreator" /f
REG ADD %KEY%\160 /V 1 /D "%cdrom%\Installs\PDFCreator\PDFCreator.exe /SILENT /NOCANCEL /SP- /NORESTART" /f

REG ADD %KEY%\165 /VE /D "PDFReader" /f
REG ADD %KEY%\165 /V 1 /D "%cdrom%\Installs\PDFReader\PDFRd.exe" /f

REG ADD %KEY%\170 /VE /D "PowerToys" /f
REG ADD %KEY%\170 /V 1 /D "%cdrom%\Installs\powertoys\TweakUI.msi /qb-!" /f

REG ADD %KEY%\175 /VE /D "SecretMaker" /f
REG ADD %KEY%\175 /V 1 /D "%cdrom%\Installs\Secretmaker\secretmakersetup.exe /S /N" /f

REG ADD %KEY%\180 /VE /D "SpywareBlaster" /f
REG ADD %KEY%\180 /V 1 /D "%cdrom%\Installs\SpywareBlaster\spywareblastersetup32.exe /SILENT /NOCANCEL /SP- /NORESTART" /f
REG ADD %KEY%\180 /V 2 /D "TASKKILL /F /IM spywareblaster.exe" /f

REG ADD %KEY%\185 /VE /D "SpywareGuard" /f
REG ADD %KEY%\185 /V 1 /D "%cdrom%\Installs\SpywareBlaster\spywareguardsetup.exe /SILENT  /noicons /NOCANCEL /SP- /NORESTART" /f

REG ADD %KEY%\190 /VE /D "USB Drive Manager" /f
REG ADD %KEY%\190 /V 1 /D "%cdrom%\Installs\UFDMgr\UFDSetupWizard.msi /qb-!" /f

REG ADD %KEY%\195 /VE /D "Winamp" /f
REG ADD %KEY%\195 /V 1 /D "%cdrom%\Installs\Winamp\winamp507_full.exe /S /install=rqf" /f
REG ADD %KEY%\195 /V 2 /D "TASKKILL /F /IM winamp.exe" /f

REG ADD %KEY%\200 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\200 /V 1 /D "%cdrom%\Installs\WMP10\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"" /f

REG ADD %KEY%\205 /VE /D "Zonealarm" /f
REG ADD %KEY%\205 /V 1 /D "%cdrom%\Installs\Zonealarm\zlsSetup_55_062_004.exe /s /noreboot" /f

REG ADD %KEY%\985 /VE /D "Removing Unnecessary User Accounts" /f
REG ADD %KEY%\985 /V 1 /D "%windir%\user.cmd" /f

REG ADD %KEY%\990 /VE /D "Importing Registry Tweaks" /f
REG ADD %KEY%\990 /V 1 /D "REGEDIT /S %windir%\RegTweaks.reg" /f

REG ADD %KEY%\995 /VE /D "Cleaning Up Temporary Files" /f
REG ADD %KEY%\995 /V 1 /D "cmd /c del %windir%\*.cmd /f /q" /f

Link to comment
Share on other sites

I will show you again

Radimus
FOR %%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 differences

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=%%i

That the RunOnce I used To Install

Never Had A problem

Every Thing

do if exist %%i\ gets past to setup. exe

which would get the varibles pass from the cd

All Xp Cd has setup.exe

so it looking for setup.exe On WHATEVER:\setup.exe

Link to comment
Share on other sites

I ran this in a batch file

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=%%i
%CDROM%
pause

I get G: returned. The windows cdrom. But added with your runonceex command would be

REG ADD %KEY%\010 /V 1 /D "G:Apps\SOME-APP-FOLDER\INSTALLTHIS.EXE /silent /v/qb  " /f

Conversion 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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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:\..\App

What convinced me was , that I notice that some of my apps in the

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

One

Start Of The Install

Two

Installing Axialis And Showing RunOnceEx.cmd

Three

Showing InstallP2.JPG In Ms Paint And TaskManager

Four

Installing Mozzila Self Extracting Winrar

Five

Installing Nero Self Extracting Winrar

Six

Show RunOnceEx Location

Seven

Spy Bot Being Install

Eight

Asking To Reg Something

Nine

Confirming The Reg

You Will Notice In The Last 2 Images

M:app\ Is The Path and That it worked

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