M
Markus Barter
Hello Group,
i would like to deploy office 2007 via startup script in gpo
here is my script:
setlocal
set ProductName=Enterprise
set DeployServer="\\servershare\Office\Office2007"
set
ConfigFile="\\servershare\Office\Office2007\Updates\Office2007Enterprise.MSP"
set LogLocation="\\servershare\Office\Office2007\Logs"
IF NOT "%ProgramFiles(x86)%"="" then set "WOW6432NODE"="WOW6432NODE\"
REG QUERY
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\%Productname%
if %errorlevel%==1 goto DeployOffice
else goto End
eployOffice
start /wait %DeployServer%\setup.exe /adminfile %ConfigFile%
echo %date% %time% Setup ended with error code %errorlevel%. >>
%LogLocation%\%computername%.txt
:End
Endlocal
I saved the script in my policy folder as office2007.vbs
the script hangs with following error:
code: 800A0401
Compile error in Microsoft vbscript (the script position after REG QUERY HKLM)
(or after Start /)
what is the reason ?
i would like to deploy office 2007 via startup script in gpo
here is my script:
setlocal
set ProductName=Enterprise
set DeployServer="\\servershare\Office\Office2007"
set
ConfigFile="\\servershare\Office\Office2007\Updates\Office2007Enterprise.MSP"
set LogLocation="\\servershare\Office\Office2007\Logs"
IF NOT "%ProgramFiles(x86)%"="" then set "WOW6432NODE"="WOW6432NODE\"
REG QUERY
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\%Productname%
if %errorlevel%==1 goto DeployOffice
else goto End
eployOffice
start /wait %DeployServer%\setup.exe /adminfile %ConfigFile%
echo %date% %time% Setup ended with error code %errorlevel%. >>
%LogLocation%\%computername%.txt
:End
Endlocal
I saved the script in my policy folder as office2007.vbs
the script hangs with following error:
code: 800A0401
Compile error in Microsoft vbscript (the script position after REG QUERY HKLM)
(or after Start /)
what is the reason ?