LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Prgrammatic install name

Solved!
Go to solution

When I build an installer in LabView, the name of the program in "Programs and Features" comes from the "Product Name" field of the installer properties.  What I would like to do is programmatically modify that name during the installer build to append the version of the exe that the installer is including.

 

For example, if I have an exe build that generates "My exe" version 1.0.0.42, I want the installer's product name to be "My exe_1.0.0.42" in the "Programs and features" list in the Windows control panel.

 

Is this possible in a generic way?

0 Kudos
Message 1 of 8
(3,741 Views)
Solution
Accepted by topic author xl600
0 Kudos
Message 2 of 8
(3,716 Views)

Gah!  I was just heading in that direction and you beat me to it Smiley Happy  I knew someone out there would have dealt with this before.

 

Thanks!

 

XL600

0 Kudos
Message 3 of 8
(3,713 Views)

How did you wire the project reference to the Get Build Specification Version VI?  That VI (In LV2016) needs a project path, not a reference.

0 Kudos
Message 4 of 8
(3,710 Views)

Haha, I have not dealt with this, but I wanted to figure out how to. That VI is polymorphic by the way. You can wire the reference in and it should change, or right click >> visible items >> polymorphic selector.

0 Kudos
Message 5 of 8
(3,707 Views)

Grrr... I wish it was more obvious when a VI was polymorphic.

 

Thanks again!

0 Kudos
Message 6 of 8
(3,704 Views)

Here's what I came up with... I wanted to change the installer product name, not the EXE target folder.

 

Untitled.png

Message 7 of 8
(3,682 Views)

A few more 'improvements':

 

  • Repeated builds no longer append version to version
  • Ties an enum directly to installer build spec name
  • Creates a zip file of the result for archiving

 

 

 

0 Kudos
Message 8 of 8
(3,643 Views)