cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
DanielEgleston
Level 3

Accessing ProductVersion Property in Launch .EXE Custom Action

I need to update a database table with the ProductVersion of the InstallShield package. I have created a simple application that updates the database table using a command line input parameter. However, I can't seem to supply the ProductVersion property value to the .EXE through the command line call.

Is it possible to refer to the ProductVersion property from a custom action when launching an .EXE? If so, what is the syntax? I have tried to use the [ProductVersion] syntax, but the value provided to the .EXE is empty.

Thanks in advance,
Dan
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

Using [ProductVersion] as a command-line argument should work. As a test, does your EXE work if you pass in a different property, or a hard-coded version?
0 Kudos
DanielEgleston
Level 3

Robert,

First, thank you for the quick reply.

Second, you were right. It turns out that the command line application didn't like the dot notation of the version number. It required me to put quotes around the [ProductVersion] property reference. Once I did that, everything worked as expected.

Thanks,
Dan
0 Kudos