Share via


Scripted Uninstall for Project and Visio 2016 (for Office 365 Click To Run)

Question

Monday, October 1, 2018 9:44 PM

First of all let me explain what I am trying to do and what I have done:

Goal: To Uninstall Visio and Project from office 2016 (Click to Run version)

What I have done:

I tried to create a script which looks like following:

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

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

I put these commands in Separate batch files to execute them one by one but I am running in to a problem as follows:

We used KACE for deployment in both the cases

Case 1: If I am logged in with my admin account and if I push this script it works fine 

Case 2: If I am logged in with my regular account the same script fails

I've tried running this script with service account as well but it fails if regular account is signed in.

Any ideas on how can I remove project and visio 2016(C2R) with Script?

Any kind of hints and help is appreciated.

All replies (3)

Tuesday, October 2, 2018 2:51 AM

First of all let me explain what I am trying to do and what I have done:

Goal: To Uninstall Visio and Project from office 2016 (Click to Run version)

What I have done:

I tried to create a script which looks like following:

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

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

I put these commands in Separate batch files to execute them one by one but I am running in to a problem as follows:

We used KACE for deployment in both the cases

Case 1: If I am logged in with my admin account and if I push this script it works fine 

Case 2: If I am logged in with my regular account the same script fails

I've tried running this script with service account as well but it fails if regular account is signed in.

Any ideas on how can I remove project and visio 2016(C2R) with Script?

Any kind of hints and help is appreciated.

Hi RaviPatel0641,

I am not familiar with the scripts and working process of KACE. Generally, it is recommended to use the ODT and set the Displaylevel to none to silently remove Click-to-run version of Visio or Project. 

You may refer to the steps below:

1. Download the Office 2016 Deployment Tool from the Microsoft Download Center. It contains the Office 2016 Deployment Tool executable (setup.exe) and a sample configuration file (configuration.xml).

2. Edit the configuration.xml file or create a new .xml file for Visio Professional 2016 uninstall with the following example, save it as UninstallConfig.xml:

<Configuration> 
 <Remove>
    <Product ID="VisioProRetail" > 
      <Language ID="en-us" />        
    </Product> 
 </Remove>
<Logging Level="Standard" Path="c:\Windows\MYCOMPANY\Uninstall_Visio_Pro2016_XML"/>
<Display Level="None" AcceptEULA="TRUE"/>
</Configuration> 3. Then run the ODT executable in configure mode:

setup.exe /configure UninstallConfig.xml

4. Check the log file to confirm if the Visio is uninstalled successfully.

For more information about the Configuration options in ODT configuration.xml file, please read:

https://support.office.com/en-us/article/Configuration-options-for-the-Office-2016-Deployment-Tool-d3879f0d-766c-469c-9440-0a9a2a905ca8

Hope this can be helpful.

Regards,

Yuki Sun

Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].

Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.


Tuesday, February 18, 2020 7:53 AM

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VisioPro2019Volume - en-us

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VisioStd2019Volume - en-us

Save the below mentioned script as Uninstall.xml, replace the required version VisioPro2019Volume  or  VisioStd2019Volume  for the Professional and Standard. Then run setup.exe /configure uninstall.xml

<Configuration>

<Remove>

<Product ID="VisioStd2019Volume" >

<Language ID="en-us" />

</Product>

</Remove>

<Display Level="None" AcceptEULA="TRUE"/>

</Configuration>


Wednesday, July 22, 2020 12:26 AM

This does not work, if you change the Display level to Full you will see that it is asking for confirmation to uninstall which tells me there is a configuration missing like Comfirm=yes