Hi Guys, 

I have Microsoft office 2013 installed, and with it, came Lync 2013. 

I tried to execute these commands: 

MsiExec.exe /X{90150000-012B-0409-0000-0000000FF1CE} REMOVE=Lync_CoreDesktop /qn
MsiExec.exe /X{90150000-012B-0409-0000-0000000FF1CE} REMOVE=Lync_CoreFiles /qn

And it worked, BUT, it crashes Microsoft... it means I can't install or uninstall nothing..also, the shortcuts in Desktop and in the menu keeps there.

After that, I tried with the config.xml 

this way:

C:\Program Files (x86)\Common Files\microsoft shared\OFFICE15\Office Setup Controller\Setup.exe /uninstall Lync /config c:\uninstall.xml


(I changed "Lync" to LyncEntry and all the possibilities. 
I open the file: C:\Program Files (x86)\Common Files\microsoft shared\OFFICE15\Office Setup Controller\Lync.en-us\SETUP.xml and tried with the <Setup Id="Lync.en-us"....) 

Didn't work, and I got these error (for each try):
 Error: Product is not installed, therefore transition to MMode is unsafe for product: LYNC Type: 27::InstalledProductStateCorrupt. 
 Error: Product is not installed, therefore transition to MMode is unsafe for product: LYNCENTRY Type: 27::InstalledProductStateCorrupt.
 Error: Product is not installed, therefore transition to MMode is unsafe for product: Lync.en-usType: 27::InstalledProductStateCorrupt. 

I also tried to uninstall the whole Office, changed Lync to ProPlus... it worked.. but I want just Lync. .=( 

I have no idea what I have to do. 

If somebody could help-me, I appreciate. 



0 Comments   [ + ] Show Comments


Please log in to comment


You can no longer use the MSIs to uninstall Office. You need to use an uninstall config file parsed by SETUP. EXE. To do that, you need to use the *exact* name for the product, ensuring that upper- and lowercase letters match. You'll find the name in the file you used for installation.
Answered 09/10/2015 by: VBScab
Red Belt

  • Hi,

    I tried to find this *exact* name, but I couldn't
    I installed it by CD and in the file d:\lync.en-us\setup.xml) is just: Lync.en-us -- (didn't work)

    I uninstall manually, and in the logs I've just seen: "LyncMUI.en-us".. also, didin't work

    Where I can find this name?

    thanks so much!
Please log in to comment
Try adding /dll OSETUP.DLL to your uninstall.

So using what you have above, it would look like this:
C:\Program Files (x86)\Common Files\microsoft shared\OFFICE15\Office Setup Controller\Setup.exe /uninstall Lync /dll OSETUP.DLL /config c:\uninstall.xml
Answered 09/10/2015 by: kalucas
Yellow Belt

Please log in to comment
A thought just hit me...you are matching the Product ID that appears in your XML file with the one in your command line, aren't you?

Also, I'd be using the same source location for the uninstallation as was used for the original installation, not what's in 'C:\Program Files (x86)\Common Files\microsoft shared\OFFICE15\Office Setup Controller'.
Answered 09/11/2015 by: VBScab
Red Belt

  • Yes, I'am


    <?xml version="1.0" encoding="utf-8"?>

    <Setup Id="Lync.en-us" Type="AddOn" Keyword="LyncMUI" Culture="en-us">

    I created an OS image with Office 2013 (using the CD). I applied by K2000 this image on all laptops here.

    And know, I want to uninstall the Lync.. I can't use the original installation(CD).
Please log in to comment
Eh? You have *no* original copies of the source media? What a brave chap you are! Best find it, then!
Answered 09/11/2015 by: VBScab
Red Belt

  • I have the original, and I have the CD.
    What I don't want, is going one by one, put the cd and uninstall.

    Should I create an script by Kace, unzip the source and try to uninstall?
    Do you think the problem is that I'm not using the original installation?

Please log in to comment

I used the below link to uninstall Skype for Business ProPlus 2016 in silent mode, using the original install source:


create the 'SilentUninstallConfig.xml' in the 'proplus.ww' folder & run the following command:
setup.exe /uninstall ProPlus /config %~dp0\proplus.ww\SilentUninstallConfig.xml

Answered 05/10/2017 by: Womain
Senior White Belt

Please log in to comment
I have faced same situation while deploying office 2013 through SCCM. We have following situation on our workstations.

1) Microsoft office 2010+Microsoft Lync 2010 installed on 2000 Workstation 
2) Microsoft office 2010+Microsoft Lync 2013 installed on 3000 Workstations

