Hi,
I'm trying to extract the major and minor version numbers from the ProductVersion property to create shortcuts, folders and registry keys based on the combination of major and minor.
I've tried to go though some of the existing posts threads but some are quite old and others don't really seem to solve my problem.
I've created two support properties:
MAJOR_VERSION
MINOR_VERSION
and used them as parameters for the creation of shortcuts, registry nodes, etc.
At the same time I created a custom action to run a script that updates those properties with the first and second parts of the ProductVersion field
This is my set-up for the Registry and it works well, the registry key is created with the correct major-minor value
This is my set-up for shortcuts and folders
... and it doesn't work since I end up with 0.0 as major and minor numbers
now I think this is caused by the fact that in this second case I'm using pseudoformatted properties (i.e. [|MAJOR_VERSION]) that are resolved at build time, while the custom action that populates the properties is executed at install time and it's helpful only for the registry.
but I couldn't find a way to use non pseudoformatted properties when creating folders or shortcuts, and scripts can't be run at build time.. so how can I solve this o_O ?