Active5 years, 2 months ago
I am trying to use the msi uninstaller to uninstall inventor 2011 but doing it silently causes explorer to close and not restart. I have a VB script from Autodesk that will work however it is not silent even after modifying it appropriately. I would like to get a silent uninstall that will not close explorer and wait for the reboot. How can I do this?
Msiexec Uninstall Silent Guid
Below is the VBScript from AutoDesk.
I have used in the past wmic.exe product where 'name like 'Adobe Reader%' call uninstall. Wmic seems to no longer work with this latest version and KBOX doesn't show an uninstall command either. Not sure if this is a result of using the Adobe Customization Wizard XI or not.
user188552user188552
1 Answer
This script seems total overkill for uninstalling an application. For a simple uninstall (without the rather dubious looking cleanup script entries above), you simply uninstall from the command line with msiexec.exe (mock up GUID used below):
Or you can uninstall via a number of other uninstall mechanism (this link will also show you how to find the correct GUID to use for uninstall). If explorer.exe is closed at the end you can just start it again via the same batch file?
Community♦
Stein ÅsmulStein Åsmul2,23622 gold badges2020 silver badges3434 bronze badges
Not the answer you're looking for? Browse other questions tagged vbscriptmsiuninstallwindows-explorersilent or ask your own question.
Active1 year, 8 months ago
I tried to uninstall an application using the above commands, but when I run it the confirm window is prompted, I want to prevent the window from showing.
PuneetPuneet
1 Answer
PoSH simply starts the installer / uninstaller (.msi, .exe). If the installer / uininstaller does not have a silent option, there is nothing PoSH can do about that. The RegKey uninstall string is only calling the original installer used to deploy the application.
See this post for a similar discussion.
Other example(s)s:
Search for and Uninstall Software on Remote or Local Computer via Powershell
This script searches for and attempts to uninstall a piece of software by product name. It queries the SCCM client's WMI class for the product, finds the uninstall string and executes the uninstall string.
Powershell Msiexec Uninstall
postanotepostanote5,14322 gold badges44 silver badges1111 bronze badges