Now i have created the single package to handle both the scenario.

This script will clean office 2010 and Lync 2010 and it will uninstall Lync 2013 if it exists on the workstation.

Please keep the copy the OffScrub10.vbs and OffScrub13.vbs with same folder from where you can execute the VBS.

Also keep in mind Run the following VBS from current path only.

Please free to ask the questions.

Copy the office setup with these VBS to "C:\Office2013" folder
Open cmd in admin mode
Execute the command 
CD "C:\Office2013"
Execute vbs

' PURPOSE         : To Install Microsoft Office 2013 ProfessionalPlus 15.1 ENU
' SCRIPT NAME     : office2013.vbs
' DATE            : 
' USAGE           : Install Microsoft office 2013 by cleaning old office setup
Option Explicit

Dim OsType,StrLyncPath,strLync

Dim oShell : Set oShell = CreateObject( "WScript.Shell" )

Dim Objfso      : Set Objfso = CreateObject("scripting.filesystemobject")

' ********************************************
' Uninstall Lync 2010 MUI
' ********************************************

oShell.Run "MsiExec.exe /X {CEECF731-3F08-4210-8073-7E87F58C01D3} /QN", 0, True
oShell.Run "MsiExec.exe /X {81BE0B17-563B-45D4-B198-5721E6C665CD} /QN", 0, True

' ********************************************
' Uninstall Lync 2013 MUI
' ********************************************

OsType = oShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE")

If (OsType = "x86") Then

    StrLync = oshell.ExpandEnvironmentStrings("%programfiles%")
    StrLync = oshell.ExpandEnvironmentStrings("%programfiles(x86)%")    
End If

StrLyncPath = StrLync & "\Microsoft Office\Office15\lync.exe"

If objFSO.FileExists(StrLyncPath) Then

oShell.Run "cscript.exe OffScrub13.vbs /CLIENTALL /LYNC /Q /NOCancel", 0, True

End if

' ' ********************************************
' ' Uninstall Office 2010 ENU
' ' ********************************************

oShell.Run "cscript.exe OffScrub10.vbs /ALL /Quiet", 0, True

' ********************************************
' Install Office 2013 ENU
' ********************************************

oShell.Run "setup.exe /adminfile .\Configs\office_FullInstall.msp /config .\ProPlus.WW\config.xml", 0, True

' ********************************************
' Remove SkyDrive Pro context menu entry
' ********************************************

Const REGKEY = "HKCR\AllFilesystemObjects\shell\SPFS.ContextMenu\"

On Error Resume Next
oShell.RegDelete REGKEY
On Error GoTo 0


Set oShell = Nothing

Sub KMS_SetNActivate

Const KMSSERVER = "License address"   'Please modify the license address according to your convenience 

Dim sProcArchi, sPath, sCScriptExe, sCommand

sCScriptExe = oShell.ExpandEnvironmentStrings("%WINDIR%") & "\System32\cscript.exe "
sProcArchi = oShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE")

If sProcArchi = "x86" Then
sPath = "C:\Program Files\Microsoft Office\Office15\ospp.vbs"
sPath = "C:\Program Files (x86)\Microsoft Office\Office15\ospp.vbs"
End If

sCommand = sCScriptExe & Chr(34) & sPath & Chr(34) &  " /sethst:" & KMSSERVER
oShell.Run sCommand, 1, True

sCommand = sCScriptExe & Chr(34) & sPath & Chr(34) &  " /act"
oShell.Run sCommand, 1, True

End Sub

Answered 09/11/2017 by: nonearme
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity