none
Uninstall SfB Basic via startup script GPO RRS feed

  • Question

  • I am trying to deploy the click-to-run Office 365 apps, but many of my workstations have SfB Basic installed, which has to be removed first. I retrieved the msi package guids for SfB Basic from one of the computers:

    {90160000-012B-0409-0000-0000000FF1CE} Microsoft Skype for Business MUI (English) 2016
    {90160000-012D-0000-0000-0000000FF1CE} Microsoft Skype for Business Entry 2016

    and added the uninstalls to the start of my startup script:

    start /wait msiexec.exe /X {90160000-012B-0409-0000-0000000FF1CE} /QN /quiet /norestart /lie c:\swsetup\SkypeMui.log
    start /wait msiexec.exe /X {90160000-012D-0000-0000-0000000FF1CE} /QN /quiet /norestart /lie c:\swsetup\SkypeEntry.log

    This removes Skype MUI, but not the second Entry package.

    The SkypeEntry.log file contains these lines (among many others):

    DEBUG: Error 2749:  Transform lyncentww_xnone_42661001.1 invalid for package C:\Windows\Installer\7364e.msi. Expected product version == 16.0.4266.1001, found product version 16.0.4351.1001.
    1: 2749 2: lyncentww_xnone_42661001.1 3: C:\Windows\Installer\7364e.msi 4: 16.0.4266.1001 5: 16.0.4351.1001 
    //
    DcaRemoveSpawn:  Preparing to spawn process: C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE16\Office Setup Controller\setup.exe  /UNINSTALL Office16.LYNCENTRY /CONFIG "C:\windows\TEMP\DCA9E9F.tmp"
    CustomAction DcaRemoveSpawn returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
    Action ended 16:32:15: DcaRemoveSpawn. Return value 3.
    Action ended 16:32:15: INSTALL. Return value 3.
    MSI (s) (08:58) [16:32:15:538]: Product: Microsoft Skype for Business Entry 2016 -- Removal failed.

    After this, I can't even uninstall Skype manually. It says the installation is corrupt, and I need to reinstall before I can uninstall.

    Can anyone tell me what I'm doing wrong with this uninstall?


    Blog / Twitter

    Tuesday, September 6, 2016 7:02 PM

Answers

  • These didn't work either.

    I also tried downloading the SfB Basic 2016 CtR package and using the ctr setup.exe with a remove xml file to uninstall it. No go.

    I finally found the solution, here though! http://www.danielclasson.com/how-to-retrieve-the-offscrub-script-for-removing-office-2016office-365-installations/

    o15-ctrremove.diagcab contains a vbs script designed to remove all or part of Office 2016 ctr.

    I extracted and used OffScrub_O16msi.vbs like this:

    OffScrub_O16msi.vbs ALL /Log C:\swsetup

    This removed every trace of Office 2016 from the computer and wrote detailed log files to c:\swsetup. This command would have removed only SfB Basic 2016:

    OffScrub_O16msi.vbs LYNCENTRY


    Blog / Twitter

    • Marked as answer by reprac Friday, September 16, 2016 4:36 PM
    Friday, September 16, 2016 4:36 PM

All replies

  • Hi reprac,

    Welcome to our forum.

    Because when you re-install it, then it could be uninstalled. We suggest you change order in script as the following:

    start /wait msiexec.exe /X {90160000-012D-0000-0000-0000000FF1CE} /QN /quiet /norestart /lie c:\swsetup\SkypeEntry.log

    start /wait msiexec.exe /X {90160000-012B-0409-0000-0000000FF1CE} /QN /quiet /norestart /lie c:\swsetup\SkypeMui.log


    Best Regard,
    Jim Xu
    TechNet Community Support


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
    Wednesday, September 7, 2016 9:51 AM
    Moderator
  • Thanks, Jim.

    I tried reversing the order, but with the same results. The MUI component uninstalled, but not the Entry component.

    There are a number of other Office 2016 updates installed, proofing tools, for example. Do all updates need to be individually uninstalled first? Surely not.


    Blog / Twitter

    Wednesday, September 7, 2016 7:45 PM
  • Hi reprac,

    From the Debugging log, we can see the error message clearly:

    DEBUG: Error 2749:  Transform lyncentww_xnone_42661001.1 invalid for package C:\Windows\Installer\7364e.msi. Expected product version == 16.0.4266.1001, found product version 16.0.4351.1001.

    To resolve this issue, we need fix this error preferentially. However, the possible method would be uninstall the updates. Then to make the product version same to the expected product version.

    Please try to use the following command:

    1). MsiExec.exe /i {90160000-012B-0409-0000-0000000FF1CE} REMOVE=Lync_CoreDesktop /qn

    2). MsiExec.exe /i {90160000-012D-0000-0000-0000000FF1CE} REMOVE=Lync_CoreFiles /qn

    In addition, there is another option to uninstall Lync 2013, which use Office Deployment Tool:

    https://jamiewood.io/installing-office-365-skype-for-business-via-group-policy/

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    Best Regard,
    Jim Xu
    TechNet Community Support


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
    • Edited by jim-xuModerator Monday, September 12, 2016 1:49 AM
    • Proposed as answer by jim-xuModerator Friday, September 16, 2016 8:48 AM
    • Unproposed as answer by reprac Friday, September 16, 2016 4:31 PM
    Monday, September 12, 2016 1:49 AM
    Moderator
  • These didn't work either.

    I also tried downloading the SfB Basic 2016 CtR package and using the ctr setup.exe with a remove xml file to uninstall it. No go.

    I finally found the solution, here though! http://www.danielclasson.com/how-to-retrieve-the-offscrub-script-for-removing-office-2016office-365-installations/

    o15-ctrremove.diagcab contains a vbs script designed to remove all or part of Office 2016 ctr.

    I extracted and used OffScrub_O16msi.vbs like this:

    OffScrub_O16msi.vbs ALL /Log C:\swsetup

    This removed every trace of Office 2016 from the computer and wrote detailed log files to c:\swsetup. This command would have removed only SfB Basic 2016:

    OffScrub_O16msi.vbs LYNCENTRY


    Blog / Twitter

    • Marked as answer by reprac Friday, September 16, 2016 4:36 PM
    Friday, September 16, 2016 4:36 PM
  • Cab you share the OffScrub_O16msi.vbs? Thanks!
    Tuesday, April 25, 2017 6:23 PM
  • You should be able to extract it from the o15-ctrremove.diagcab that you can download here.

    Blog / Twitter

    Tuesday, April 25, 2017 7:30 PM
  • Unless my eyes are shot, it's not in there. I extract using 7zip and get ps1, psd1, etc. but no vbs.  

    Tuesday, April 25, 2017 7:39 PM
  • Yep. I don't see it either. It might have been replaced by one of the ps1 files or maybe it's gone to an all-or-nothing approach. 

    Here's a link to the vbs file that I got from the old version of the diagcab file. Evaluate and use at your own risk, of course.


    Blog / Twitter

    Tuesday, April 25, 2017 8:03 PM
  • Thanks!!
    Tuesday, April 25, 2017 8:29 PM