PDA

View Full Version : ProductVer variable



Bob Campbell
11-18-2011, 11:39 AM
Hi Friedrich,

In the SB7 program, on the General Information page, under the Version Resource section, you provide for File Version and Product Version. (I wish you also had a Build Date, but I made my own).

But on the Compiler Variables page, you only provide a [PRODUCTVER] variable and not a [FILEVER] variable.

What's a bit strange is, the [PRODUCTVER] variable gives you the File Version value.

New topic: is there a way to have Registry entries for InstallationDate and InstallationTime and use the %Date% and %Time% environmental variables?

Thanks.

Bob

linder
11-19-2011, 03:25 AM
Bob,

Product Version in the "General Properties" defines the value for [PRODUCTVER] compiler variable and is the complete product version for the product. The setup registers the major and minor version numbers and the DisplayVersion as required by Windows logo guidelines. There is no [FILEVER] compiler variable, but you can define your own if you want. BTW, [PRODUCTVER] does not give you the File Version value. But you can use [PRODUCTVER] in the File Version "Version Resource" if you want, no problem.

You can have whatever you want in the Registry. Just retrieve the installation date and/or installation time in your script ("Get System Info..." script function) and then write it to the registry (Edit Registry... script function).

Hope this helps.

Friedrich

Bob Campbell
11-19-2011, 08:24 AM
Hi Friedrich,

OIC, you have two Product Version entries on the General Information page.

One in the Product Properties sections; the other in the Version Resource section.

Bob

linder
11-20-2011, 05:13 AM
Hi Bob,

Yes, and that is correct. Product Version in the "Product Properties" (format should be AA.BB.CCCC.DDDD) and Product Version in the "Version Resource" are completely different animals.

But you can use the value from the Product Properties in both fields if you want, that's no problem. See attached screenshot.

Hope this helps.

Friedrich

Bob Campbell
11-20-2011, 05:57 AM
Got it. Thanks.

linder
11-20-2011, 06:07 AM
:)

BTW, SetupBuilder 7.6 is nearly around the corner. But if you find any other typo or bug, please let me know. We still have some time to fix it.

Thank you for your help.

Friedrich