I am trying more to control the process via GPO with a start-up script and have created a batch file which executes the below command. It works and installs which ever version you define in your .xml file, the only issue i am facing is that re-runs the setup
at each reboot which isn't ideal. I am currently working on below script which could check the version of the office upon boot-up and only run if the specific version is not available. I have pasted the script right at the bottom of the page and if anyone
could shed some light in making it to read the version value
"\\server\c2r\Office365 update\setup.exe" /configure "\\server\c2r\Office365 update\Customconfign.xml" (this is the batch-file used as a startup script)
PLEASE NOTE: There are three <Add SourcePath in my Cutomconfig.xml and not all three are required I use the one i need by taking the <!-- and --> from the beginning and the end of each line
<Configuration>
<!-- <Add SourcePath="\\Server\Share\" OfficeClientEdition="32" > --> Can only be used to download latest version of ofice365 (specify sourcepath)
<Add OfficeClientEdition="32" Version="15.0.4675.1002" > Use to download a office version direct from microsoft servers
<!-- <Add SourcePath="\\server\c2r\Office365update" OfficeClientEdition="32" > --> to deploy software from internal network resource
<Product ID="O365ProPlusRetail">
<Language ID="en-us" />
</Product>
</Add>
<Updates Enabled="TRUE" UpdatePath="\\server\c2r\Office365 update" />
<Display Level="FALSE" AcceptEULA="TRUE" />
<Logging Path="\\server\c2r\Office365 update\Install Logs" />
<Property Name="FORCEAPPSHUTDOWN" Value="TRUE"/> force closes any running office application
<!-- <Property Name="AUTOACTIVATE" Value="1" /> -->
</Configuration>
-------------------------------------------------------------------------------------------------------------------
this is what i am working on and wondered if any one would be able to rectify an issue with it as it doesn't seems to work
---------------------------------------------------------------------------------------------------------------------------------
setlocal
REM *********************************************************************
REM Environment customization begins here. Modify variables below.
REM *********************************************************************
REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=\\server\c2r\Office365 update\
REM Set ConfigFile to the configuration file to be used for deployment (required)
set ConfigFile=\\server\c2r\Office365 update\Customconfignonskype.xml
REM Set LogLocation to a central directory to collect script log files (install log files are set in XML file).
set LogLocation=%AppData%\Local\Temp
REM *********************************************************************
REM Deployment code begins here. Do not modify anything below this line (check quotes are quotes though).
REM *********************************************************************
REM Operating system is X64. Check for Office365 version in emulated propertyBag registry key
:ARP64
Reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\ClickToRun\propertyBag /v Version=%15.0.4711.1002%
if NOT %errorlevel%==1 (goto DeployOffice) (goto End)
REM If 1 returned, the product was not found. Run setup here.
:DeployOffice
echo %date% %time% Setup started. >> %LogLocation%\%computername%.txt
start /wait %DeployServer%\setup.exe /configure %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
Endlocal
-
Proposed as answer by
fzameen
Friday, May 01, 2015 4:31 PM
-
Unproposed as answer by
fzameen
Friday, May 01, 2015 4:32 PM