OlegK
Posts: 7
Joined: Tue Jan 02, 2018 9:37 am

Removing previous installation in quite mode

Hello.
I would be very glad if you could help me.
I am trying to make an upgrade to a new version of my application,but because it contains 4 fields it doesn't count it as an upgrade.
I read that you could use a custom action to remove previous installations but this doesn't work in a quite install.
What can I do to remove the previous installation?
To help you understand:
When I am upgrading I am usually just writing to the same directory as the previous installation.
So when I do a quite install it keeps the old value in the control panel -
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\MYAPPNAME 1.1.100.100
and another one by the value of the product key.
and creates a new one.
I will have the use the quite install remotely so how can I go about uninstalling the previous version if I have a different product code at each install?
The big issue is the duplicate entries at the control panel with different versions.

Thank you very much for your help.
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Removing previous installation in quite mode

Hello and welcome to our forums.

Please keep in mind that it is recommended to always change at least one of the first three fields during an upgrade. However, if you change only the fourth field, you can implement the solution described in the "How do I remove the old version when using the fourth field of the Product Version" FAQ.

Let me know if it helps.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”