Silent Uninstall - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

BobCrothers
Posts: 66
Joined: Wed Dec 05, 2007 10:58 pm

Silent Uninstall

Hi,

The various display options, such as
/quiet
/qr
Work fine for install.

I would like a quiet Uninstall. I’ve tried
/quiet and /qr

/quiet does not do anything. There are no errors, and the files are not uninstalled
/qr shows the progress bar etc as if it is installing

/qr /x
Does not work, Windows installer shows a dialog with the run options.

/qr /uninstall
Does not work, Windows installs displays a message, the “patch package could not be opened…”

What I would like is to uninstall the files silently. Progress bars are okay.

Thanks
Bob
Cristi
Posts: 34
Joined: Wed Oct 08, 2008 8:44 am
Contact: Website

Re: Silent Uninstall

Hi,

For performing a silent uninstall of your package I recommend using a command line which looks like this:

Code: Select all

msiexec /x ProductName.msi /qb
If you want to uninstall a patch I recommend using a command line which looks like this:

Code: Select all

msiexec /uninstall PatchName.msp /package ProductName.msi /qb
Here you can find more information about msiexec.exe
or you can just type msiexec /? in a Command Prompt window.


Best regards,
Cristi
______________________________
Cristi Costache
Advanced Installer Team
http://www.advancedinstaller.com/
BobCrothers
Posts: 66
Joined: Wed Dec 05, 2007 10:58 pm

Re: Silent Uninstall

Thanks for the prompt reply Cristi.

We always "Include install files in EXE." Which means the .msi file is not readily available. I see .msi files in c:\windows\installer directory, but I don’t now which file is my install file. Are there options that I can pass to the .exe file created by advanced installer which will do the same as "msiexec /x ProductName.msi /qb"? Or is there a way to know which file in c:\windows\installer is my install file?

Thanks
Bob
Cristi
Posts: 34
Joined: Wed Oct 08, 2008 8:44 am
Contact: Website

Re: Silent Uninstall

Hi Bob,

Yes, there are. I'll describe the necessary steps:

- extract the .MSI from the .EXE installation file using a command line which looks like this:

Code: Select all

ProductName.exe /extract:"C:\My Product Folder"
- open the extracted .MSI with ORCA then go to Property table and get the ProductCode

- perform the silent uninstall using a command line which looks like this:

Code: Select all

msiexec.exe /x ProductCode /qb
where you replace "ProductCode" with the GUID obtained with ORCA.

Best regards,
Cristi
______________________________
Cristi Costache
Advanced Installer Team
http://www.advancedinstaller.com/
BobCrothers
Posts: 66
Joined: Wed Dec 05, 2007 10:58 pm

Re: Silent Uninstall

Thank You for the detailed information.

Bob

Return to “Common Problems”