Automatic uninstall of bootstrapped exe package? - 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!

Peter350
Posts: 30
Joined: Sat Oct 17, 2009 1:56 pm

Automatic uninstall of bootstrapped exe package?

When developing I am uninstalling/installing many times.

I am looking for the fastest way to uninstall automatically.

In MSI
http://www.advancedinstaller.com/user-g ... iexec.html

the /x switch may be used to specify an uninstall.

However my project is an .exe (mixed 64/32 bit bootstrapped) and therefore calling

msiexec.exe /x myInstaller.exe

results in an error from msi: "This installation package could not be opened".

Is there any way to pass a command line switch to the .exe to trigger an automatic uninstall?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Automatic uninstall of bootstrapped exe package?

Hi Peter,

This is automatically done by Advanced Installer.
Edit your project. Install it using the "Run" toolbar button. Edit your project again. When pressing the "Run" toolbar button again, your project will be rebuilt, the previous installed version will automatically be uninstalled (in basic mode /qb) and then your newly build installer will start.

If you need this done through command line, you can use:

Code: Select all

msiexec /x {ProductCode}
where {ProductCode} is your installer's Product Code. You can view it by going in your .aip project and selecting Project->Options->Product IDs from the top menu.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”