wheeler459 Posted September 26, 2005 Share Posted September 26, 2005 Hi,I am new to doing this kind of stuff. I see all information on how to install Office2k3 with a batch command but I am using RunOnce. I installed all the files into the $OEM$ folder but I do not know what the entry is for the RunOnce. It is a Office2k3 Professional version. Link to comment Share on other sites More sharing options...
Zxian Posted September 26, 2005 Share Posted September 26, 2005 There is no difference between installing via batch file or RunOnceEx. The command for installing both is the same.In otherwords, if you have something like the following for your batch file:ECHO Installing ProgramXECHO Please wait...start /wait %Installs%\setup.exe /sThen you would enter the following line in your RunOnceEx file:REG ADD %KEY%\XXX /VE /D "ProgramX"REG ADD %KEY%\XXX /V 1 /D "%Installs%\setup.exe /s" /fIn both batch files (you use a batch file to generate the RunOnceEx list), you would define the Installs variable (SET Installs=<path to install directory>). (XXX refers to the next free number in your RunOnceEx file)Hope this helps! Link to comment Share on other sites More sharing options...
wheeler459 Posted September 26, 2005 Author Share Posted September 26, 2005 This helps a lot. Thank you.I got about 80% of it understood. The only thing I dont get is the "installs variable". Is that the directory where the program setup.exe is located? Just a little clarification needed.Thanks. Link to comment Share on other sites More sharing options...
Zxian Posted September 26, 2005 Share Posted September 26, 2005 Yes... to give you a simple example from my RunOnceEx file... @echo offFOR %%i 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 %%i:\win51ip.SP2 SET Installs=%%i:\InstallersSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Programs Installing" /fREG ADD %KEY%\000 /VE /D "Nero 6.6.0.16"REG ADD %KEY%\000 /VE /D "%Installs%\Nero\Nero_Custom_Setup.exe" /fOn my CD, all of my program installers are located in a folder named "Installers". The above code (and folder layout) will mean that all the installers are run from the CD instead of being copied to the hard drive.When Nero is set to be installed, RunOnceEx will look at the <CDROM>:\Installers\Nero directory for the setup executable. 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