Possible error in /SetVersion (inconsistant behaviour) - 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!

Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Possible error in /SetVersion (inconsistant behaviour)

Using AD 7.6.1:
I wanted to use the command line /SetVersion as explained in the following link:
http://www.advancedinstaller.com/user-g ... rsion.html

However, when I set to a new version (from default "1.0.0" to "22.33.44") using this command line - checking the AIP file with Diff Program, I see only TWO differences:

Code: Select all

<ROW Property="ProductCode" Value="1033:{F2896C3D-1531-476D-9995-1112288895FA} " Type="16"/>
<ROW Property="ProductVersion" Value="22.33.44"/>
However, if I perform the SAME thing: change the Product Version from the AdvancedInstaller GUI (_not_ command line), I receive _THREE_ differences:

Code: Select all

<ROW Property="ProductCode" Value="1033:{F2896C3D-1531-476D-9995-1112288895FA} " Type="16"/>
<ROW Property="ProductVersion" Value="22.33.44"/>
<ROW Registry="DisplayVersion" Root="-1" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductName]" Name="DisplayVersion" Value="22.33.44" Component_="AI_CustomARPName"/>
The "new" third difference is something to do with the uninstall.
This looks like a bug to me, and possibly might mean that if I use /SetVerion, I will NOT be able to uninstall (not tested yet by me).

Waiting for your comments on this.
Dashut.
Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Re: Possible error in /SetVersion (inconsistant behaviour)

I tested setting a new version using the commanline /SetVersion, and it seems to be okay, meaning: I could install newer versions and also remove it from the add/remove programs.
However, the third parameter added when using the AdvancedInstaller GUI remains a mystery. If it has no effect, then why is it modified/changed (when using the GUI as opposed to using the command line). If it does have some effect that I can't see right now: then what is it?

Still waiting for your comments on this one, Dashut.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Possible error in /SetVersion (inconsistant behaviour)

Hi Dashut,

Thank you for bringing this to our attention.
This is indeed a bug. I have added the fix on our TODO list.

The bug itself does not affect the functionality of your installer in any way. It is simply a presentation issue in the Add/Remove Programs meaning it will display an incorrect version when using a custom name and updating the version through command line.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: Possible error in /SetVersion (inconsistant behaviour)

G'day,

I am having the same problem with AI 7.7 build 28804

On the Product Details view, I have selected "Override Windows Installer programs list entry". Selecting this option then automatically adds several properties to the aip project file, one of which is "DisplayVersion".

I understand this only effects the version info displayed on the Windows "Add / Remove Programs" view, but it is inconsistent and confusing to users. I only found the problem (and this forum post) because an end-user reported the behavior to me.

Thanks,
-Todd
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Possible error in /SetVersion (inconsistant behaviour)

Hi Todd,

A bugfix for this problem is scheduled for the 8.0 version which will be released in the near future.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”