Uninstall another windows application during set up - Advanced Installer Community
GQBSATO
Posts: 9
Joined: Fri May 08, 2015 2:56 am

Uninstall another windows application during set up

Hi Support,

I've been trying to uninstall another windows application during the setup but I don't know where to start. I also looked into http://www.advancedinstaller.com/user-g ... l-msi.html article but it's not what I wanted. I hope you can give me direction to move forward.

Please let me give you more details. We are previously using the default installer project in VS2005(ex. Software A.0) to create package which we distributed for free to our customers. Recently, we decided to use your product and we find it amazing. After using your product, we were able to install our software (ex. Software A.1) to the "same directory" of the old product (because we need to retain the setting file) without any issue.

My problem now is that there are two Software A (Software A.0 and Software A.1) showing in the " Windows Control panel > Program > Uninstall or change program". I also don't want the users to manually uninstall the Software A.0 before installing Software A.1. Uninstalling Software A.0 or Software A.1 in the " Windows Control panel > Program > Uninstall or change program" would clear the application folder obviously.

During the installation process of Software A.1, can I check the version of Software A.0 and prompt the user to uninstall if it exists first before proceeding (Assuming I don't know the product code of Software A.0 and there's no entry in the registry for Software A.0)?

Please advice if its possible to achieve this using your product.

PC Details:
Windows 8.1 64 Bit
Windows SDK for Windows 8.1
Advanced Installer V11.6.3 build 61254 (Enterprise)

Thanks and Best Regards,
Glenn
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Uninstall another windows application during set up

Hi Glenn,
because we need to retain the setting file
Please keep in mind that it is recommended that you keep user setting file under Application Data folder, not in the application installation folder.
My problem now is that there are two Software A (Software A.0 and Software A.1) showing in the " Windows Control panel > Program > Uninstall or change program". I also don't want the users to manually uninstall the Software A.0 before installing Software A.1. Uninstalling Software A.0 or Software A.1 in the " Windows Control panel > Program > Uninstall or change program" would clear the application folder obviously.
Under normal circumstances, a folder installed by the package will be uninstalled automatically. However, if it contains resources which were not created by the installation package, the folder will not be removed.
So, if the new version Software A.1 is installed in the same folder, uninstalling Software A.0 will not delete the folder.
During the installation process of Software A.1, can I check the version of Software A.0 and prompt the user to uninstall if it exists first before proceeding (Assuming I don't know the product code of Software A.0 and there's no entry in the registry for Software A.0)?
Unfortunately, we not have predefined support for this. But, it is not recommended to stop an installation and force the user to go and uninstall a different application before proceeding.
A possible workaround would be to add an additional upgrade condition. Since your package is implemented in VisualStudio, it means it is an .msi package that has an upgrade code. Using these information, you can add a new upgrade in the "Upgrades" section in the "Upgrades" page.
Using this constraint, the installer will identify the old version on the system and uninstall it in the manner you choose in the "Order" section.
Please keep in mind that a per-user installation cannot upgrade a per-machine installation and a per-machine installation cannot upgrade a per-user installation. You can choose between these options in the "Install Parameters" page.
We are previously using the default installer project in VS2005(ex. Software A.0) to create package which we distributed for free to our customers. Recently, we decided to use your product and we find it amazing.
Would you be so kind to let us use this phrase as a testimonial in our testimonial page? If yes, please send us your desired details (name, company, position) at support at advancedinstaller dot com .

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Kind regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GQBSATO
Posts: 9
Joined: Fri May 08, 2015 2:56 am

Re: Uninstall another windows application during set up

Hi Irina,

Thank you for your reply. I'll try your recommendations.

Regarding the testimonials, it's my personal view although we have used your product for our installer packages. I will let my superior now about your request.

Thanks and Best Regards,
Glenn
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Uninstall another windows application during set up

You are always welcome, Glenn.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact us and we will gladly assist.

Kind regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”