This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How to set a Property from the return value of a Console Application?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 23, 2008
09:43 AM
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?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 23, 2008
10:39 AM
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...
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)