Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

User is able to install 2 different versions of the aip in the same machine

Hi,

I have an aip, say A.aip with version 1.0.0.0. I installed this exe in my test machine.
Next, I upgraded the version of A.aip to 1.0.0.1. Without uninstalling 1.0.0.0 , I installed version 1.0.0.1.
I was able to install that version also successfully. The control panel shows 2 entries for the same product with different version.
This is not acceptable. Why does this happen?

Thanks in advance,
Jis
Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Re: User is able to install 2 different versions of the aip in the same machine

Also, I am installing the files in both the case to the same folder.

Thanks again,
Jis.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: User is able to install 2 different versions of the aip in the same machine

Hello Jis,

This is happening because the Windows Installer ignores the fourth field of the ProductVersion. To correctly build an upgrade package please increase at least one of the first three fields of the ProductVersion.

If you have any further questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Re: User is able to install 2 different versions of the aip in the same machine

Thanks for your response. But it is our requirement that we need 4 fields for version. Isn't there any way to solve this? :(

Regards,
Jis.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: User is able to install 2 different versions of the aip in the same machine

Hello Jis,

I'm afraid you should always increase at least one of the first three product fields. Otherwise, Windows Installer will ignore any change of the fourth field. This is its design.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Helan
Posts: 19
Joined: Thu Mar 16, 2017 2:32 pm

Re: User is able to install 2 different versions of the aip in the same machine

Daniel wrote:Hello Jis,

I'm afraid you should always increase at least one of the first three product fields. Otherwise, Windows Installer will ignore any change of the fourth field. This is its design.

All the best,
Daniel
Won't the trick suggested by Dan in this thread solve the problem with only changing the fourth product version number field?

http://www.advancedinstaller.com/forums ... hp?t=30692
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: User is able to install 2 different versions of the aip in the same machine

Hello,

Yes, the workaround presented by my colleague Dan will work, but has the disadvantage that you should manually change the ProductCode each time you increase the ProductVersion. Forgetting changing the ProductCode it will lead to corrupted installations.

However, I can confirm you this is a valid workaround.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Re: User is able to install 2 different versions of the aip in the same machine

Hi
Thanks for your response. I tried to do the work around mentioned in the post.
I enabled the customize option and enabled the Include maximum version in range option. But in this case my installation is ended prematurely.
Should the 'Include minimum version in range option' be enabled?
I tried with the option enabled also, that also ends the executable prematurely.

Could you help me here.

Thanks in advance,
Jis.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: User is able to install 2 different versions of the aip in the same machine

Hello Jis,

Can you please send us the .AIPs (project files) of old and new version and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?
Should the 'Include minimum version in range option' be enabled?
No, this is not mandatory.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Re: User is able to install 2 different versions of the aip in the same machine

Hi Daniel,

Thanks for all the support.
There was a corrupted values in the registry of my application that I was trying to install and that was causing the installation to end even using the work around you mentioned. After cleaning the registry it worked fine with the workaround.

Thanks alot,
Jis.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: User is able to install 2 different versions of the aip in the same machine

You're welcome Jis.

Thank you for your follow up on this.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Re: User is able to install 2 different versions of the aip in the same machine

Hi,

This issue got fixed for me once while testing, but now when working with the official build it again fails. The installation ends prematurely.

Do'nt know what is the reason. Product code is generated newly before the build is kicked off.
I have send my error log to support@advancedinstaller.com

Thanks in advance,
Jis
Last edited by Jis on Tue Oct 24, 2017 12:08 pm, edited 1 time in total.
Jis
Posts: 51
Joined: Thu Dec 12, 2013 6:02 am

Re: User is able to install 2 different versions of the aip in the same machine

Jis wrote:Hi,

This issue got fixed for me once while testing, but now when working with the official build it again fails. The installation ends prematurely.

Do'nt know what is the reason. Product code is generated newly before the build is kicked off.

I have send my error log to support@advancedinstaller.com

Thanks in advance,
Jis
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: User is able to install 2 different versions of the aip in the same machine

Hello Jisy,

It seems there is one of your custom action you added into your setup project which fails. I've sent you more details by email.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”