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
- :
- Re: Get Property value for multiple Custom Actions?
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
Apr 14, 2010
12:08 PM
Get Property value for multiple Custom Actions?
In a Basic MSI project, when using InstallScript custom actions involving properties (such as INSTALLDIR, SUPPORTDIR), you need to create a Set Property custom action first. And the property that is assigned in that custom action must be the same as the name of the InstallScript custom action that later uses that property by calling GetMsi on CustomActionData.
Okay, so if I have a separate rollback custom action to undo changes made by my InstallScript custom action, and let's say I need the value of INSTALLDIR for the rollback as well; would I have to create another Set Property custom action with the same name as the rollback action so it can get the value of INSTALLDIR?
It seems like this would indicate I would have to create a separate Get Property action for each of my custom actions, even if many of them are using the same property. Is there a better way to do this?
Okay, so if I have a separate rollback custom action to undo changes made by my InstallScript custom action, and let's say I need the value of INSTALLDIR for the rollback as well; would I have to create another Set Property custom action with the same name as the rollback action so it can get the value of INSTALLDIR?
It seems like this would indicate I would have to create a separate Get Property action for each of my custom actions, even if many of them are using the same property. Is there a better way to do this?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 15, 2010
08:00 AM
Unfortunately, no.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)