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.
Page 1 of 1
installing office 2003 with RunOnce
#2
Posted 26 September 2005 - 10:18 AM
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:
Then you would enter the following line in your RunOnceEx file:
In 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!
In otherwords, if you have something like the following for your batch file:
ECHO Installing ProgramX ECHO Please wait... start /wait %Installs%\setup.exe /s
Then 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" /f
In 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!
#3
Posted 26 September 2005 - 11:05 AM
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.
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.
#4
Posted 26 September 2005 - 12:22 PM
Yes... to give you a simple example from my RunOnceEx file...
On 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.
@echo off FOR %%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:\Installers SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Programs Installing" /f REG ADD %KEY%\000 /VE /D "Nero 6.6.0.16" REG ADD %KEY%\000 /VE /D "%Installs%\Nero\Nero_Custom_Setup.exe" /f
On 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.
Share this topic:
Page 1 of 1



Help
Back to top









