Help Center

Follow

Install and Uninstall Skype for Business: Office Customization Tool and Click-to-Run

Purpose:
You wish to install or uninstall Skype for Business.

Resolution:
Installing and uninstalling Skype for Business can be performed either through the Office Customization Tool (OCT) or the Click-to-Run (C2R) Office deployment product. This article is divided into the following five sections:

Install OCT Skype for Business
Install C2R Skype for Business
Uninstall OCT Skype for Business
Uninstall C2R Skype for Business
Troubleshooting

NOTES:

  • The Office 2016 Deployment Tool (C2R) can be downloaded from Microsoft’s Site.
  • The Office 2016 Deployment Tool (C2R) supports these Product IDs.
  • The XML tag, <Property Name="AUTOACTIVATE" Value="0" />, is not supported for Office 365 ProPlus products.
  • When installing Office products, it is always a good idea to deploy using the Run As option Deploy User (interactive).
  • The products listed in this article are for United States English (en-us). For use with other languages, please see the Microsoft Language Identifiers site.
  • The process for installing and uninstalling Skype for Business 2013 is similar to 2016. You will need to download the Office 2013 Deployment Tool as well as use the correct Product ID for the 2013 version, which is either LyncRetail or LyncEntryRetail.


Install OCT Skype for Business:
If you are performing a fresh installation of Office 2016 using the OCT, please see the Deploy Office 2016 KB. The option to include Skype for Business is included in the Office 2016 OCT configuration.

1. To add Skype for Business after an Office 2016 installation (installed using the Office Customization Tool), create another MSP using the same parameters except for the Set feature and installation states. Change the features as seen below:
skype01.jpg2. Save the MSP. In this example, the MSP is saved as SkypeUpdate.MSP.

3. Create a package in PDQ Deploy. Add an Install step (Click New Step > Install or Steps and select Install). Select the MSP file in the Install File field using the File Picker [...]. The necessary parameters are added for you automatically. More information on how to create the package with Conditions and Options is available in the Deploy Office 2016 KB.
skype02.jpg
Note: Even though you are adding a feature/features, it may not be necessary to select Include Entire Directory or to select any additional files. In our testing, we found that it was never required to include the entire directory.

4. Deploy the package to computers with Office 2016 installed but missing the Skype for Business feature.


Install C2R Skype for Business:
1. Download the Office 2016 Deployment Tool (for C2R deployments) from Microsoft’s site: https://www.microsoft.com/en-us/download/details.aspx?id=49117

2. Create the necessary shared directory to serve the C2R/Skype for Business deployment: \\server\share\

3. Install the Office 2016 Deployment Tool for Click-to-Run, choose the extraction location to the previously created \\server\share\

4. Copy the configuration.xml (installed with the deployment tool) to SkypeDownload.xml, or another name of your choosing, in the same directory.

5. Edit SkypeDownload.xml. Change OfficeClientEdition to "64" if you're deploying the 64-bit rather than 32-bit version of Skype. Change the UNC of SourcePath to match the directory created in Step 2 above. Your XML should look something quite close to this:

<Configuration>
 <Add SourcePath="\\server\share\" OfficeClientEdition="32">
  <Product ID="SkypeforBusinessRetail">
   <Language ID="en-us" />
  </Product>
 </Add>
</Configuration>

Note: Your choice for Office 2016 Skype for Business Product IDs are SkypeforBusinessRetail and SkypeforBusinessEntryRetail. Using the incorrect product can have interesting and unintended results.

6. Open a command prompt, modify, and then run the following command (modifications may include using quotes if your paths contain spaces and changing SkypeDownload.xml if you used a different XML file name in Step 4):

"\\server\share\setup.exe" /download "\\server\share\SkypeDownload.xml"

skype03.jpg
7. Wait for the download to complete, which may take some time. The files will be downloaded in an automatically generated directory called \\server\share\Office (you should not, and need not, create this directory beforehand). Once the download has completed, you will be returned to a prompt.

8. Make another copy of the configuration.xml and name it something meaningful, like SkypeConfig.xml.
 
9. Edit SkypeConfig.xml and mirror any changes made in Step 5 above. Your XML should look similar to this:

<Configuration>
 <Add OfficeClientEdition="32" Branch="Current">
  <Product ID="SkypeforBusinessRetail" >
   <Language ID="en-us" />
  </Product>
 </Add>
<Updates Enabled="TRUE" Branch="Current" />
<Display Level="None" AcceptEULA="TRUE" />
</Configuration>

10. In PDQ Deploy, create a new deployment and name it something meaningful.
 
11. Add a Command step (Click New Step > Command or Steps and select Command), modify to match your choices from above:

"\\server\share\setup.exe" /configure "\\server\share\SkypeConfig.xml"

skype04.jpg
12. Set the deployment Run As option to Deploy User (Interactive)
skype05.jpg
13. Save the package and then test the deployment (Right-click the completed package and select Deploy Once). If the results are acceptable, deploy at will.


