cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
realist
Level 2

Link file version in component with IS 'Product Version'

Does anyone know whether it's possible to
link the file version of a particular exe file in a component
with the 'Product Version' setting under 'General Information'?

When building the release, my goal is to automatically update
the product version of the installer package in accordance with
the main program exe file which determines of what version the
whole installer package currently is, so that I could use this
in an IsCmdBld.exe build without any manual intervention.

Thanks to all who want to help.
Labels (1)
0 Kudos
(2) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

We don't offer any built-in ways to do this, although it shouldn't be too hard to write a program that would examine the file's version (or get it from a shared source) and pass it as a parameter to iscmdbld.exe. One major thing to note if you go down this path, however, is that Windows Installer treats ProductVersion differently from file versions. In ProductVersion it only examines the first three fields, whereas for file versions it examines all four.
0 Kudos
realist
Level 2

Hi Michael,

Thanks for your clarification. I'm about to develop a small supporting application that will
deliver the missing information to the command line of IsCmdBld.exe in a .bat batch file
which will then be executed.

BTW: Could you perhaps also comment on my other post 'Placeholder in Custom Version Properties'?
0 Kudos