cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jchristman
Level 8

Simple version variable

How do i use the version number from a basic msi project in a dialog and can i call it and use it in a sql script
Labels (1)
0 Kudos
(4) Replies
klacounte
Level 6

I don't fully understand your question, but you can use the version number in a SQL script by doing a text replacement. See the Text Replacement tab when your script is selected in the IDE. It's best to have some known token for the "Find What" and use the property in brackets for the "Replace With" value. e.g. [ProductVersion]
0 Kudos
jchristman
Level 8

Thank you you did answer my question for the scripting and sql portion. I was also wondering about the product version variable that i could use on a custom dialog so it displays I use %P for the Product Name.

so the custom dialog window says something like

Installing %P(productname) %[?] (VersionNumber)
0 Kudos
klacounte
Level 6

Take a look at the InstallWelcome dialog in the Dialogs view. You'll see several places where the [ProductName] property is used. At runtime this gets replaced with the ProductName from the Property table. You can do this for any property including the [ProductVersion] property.

Does that answer your question?
0 Kudos
jchristman
Level 8

Thank you for your help, that worked. 🙂
0 Kudos