Uninstall OCT Skype for Business:
Uninstalling Skype for Business as a feature of Office 2016 is relatively straightforward. With the exception of the MSP, uninstallation follows the same steps as the Install OCT Skype for Business above.

1. To remove Skype for Business after an Office 2016 installation, create another MSP using the same parameters except for the Set feature installation states. Change the features as seen below:
skype06.jpg2. Save the MSP. In this example, the MSP is saved as SkypeUninstall.MSP.

3. Create a package in PDQ Deploy. Add a PowerShell step (Click New Step > PowerShell or Steps and select PowerShell). You will need to kill the process first or the uninstall will fail (see Troubleshooting below):

Get-Process "Lync*" | Stop-Process -Force

skype07.jpg
4. Add an Install Step. Select the MSP file in the Install File field using the File Picker [...]. The necessary parameters are added for you automatically. More information on how to create the package with Conditions and Options is available in the Deploy Office 2016 KB.
skype08.jpg
5. Deploy the package to computers with Office 2016 and the Skype for Business feature installed. As always, it is recommended to test the package first.


Uninstall C2R Skype for Business:
There are two methods for uninstalling the C2R version of Office. One uses the Uninstall string found in PDQ Inventory and the OfficeClickToRun.exe. The second method uses an XML file similar to the C2R installation.

Method I: Uninstall C2R Skype for Business Using PDQ Inventory:
1.
In PDQ Inventory, double-click a computer in a collection that has Skype for Business (C2R) installed.
 
2. Click on Applications in the Computer Window and navigate to the entry for Skype for Business. The Uninstall column contains the uninstall string:

skype09.jpg
The uninstall string for Skype for Business 2016 is, in this case:

"C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=SkypeforBusinessRetail.16_en-us_x-none culture=en-us version.16=16.0

The uninstall string above can be used to create a package in PDQ Deploy to uninstall Skype for Business.

Note: You can exclude the last two statements,

culture=en-us version.16=16.0

3. Create a new package in PDQ Deploy, name it something meaningful.

4. Add a Command Step and include the following in the Command window, which has the culture=en-us version.16=16.0 removed (for Free users, you can create a .bat file and deploy that using an Install Step). 

"C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=SkypeforBusinessRetail.16_en-us_x-none

5. Save and deploy the package to computers with Skype for Business Click-to-Run installed.

Method II: Uninstall C2R Skype for Business Using an XML:
1. If you haven’t done so already, download the Office 2016 Deployment Tool (for C2R deployments) from Microsoft’s site: https://www.microsoft.com/en-us/download/details.aspx?id=49117
 
2. Create the necessary shared directory to serve the C2R/Skype for Business "deployment": \\server\share\

3.
Install the Office 2016 Deployment Tool for Click-to-Run, choose the extraction location to the previously created \\server\share\
 
4. Copy the configuration.xml (installed with the deployment tool) to SkypeRemove.xml or another name of your choosing, in the same directory.
 
5. Edit SkypeRemove.xml. Your XML should look something quite close to this (change the Language ID and Product ID as appropriate):

<Configuration> 
 <Remove>
  <Product ID="SkypeforBusinessRetail" >
   <Language ID="en-us" /> 
   </Product>
 </Remove>
<Display Level="None" />
</Configuration>

6. In PDQ Deploy, create a new package and name it something meaningful.
 
7. Add a Command step (Click New Step > Command or Steps and select Command), modify to match your \\server\share choices from above:

"\\server\share\setup.exe" /configure "\\server\share\SkypeRemove.xml"

skype10.jpg
8. Set the deployment Run As option to Deploy User (Interactive)
skype11.jpg
9.
Test the deployment (Right-click the finished package and click Deploy Once). Once you’ve determined Skype for Business has been removed successfully, deploy at will.

Troubleshooting:

  • Error 1603. This error occurs most frequently when Skype for Business is either already installed or a version of Office exists that is not compatible with the version of Skype for Business you are installing.
  • Error 17002. This error occurs if the Lync.exe process is still running when an uninstall is attempted, specifically the Skype for Business feature (OCT) uninstall.
  • Make certain you are installing or uninstalling the appropriate product as expressed by the Product ID defined by Microsoft. Skype for Business has two Office 2016 options: SkypeforBusinessRetail and SkypeforBusinessEntryRetail

See Also:
Words:
Deploy Office 2016 Using The Microsoft Office Customization Tool
Deploy Office 365

Videos:
Silently Installing Office 365
Admin Arsenal Live! : Uninstalling Microsoft Office with PDQ Deploy
Admin Arsenal Live! : Adding and Removing Microsoft Office Components
Configuring and Deploying the Microsoft Office Customization Toolkit
Preparing The Office Customization Toolkit For Deployment
Deploy the Office Customization Toolkit Remotely

Microsoft:
Product IDs that are supported by the Office Deployment Tool for Click-to-Run
Office 2016 Deployment Tool
Office 2013 Deployment Tool
Language Identifiers

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.