Four numbers versioning - Advanced Installer Community
ales.hrodek
Posts: 65
Joined: Mon Jun 11, 2012 11:40 am

Four numbers versioning

Hello,

Our software use 4 numbers version and we need to keep it as last number is used for hotfix releases. I know WI support only 3 numbers. Till now we used all 4 numbers in Product Version field and always generate new Product Code. This allowed install new version even only last number changed. Now we spotted in Control Panel there is list of multiple records with different 4th number. These are removed when version with 3rd number changed is installed.

What I tested now and works is merge 3rd and 4th number into one so version 5.0.1.2 is installed as 5.0.1002

Great but now version in application is different (format) than one in Control Panel. WI use Display Version (text) and Version (number). I think it could be possible override Display Version property. How? If not in current version of AI then it will great to investigate possibility for future versions. I hope you can find some property what I can just set.

I have some software installed on my PC which show version in Control Panel prefixed with "v". This leads me to conclusion it's not limited even to 4 numbers but Display Version could be any text. eg. "v5.0.1 update 2".
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Four numbers versioning

Hi,

Indeed, the "Display Version" is text and you can modify it by going in the "Registry" page and creating the following registry path:

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ApplicationName}\DisplayVersion
Where "ApplicationName" is the Product Name of your application or the Product Code of the application. "DisplayVersion" is the value that stores the version which is displayed in Control Panel.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ales.hrodek
Posts: 65
Joined: Mon Jun 11, 2012 11:40 am

Re: Four numbers versioning

Thank you, Eusebiu.

Version in Control panel is changed after I edited value in that registry manually. Unfortunately registry value added to project (Resources - Registry) is "ignored". I expect this new value is replaced by regular one at end of installation. Maybe edit registry by Custom Action at the end of installation will solve that.

It is only display issue and my original functional problem is sorted by merging last two numbers so I can live with that. I think, have a "Display Version" settings on Product Detail tab could be nice feature in future versions of AI. That's my suggestion as workaround to Microsoft inconsistent version support (Files vs. Applications).
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Four numbers versioning

Hi,
Version in Control panel is changed after I edited value in that registry manually. Unfortunately registry value added to project (Resources - Registry) is "ignored". I expect this new value is replaced by regular one at end of installation. Maybe edit registry by Custom Action at the end of installation will solve that.
Indeed, it seems that the information from the mentioned registry key is added after the values from the "Registry" page are created, so you should create a custom action that writes that value and execute it after the "Add Resources" action group using the "deferred" with "no impersonation" options.
I think, have a "Display Version" settings on Product Detail tab could be nice feature in future versions of AI. That's my suggestion as workaround to Microsoft inconsistent version support (Files vs. Applications).
We will consider your suggestion for adding this feature, but for the moment there are not immediate plans. Thank you for your suggestion.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mathieu
Posts: 14
Joined: Thu Oct 23, 2014 9:06 am

Re: Four numbers versioning

Hello we're having the exact same issue with our 4 digit based version numbers.
Thanks for the tip
ales.hrodek wrote:I think, have a "Display Version" settings on Product Detail tab could be nice feature in future versions of AI. That's my suggestion as workaround to Microsoft inconsistent version support (Files vs. Applications).
I think this would be a great workaround, I add my vote to this request.

Thank you
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Four numbers versioning

You're welcome.

I increased its priority and it will be available in a future version of Advanced Installer.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mathieu
Posts: 14
Joined: Thu Oct 23, 2014 9:06 am

Re: Four numbers versioning

Can you maybe provide a quick explanation about how to create a custom action for editing this specific registry key?

Many thanks.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Four numbers versioning

Hi,

You can read the following articles which describe how to create/modify a registry value using a VBS or C# custom action:
http://www.robvanderwoude.com/vbstech_r ... hshell.php
https://msdn.microsoft.com/en-us/library/h5e7chcf.aspx

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

Return to “Common Problems”