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
- :
- Setting Windows Installer Properties
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
‎Dec 23, 2007
06:06 PM
Setting Windows Installer Properties
I am having problems with setting Windows Installer Properties that I have created using the Property Manager. I created a property called PA_INSTALLDB and gave it an initial value of "NO". I had gotten some advice in this forum to use the msiSetProperty function to set the value of this property, which I have done. I have set it to "YES" when this feature has been selected for install. However, when I display a message box with the property, it is never set.
I am using an InstallScript MSI project if this makes any difference.
Any help would be appreciated.
Tim
I am using an InstallScript MSI project if this makes any difference.
Any help would be appreciated.
Tim
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 26, 2007
08:38 AM
Why create the property initially at all? If the feature is selected, you could just create and set it all at once, and then whatever you need to do based on it's value will still execute when it's "yes", and when it's not, it will properly fail either way.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 26, 2007
09:51 AM
I wonder if you need the property at all. It sounds like if the feature is being installed you want the database to be installed. If that's the case, you could just use a conditional expression ( &FEATURE=3 ) to drive the creation of the database.