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

How to set a Property from the return value of a Console Application?

I need to set a Property during run time. The value of the property is the value returned by an outside console application. How can I do this?
Labels (1)
0 Kudos
(1) Reply
RobertDickau
Flexera Alumni

I don't think there's anything built in to MSI. You could create an InstallScript custom action that uses LaunchAppAndWait or the like to launch the console application, and then uses LAAW_PARAMETERS.nLaunchResult to get the result; then use NumToStr or Sprintf to convert the number to a string; and finally use MsiSetProperty to set the value...
0 Kudos