This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: InstallScript version numbers
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 02, 2007
03:52 PM
InstallScript version numbers
Howdy,
Just a quick question about version numbers in InstallScript projects.
Our product does not follow the aaa.bbb.cccc version number format. We've used aaaa.bb.c for many years. We haven't had any problems with this format in prior years as we used a different installer, but this year we've switched to InstallShield and it's causing us a bit of worry.
My problem comes down to the version number display in the Update dialogs and the Add/Remove product information. For example, this year our first version will be 2007.1.0. I can't enter 2007.1.0 as a version number, so I used 07.1.0. InstallShield drops the first zero and shows 7.1.0 as our product version number.
I realize the aaa.bbb.cccc format is needed by InstallShield and that's fine. I would like to know if there's a way to change the Update dialogs and Add/Remove information so it shows a version number that I define at the top of my project in the proper format of our version numbers.
Thanks,
=-Jippy
Just a quick question about version numbers in InstallScript projects.
Our product does not follow the aaa.bbb.cccc version number format. We've used aaaa.bb.c for many years. We haven't had any problems with this format in prior years as we used a different installer, but this year we've switched to InstallShield and it's causing us a bit of worry.
My problem comes down to the version number display in the Update dialogs and the Add/Remove product information. For example, this year our first version will be 2007.1.0. I can't enter 2007.1.0 as a version number, so I used 07.1.0. InstallShield drops the first zero and shows 7.1.0 as our product version number.
I realize the aaa.bbb.cccc format is needed by InstallShield and that's fine. I would like to know if there's a way to change the Update dialogs and Add/Remove information so it shows a version number that I define at the top of my project in the proper format of our version numbers.
Thanks,
=-Jippy
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 03, 2007
08:23 AM
There are two variables that represent an isntallers version in an InstallScript project. IFX_PRODUCT_VERSION, which is what the engine uses to determine what version is installed, and IFX_PRODUCT_DISPLAY_VERSION which would be the version number you would want to display to the customer. Set the later to your specialized version number in the OnBegin event and this should solve your problem.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 04, 2007
01:45 PM
Thanks for the reply.
I've added that code to my OnBegin event as such:
function OnBegin()
begin
IFX_PRODUCT_DISPLAY_VERSION = "2007.0.0";
end;
However, the Support Info dialog box in Add / Remove Programs for our product still shows 07.0.0. It's still getting that version number from the Product Properties entry.
Any other thoughts? Is there a way I can change the version number that displays in the Support Info dialog?
Thanks,
=-Jippy
I've added that code to my OnBegin event as such:
function OnBegin()
begin
IFX_PRODUCT_DISPLAY_VERSION = "2007.0.0";
end;
However, the Support Info dialog box in Add / Remove Programs for our product still shows 07.0.0. It's still getting that version number from the Product Properties entry.
Any other thoughts? Is there a way I can change the version number that displays in the Support Info dialog?
Thanks,
=-Jippy
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 04, 2007
01:55 PM
You may need to make the following function call somewhere in your script.
I have not tested this code so it may need some modifications. However, I hope it at least points you in the right direction. I ussually place code like this in the OnCustomizeUninstInfo event, but it can be placed anywhere in your script after the uninstall entry is created in the registry.
RegDBSetItem(REGDB_UNINSTALL_NAME, IFX_PRODUCT_DISPLAY + " " + IFX_PRODUCT_DISPLAY_VERSION);
I have not tested this code so it may need some modifications. However, I hope it at least points you in the right direction. I ussually place code like this in the OnCustomizeUninstInfo event, but it can be placed anywhere in your script after the uninstall entry is created in the registry.