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

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. 
Or
 Error: Product is not installed, therefore transition to MMode is unsafe for product: LYNCENTRY Type: 27::InstalledProductStateCorrupt.
or 
 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. 


References:
http://www.itninja.com/question/uninstall-silent-lync-2013-client

http://www.itninja.com/question/i-m-looking-for-silent-uninstall-switches-for-lync2013



0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0
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
0
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
0
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

    [setup.xml]

    <?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
0
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?

    thanks.
Please log in to comment
0

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

https://technet.microsoft.com/en-us/library/cc178956(v=office.15).aspx#BKMK_uninstall


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
0
used this script in SCCM.
For manual execution dont double click Run it from CMD from current working DIR.

'==========================================================================================================================
'
' PURPOSE         : To Microsoft_Office2013ProfessionalPlus_15.1_ENU
' SCRIPT NAME     : Install_Microsoft_Office2013ProfessionalPlus.vbs

'==========================================================================================================================
Option Explicit
on error resume next

Dim OsType,StrLyncPath,strLync,Uninstall,command,command1,strCurrentDir

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")

strCurrentDir = Left(Wscript.ScriptFullName, (InstrRev(Wscript.ScriptFullName, "\") -1))

If (OsType = "x86") Then

    StrLync = oshell.ExpandEnvironmentStrings("%programfiles%")
Else
    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



' ********************************************
' To Uninstall remaining componants of office 2010
' ********************************************

 

If (OsType = "x86") Then

Uninstall = oShell.Regread("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Office14.PROPLUS\UninstallString")

else

Uninstall = oShell.Regread("HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Office14.PROPLUS\UninstallString")

End if

If KeyExists("Uninstall") Then

command1 = Uninstall & " /config " & chr(34) & strCurrentDir & "\proplus.ww\config.xml" & chr(34)

oshell.Run command1, 0, True


End if



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

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

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



KMS_SetNActivate

Set oShell = Nothing

Sub KMS_SetNActivate

Const KMSSERVER = "License server address"  'Please specify license server

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"
Else
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