Uninstall Lync 2010 client and install Lync 2013


  • I need to create an application to uninstall Lync 2010 and install Lync 2013 client.  The Lync 2013 client by design does not uninstall the 2010 client.  What is the best way to do this in SCCM 2012 SP1?
    Wednesday, February 06, 2013 4:51 PM


All replies

  • What about creating an application for Lync 2010 (incl install / uninstall command line) and use supersedence (so that Lync 2013 supersedes Lync 2010)?

    Torsten Meringer |

    Wednesday, February 06, 2013 4:56 PM
  • That's a good idea.  Never used that before.  Question: Does it uninstall before installing the new software or vise versa?
    Wednesday, February 06, 2013 5:12 PM
  • That can be configured when creating the supersedence relationship.

    Torsten Meringer |

    Wednesday, February 06, 2013 5:32 PM
  • So I gave it a try and the uninstall is not working..  The file is being copied to the client but give me this error message in the logs:

        Prepared working directory: C:\Windows\ccmcache\d AppEnforce 2/6/2013 9:36:33 AM 4412 (0x113C)
        Prepared command line: "C:\Windows\ccmcache\d\LyncSetup.exe" /uninstall AppEnforce 2/6/2013 9:36:33 AM 4412 (0x113C)
        Executing Command line: "C:\Windows\ccmcache\d\LyncSetup.exe" /uninstall with user context AppEnforce 2/6/2013 9:36:33 AM 4412 (0x113C)
        Working directory C:\Windows\ccmcache\d AppEnforce 2/6/2013 9:36:33 AM 4412 (0x113C)
        Post install behavior is NoAction AppEnforce 2/6/2013 9:36:33 AM 4412 (0x113C)
        Waiting for process 3732 to finish.  Timeout = 120 minutes. AppEnforce 2/6/2013 9:36:33 AM 4412 (0x113C)
        Process 3732 terminated with exitcode: 1 AppEnforce 2/6/2013 9:36:34 AM 4412 (0x113C)
        Looking for exit code 1 in exit codes table... AppEnforce 2/6/2013 9:36:34 AM 4412 (0x113C)
        Unmatched exit code (1) is considered an execution failure. AppEnforce 2/6/2013 9:36:34 AM 4412 (0x113C)

    If I run the command manually from the cmd it works fine and uninstalls the software.  Is there a piece I am missing?

    Wednesday, February 06, 2013 5:41 PM
  • Hi,

    Have you configured the uninstall to run with administrative priviliges? It could the reason that it tries to uninstall in user context.


    -- My System Center blog -- Twitter @ccmexec

    Wednesday, February 06, 2013 6:41 PM
  • I'm also interested in doing this as well.  Did you find a solution for this?  Thanks!
    Friday, February 22, 2013 3:22 PM
  • I did get it to work using the create two packages for 2010 and 2013 and using Supersedence.
    • Proposed as answer by DeeMath7 Friday, February 22, 2013 7:02 PM
    • Unproposed as answer by DeeMath7 Friday, February 22, 2013 7:02 PM
    Friday, February 22, 2013 3:55 PM
  • sounds good.  was the supersedence set up easy once you have the 2013 package ready?
    Friday, February 22, 2013 7:04 PM
  • on a side note have you deployed Lync 2010 Mobility server?
    Friday, February 22, 2013 7:05 PM
  • That part is very easy.  The pain was getting the Lync 2010 client to uninstall. :)  Hard finding the correct command line that worked for me.  I am not a package expert but I am getting there.
    Saturday, February 23, 2013 12:19 AM
  • We have had it for many months deployed on our edge server.
    Saturday, February 23, 2013 12:20 AM
  • that sounds great.  any way I can contact you via email?
    Monday, February 25, 2013 9:30 PM
  • So what exactly was the final command line that worked for you?
    Monday, February 25, 2013 11:06 PM
  • Hi, you can create customize the Lync2013 Admin file (navigate to your Microsoft Office setup folder, etc //Lync2013/setup.exe /admin) and create an msp file. Create a package and deploy it. 

    There is a portion in the MSP file where you can set what Office does after installation and before installation. This will uninstall Lync 2010 during the Office 2013 installation

    1. Copy the Lync 2010 setup file (LyncSetupVolume.exe)  into the same folder as your Lync 2013, create a folder called Lync2010.

    2. Run eg: //Lync2013/setup.exe /admin to create a new msp file (you can also use an existing msp file if available)

    3. In the MSP file , go to Setup>Add installations and run programs> add a command line (after installation, do not choose before installation) , etc //Lync2013/Lync2010/LyncSetupVolume.exe /silent /uninstall

    4. Save the file.

    5. Create a package with Lync 2013 //Lync2013/setup.exe /adminfile automated.msp

    6. Deploy it.

    You can customize the Office2013 Admin file to your liking as well. To test it out, may I suggest to deploy it through SCCM to a test machine as Available first and see if it works before deploying it as Required.

    Tuesday, February 26, 2013 2:33 PM
  • I'm struggling with a command line myself for a uninstall for Lync 2010. Can you tell me what worked for you?

    This is painful!!!  ThankS!!!

    Thursday, August 01, 2013 7:20 PM
  • I tried this and it didn't work for me.. I wonder why..
    Thursday, August 01, 2013 7:21 PM
  • I'm using SCCM 2007 tho. but, don't think it matters.
    Thursday, August 01, 2013 7:21 PM
  • Create a software task sequence in SCCM. Kill the Lync 2010 EXE, then uninstall Lync 2010 with the original Lync 2010 installer. Then install Lync 2013.

    --Example Task Seq--

    taskkill /f /im communicator.exe /t (command line)
    taskkill /f /im ucmapi.exe /t           (command line)
    Uninstall Lync 2010                      (Software Install)
    Install Lync 2013                          (Software Install)

    ---End Task Seq----

    Example of Lync 2010 uninstall command used with the Lync 2010 msi installer file.

    msiexec.exe /uninstall Lync.msi /qn

    Example of Lync 2013 install command used with the Lync 2013 installer you downloaded.

    setup.exe /adminfile Lync32bit.MSP       (Use MSP file you create by using the command setup.exe /admin)

    Modify as needed. This is not meant to be exact file names for all situations. Your install may vary.

    Thursday, August 08, 2013 7:20 PM
  • Create SCCM package as a script

    Batch file


    MsiExec.exe /QN /NORESTART /X{81BE0B17-563B-45D4-B198-5721E6C665CD}

    setup.exe /adminfile Lync32bit.MSP 


    Thursday, August 22, 2013 6:23 PM
  • Hi, I am a bit stuck with this. I am planning on uninstalling Lync 2010 and installing 2013.(I am using a vb+GPO script on logon). Lync 2013 installs, but Lync 2010 does not.

    In the Office Customization Tool - Set-up - Add Installation and Run Programs,

    In target - pointing to the Lync2010 exe file

    In Arguments - /silent /uninstall

    Is this correct?

    Also, i would have thought that, Remove Previous Installations, it would have an option to remove Lync2010?

    Anyway..pulling my hair out here!


    Tuesday, February 04, 2014 1:08 PM
  • For the ones who are using ConfigMgr 2012, use APPLICATIONS instead of packages.

    1. Configure application for Lync 2010
    2. Configure application for Lync 2013
    3. Configure Lync 2013 application to supersede the Lync 2010
    4. Deploy Lync 2013

    More info on deploying Lync 2013:

    • Proposed as answer by Narcoticoo Tuesday, February 04, 2014 3:08 PM
    Tuesday, February 04, 2014 3:07 PM