Hello Readers
I have recently attended a customer site to move all the user base from Office 2010 with Lync 2013 Client over to Microsoft Office 365 Click to Run. This is the 1st time I have had to perform an installation of Microsoft Office 365 Click to Run so thought I would share my experience.
So what do we need?
- Notepad
- Click to Run Components
The 1st challenge is to create a batch script that removes Office 2010 and the 2013 Lync Client. Thankfully there was a good post by Marc Kean about Fully Automate the removal of any Office version in preparation for Office 365. In his post it gives you the batch script command need with a couple of .vbs
VBS Files are located here.
Files are available here http://sdrv.ms/17hSpmV
The batch script I modified for my purpose and ended with an output looking like this
@echo off
:remove Microsoft Office 2010 suites
cscript %windir%\offscrub10.vbs ALL /Quiet /NoCancel
echo Legacy Office Uninstall Finished > %SystemDrive%\OfficeUninstall.txt
As I didn’t require the .vbs files for Office 2003 and Office 2007, I removed them from the batch script. I also added the ability to remove the Lync 2013 Client into this batch file. As the Lync client was installed via network location I had to point the line to msi on the network share to be able to uninstall the Lync as you can see below
Msiexec /x \\server01\LyncInstall\Setup\x86\lync.ww\lyncww.msi /quiet /norestart
So my complete script was
@echo off
:remove Microsoft Office 2010 suites
cscript %windir%\offscrub10.vbs ALL /Quiet /NoCancel
echo Legacy Office Uninstall Finished > %SystemDrive%\OfficeUninstall.txt
:remove Microsoft Lync 2013 Client
TIMEOUT 5
Msiexec /x \\server01\LyncInstall\Setup\x86\lync.ww\lyncww.msi /quiet /norestart
One challenge done and dusted out of the way, I now have batch script I can use to via Startup in Group Policy. Moving on to the Click to Run Deployment the First thing is to download the Office Deployment Tool for Click to Run this is available via http://www.microsoft.com/en-us/download/details.aspx?id=36778
Once you have downloaded the executable, you will want to run it. Tick “Click Here to accept the Microsoft Software Licence Terms” and Press “Continue”.
You will now need to define the location of where you want to save the files. I just used C:\Office365C2R but you can use a Network file share for your deployment.
And Press “OK”, The File should extract successfully and Press “OK”
You will now need see two files in the specified location.
- Setup.exe
- Configuration.xml
For my deployment I copied the Configuration.xml and rename it download.xml. You will now need to edit the .xml you are going to use to download the Office Click to Run Installation.
The Current Information in Configuration.xml is;
<Configuration>
<!– <Add SourcePath=”\\Server\Share\Office\” OfficeClientEdition=”32″ >
<Product ID=”O365ProPlusRetail”>
<Language ID=”en-us” />
</Product>
<Product ID=”VisioProRetail”>
<Language ID=”en-us” />
</Product>
</Add> –>
<!– <Updates Enabled=”TRUE” UpdatePath=”\\Server\Share\Office\” /> –>
<!– <Display Level=”None” AcceptEULA=”TRUE” /> –>
<!– <Logging Name=”OfficeSetup.txt” Path=”%temp%” /> –>
<!– <Property Name=”AUTOACTIVATE” Value=”1″ /> –>
</Configuration>
The new information in the edit configuration.xml called Download.xml is;
<Configuration>
<Add OfficeClientEdition=”32″ >
<Product ID=”O365ProPlusRetail”>
<Language ID=”en-us” />
</Product>
</Add> –>
</Configuration>
This will allow me to download the 32 bit installation of Office, if you require x64 installaion you will need to change the value of “OfficeClientEdition to 64”.
At this stage you will now need to open a command prompt
Change the Directory to the location you have saved the Setup/Configuration.xml/download.xml information. So for myself its
You will now need to enter the following string to start the download process
Setup.exe /download download.xml (Or the name you have used for your .xml file) and Press “Enter”. You will now see within the command prompt the office installation is being downloaded and depending on your internet connection, depends on how long it take to download the 1gb of data.
Once complete you should see something that’s looks like below
As Im deploying Office Click to Run to multiple machines. I have had to create a batch script that looks at the configuration to get all the correct information. So now its time to edit the configuration.xml
The Output I have used in my configuration.xml is as followed
<Configuration>
<Add SourcePath=”C:\Office365C2R\” OfficeClientEdition=”32″ >
<Product ID=”O365ProPlusRetail”>
<Language ID=”en-us” />
</Product>
</Add>
<Updates Enabled=”TRUE” UpdatePath=”DEFAULT\” />
<Display Level=”None” AcceptEULA=”TRUE” />
<Logging Name=”OfficeSetup.txt” Path=”%temp%” />
<Property Name=”AUTOACTIVATE” Value=”1″ />
</Configuration>
You will now need to edit the Source Path, Updates, Display (If you want to see the installation happening), Logging (If you want to change location)
- Source Path – Location of your Office Click to Run Deployment
- Update Path – Here you can specified a defined location where you will have to manually download the latest version of Office Click to Run or you can the word “DEFAULT” or http://officecdn.microsoft.com as this will pull down the updates automatically.
- Display Level – “None” for installation without prompts or “Full” for installation with installation prompts
- Logging – Depending if you want to store log files in a different location
We now need to create a basic batch script to allow us to perform the installation. The script I have created is as followed;
@echo off
setup.exe /CONFIGURE configuration.xml
pause
The batch script will need to be saved in the same location as setup and configuration.xml in order to work. To confirm everything I have done so far has worked I have run the batch script manually on one of the test machines.
Press “Next” to continue and follow the below actions
I have ticked “No Thanks” for now and Press “Accept”
Press “Next” to continue
Press “Next” to continue
Pressed “No, Thanks” to continue
The installation will now complete
And now the installation has been successfully installed Press “All Done” to finish. When you open an Office Application for the 1st time you will be promoted to enter your email address, this is to confirm if you have a licence for Office 365 Pro Plus.
If you don’t have a licence you will receive the below error and you will need to speak with your system administator
This completes this post about configuring Office Click to Run and Testing. Part 2 I will look at the deployment to multiple machines via GPO.
Regards
Andrew Price