Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Sunday, May 26, 2019 12:41 AM
As an example, Microsoft Visual Studio Community 2019
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" /uninstall --quiet
... this leaves behind several programs that require separate uninstallation commands.
Microsoft SQL Server 2016 LocalDB
MsiExec.exe /x {9097BF1A-13A0-4A4A-A1F8-473E2A669863} /qn
IIS 10.0 Express
MsiExec.exe /x {ACE1F06E-DB73-449B-ADEF-C94F4C8685A9} /qn
Microsoft Web Deploy 4.0
MsiExec.exe /x {B9DCF505-5A79-4CB4-8440-28B89798ABAB} /qn
Windows SDK AddOn
MsiExec.exe /x {1E76DFA7-96F3-4281-8E41-8A226C3E42EE} /qn
Microsoft .NET Core SDK 2.1.700 (x64)
MsiExec.exe /x {7EF4488F-FCAD-481A-A757-314CED3E7092} /qn
"C:\ProgramData\Package Cache\{2335da6c-07b8-4479-b89c-f52986f760f6}\dotnet-sdk-2.1.700-win-x64.exe" /uninstall /quiet
Intune Client App configuration offers a single line for an uninstallation command. How can I get rid of these extra programs as part of the uninstallation command for Microsoft Visual Studio Community 2019?
All replies (5)
Monday, May 27, 2019 10:17 PM âś…Answered
You can use one package. Use the Win32 content prep tool to create a .intunewin file that contains your executables, and install and uninstall scripts. Then you can add your uninstall command like this (where uninstall.ps1 is your script that contains all the uninstall logic)
More info - https://docs.microsoft.com/en-us/intune/apps-win32-app-management
Sunday, May 26, 2019 5:08 AM
You can use the Intune win32 apps and use a script for the uninstallation.
Monday, May 27, 2019 8:30 PM
I want to create the uninstall commands as the uninstall command for that app package, not as a separate package.
Tuesday, May 28, 2019 7:15 PM
Lol. I already use embedded scripts for the installer. I never thought to use the same logic for the uninstaller. I looked at it as simply an external command, not embedded. It's been a long week... yes it's only Tuesday.
Does this then mean that to uninstall the entire package is re-downloaded, or does the applied package remain cached on the machine?
Tuesday, May 28, 2019 10:15 PM
If it was previously installed by that package then it should remain on the machine. I haven't tested it though.