Hello, I am trying to deploy MS Outlook 2007 by using a startup script. It is not working now, and the only real error I have to go on is "Setup ended with error code 9059." I am having trouble finding out what this actually means.
There are a couple things that I am not sure about.
1. I modified my config.xml file for a silent installation, and I also used the OCT to modify my package to only deploy Outlook, enter my product code, etc. - can I use an altered config.xml in tandem with my MSP file? Could this be the source of my problem?
2. Can someone review my script and tell me if anything is missing?
Below is my script:
setlocal
REM **************************
**********
**********
**********
**********
***
REM Environment customization begins here. Modify variables below.
REM **************************
**********
**********
**********
**********
***
REM Get ProductName from the Office product's core Setup.xml file.
set ProductName=ProPLus
REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=\\athena\inst
all\Office
12
REM Set ConfigFile to the configuration file to be used for deployment REM (required)
set ConfigFile=\\Athena\instal
l\Office12
\ProPlus.W
W\config.x
ml
REM Set LogLocation to a central directory to collect log files.
set LogLocation=\\Athena\insta
ll\Office1
2Logs
REM **************************
**********
**********
**********
**********
***
REM Deployment code begins here. Do not modify anything below this line.
REM **************************
**********
**********
**********
**********
***
IF NOT "%ProgramFiles(x86)%"=="" SET WOW6432NODE=WOW6432NODE\
reg query HKEY_LOCAL_MACHINE\SOFTWAR
E\%WOW6432
NODE%Micro
soft\Windo
ws\Current
Version\Un
install\%P
roductName
%
if %errorlevel%==1 (goto DeployOffice) else (goto End)
REM If 1 returned, the product was not found. Run setup here.
:DeployOffice
start /wait %DeployServer%\setup.exe /config %ConfigFile% /adminfile \\athena\install\MIG.msp
echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computernam
e%.txt
REM If 0 or other was returned, the product was found or another error occurred. Do nothing.
:End
pause
Endlocal
Start Free Trial