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 add custom action to a feature ?
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
‎Jan 26, 2008
10:36 AM
How to add custom action to a feature ?
Hi,
I'm doing Basic MSI project, with 3 features(eg: Feature A, B & C). I would like to run a custom action whenever one of the feature is installed(eg Feature A).
Currently, I add the custom action to run After InstallFinalize and set condition as Not Installed (to avoid the action run when uninstallation). It works fine if i install Feature A at the 1st installation, but if i install Feature B & C first, then only go to modify to install Feature A, the custom action won't run.
So, is there anyway to tie the custom action to Feature A, instead of set in exec sequence?
If you have other better solution, please suggest.
Thanks & Regards,
HY
I'm doing Basic MSI project, with 3 features(eg: Feature A, B & C). I would like to run a custom action whenever one of the feature is installed(eg Feature A).
Currently, I add the custom action to run After InstallFinalize and set condition as Not Installed (to avoid the action run when uninstallation). It works fine if i install Feature A at the 1st installation, but if i install Feature B & C first, then only go to modify to install Feature A, the custom action won't run.
So, is there anyway to tie the custom action to Feature A, instead of set in exec sequence?
If you have other better solution, please suggest.
Thanks & Regards,
HY
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2008
08:49 PM
Try the condition stated here -http://community.installshield.com/showthread.php?t=137158
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2008
09:02 PM
Take a look at the help topic conditional expressions and note the & Feature Action State Evaluator.
Also, after InstallFinalize is probably not the proper place to put this CA. Inside the transaction before InstallFinaize with a execution context of Defferred with System ( no imperonation ) is probably more approriate. Also you may need to have an immeadiate CA to process your business logic and feed the commands to the deferred CA.
Check out my blog and go to the must read link. You'll find a really good article on InstallSite that talks about all of this.
Also, after InstallFinalize is probably not the proper place to put this CA. Inside the transaction before InstallFinaize with a execution context of Defferred with System ( no imperonation ) is probably more approriate. Also you may need to have an immeadiate CA to process your business logic and feed the commands to the deferred CA.
Check out my blog and go to the must read link. You'll find a really good article on InstallSite that talks about all of this.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 28, 2008
04:14 AM
Thank you so much. It works. 😄