1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Startup Script hangs

Discussion in 'Microsoft Office' started by Markus Barter, Feb 22, 2010.

  1. Markus Barter

    Markus Barter Flightless Bird

    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

    :DeployOffice
    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 ?
     

Share This Page