Ivan
Posts: 2
Joined: Tue Jan 11, 2005 10:10 am

Use part of ProductVersion?

Hi!

I've created an install file that has product version 3.1 and this is used in the name of a registry key.

I've now updated my install file and want the new version to replace the old version. Reading the instructions it seems one of the things I must do is to set the product version to a higher number.

So I thought I could use 3.1.1 but I need the registry key to still have just 3.1 in the name, i.e. just the major and minor numbers of the product version.

Are there individual properties for the major and minor parts of the product version?



If not, I guess the only option is to hard-code the '3.1' into the name of the registry key - but I am reluctant to do this because when I need to change the version:

1) I cannot rename a key name once it has a sub-key or value (why not???).

2) There are no 'clipboard' facilities to move sub-keys and values to a new key, if I create the new key with the new version in its name.


Can someone tell me the recommended way to do what I'm trying to do?

Thanks.
Ivan.
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

No, I am afraid there are no individual properties for major and minor numbers of the product version.

The only way to do what you want is by hard-coding for now.

You are right about 1) and 2), those areas of improvement for AI are scheduled for a future version.

Best regards,
Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ivan
Posts: 2
Joined: Tue Jan 11, 2005 10:10 am

Cata,

I shall hard-code the version number in the registry key names.

In future, it seems that I can simply open the .aip file with notepad and manually update the key names in the file, effectively doing a rename.

Cheers,
Ivan.

Return to “Common Problems”