Office Failing To Install After O/S Deployment [Via WDS]
We deploy Windows 7: Pro: 64 Bit: SP1 using WDS. Applications are deployed with a mix of MSI and .BAT files.
Office 2010 [32 Bit] is deployed using a .BAT file:
Code:
REM *********************************************************************REM Environment customization begins here. Modify variables below.
REM *********************************************************************
REM Get ProductName from the Office product's core Setup.xml file, and then add "office14." as a prefix.
set ProductName=Office14.PROPLUS
REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=\\FS\Office2010SourceFiles
REM Set ConfigFile to the configuration file to be used for deployment (required)
set ConfigFile=\\FS\Office2010SourceFiles\ProPlus.WW\config.xml
REM Set LogLocation to a central directory to collect log files.
set LogLocation=\\FS\Office2010LogFiles
REM *********************************************************************
REM Deployment code begins here. Do not modify anything below this line.
REM *********************************************************************
IF NOT "%ProgramFiles(x86)%"=="" (goto ARP64) else (goto ARP86)
REM Operating system is X64. Check for 32 bit Office in emulated Wow6432 uninstall key
:ARP64
reg query HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%
if NOT %errorlevel%==1 (goto End)
REM Check for 32 and 64 bit versions of Office 2010 in regular uninstall key.(Office 64bit would also appear here on a 64bit OS)
:ARP86
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%
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%
echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt
REM If 0 or other was returned, the product was found or another error occurred. Do nothing.
:End
[Customised to our requirements]
This was working well enough but we had to change how Sophos was deployed. It was deployed from the Sophos Console but that wasn't working so we switched to a .BAT file:
Code:
@ECHO OFFREM – For 32 Bit Windows
if exist “C:\Program Files\Sophos\Sophos Anti-Virus\SavService.exe” goto End
REM – For 64 Bit Windows
if exist “C:\Program Files (x86)\Sophos\Sophos Anti-Virus\SavMain.exe” goto End
REM Deploy to Windows 7/2008 R2
\\Verapps01\SophosUpdate\CIDs\S000\SAVSCFXP\Setup.exe -s \ -user "Domain\Installer" -pwd "password" -mng yes
:End
Now Sophos deploys successfully but we find that Office does not. The Office install error is:
Quote:
08/06/2012 15:11:31.61 Setup ended with error code 1618.
Another install process is already running?
I am guessing that this is either the initial Sophos install or Sophos updating when Office is trying to install.
Has anyone else solved this one?
Many thanks.