narsingani
Posts: 23
Joined: Thu Sep 12, 2013 4:59 am

Uninstall existing version and install latest version

Hi,

I have prepared an installer. The installer does not have any old versions details but just gives a message to the user that any existing version of the same product will be uninstalled and latest version will be installed on the machine. If the user confirms then installer should proceed ahead and remove existing version and install new version. It is working partially, the process installs latest exe under the nominated directory but it does not un-register it from the control panel(does not get un-installed) so I have 2 versions registered in the add remove programs. Not sure how to achieve this so old version(any existing version) can get un-installed completely and then install the new version.

Any help on this will be appreciated.

Thanks in advance for your assistance!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall existing version and install latest version

Hi,

An upgrade installation consists in two parts:
  • the uninstall of the old product version
  • the installation of the new product version
As I can see, your both packages are installed. This may happens if the forth field of the product version is used. Please note that the fourth field of the Product Version is ignored by Windows Installer when comparing product versions. This is why you should make sure the first three fields of your upgraded Product Version have an increased version than those of your old Product Version.

When the first three fields of the old and upgraded Product Version are identical, then the upgrade installation will either fail with "Another version of this product is already installed" message or will be installed side by side with the old version (when using different Product Codes).

You can also take a look on the How do I upgrade an older version of the package? article which may be useful to you.

Please let me know if that helped, otherwise give me more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
narsingani
Posts: 23
Joined: Thu Sep 12, 2013 4:59 am

Re: Uninstall existing version and install latest version

Hi Dan,

This is not the case here. The existing installed version is 3.8.0.94 where the new version is 4.3.4.97. However the previous version was installed using another compiler where the new version is being installed using the Advanced Installer which could be the cause here. What do you reckon?

Further on my previous comments.
I have just tested this with both installer created by Advanced installer but still having the same issue.

Existing version 4.2.0.96
New version 4.3.4.97

It replaced files and updates registry but does not remove it from the windows add/remove programs.

Your assistance will be appreciated.

Thank you!

Upendra
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Uninstall existing version and install latest version

Hi Upendra,

In order to update an older version of the package, please follow the steps from the How do I upgrade an older version of the package? article.

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

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”