Jump to content

installing office 2003 with RunOnce


wheeler459

Recommended Posts

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


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

Link to comment
Share on other sites

Yes... to give you a simple example from my RunOnceEx file...

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

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