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
- :
- Custom Action
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
‎Oct 29, 2009
09:28 AM
Custom Action
How do I invoke Custom Action 1 during install and Custom Action 2 during uninstall.
Custom Action 1 must only be called on install
Custom Action 2 must only be called on Uninstall
I have a Basic MSI project
Custom Action 1 must only be called on install
Custom Action 2 must only be called on Uninstall
I have a Basic MSI project
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 29, 2009
10:11 AM
Custom Action 1 must only be called on install --> set condition NOT Installed
Custom Action 2 must only be called on Uninstall --> set condition REMOVE = "ALL"
Custom Action 2 must only be called on Uninstall --> set condition REMOVE = "ALL"
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 29, 2009
10:32 AM
Naveed: Where would I set this up?
Installation Designer->Behavior and Logic ->Custom Actions and Sequence ->Install Exec Condition??
Installation Designer->Behavior and Logic ->Custom Actions and Sequence ->Install Exec Condition??
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 29, 2009
12:44 PM
Naveed:
Thanks for that. That worked. Another newbie question. When I go to run 'Uninstall' things work fine, except that the directories created during install still exist, I can delete them manually, and are not deleted during uninstall process. Something in the Custom Action or a different setting?
Thanks for that. That worked. Another newbie question. When I go to run 'Uninstall' things work fine, except that the directories created during install still exist, I can delete them manually, and are not deleted during uninstall process. Something in the Custom Action or a different setting?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 30, 2009
07:10 AM
Is anything left in these folders? If the application creates files when it runs then the installer will not remove these because it didn't install them and doesn't know to remove them and will leave behind the folder structure that they are in.
If you application does do this and you do want to remove those files, you can provide an entry in the removefile table. MSDN provides details on the entires to add to this table here: http://msdn.microsoft.com/en-us/library/aa371201(VS.85).aspx. Please note that the file column can contain wildcards such as *.log or even *.*
If you application does do this and you do want to remove those files, you can provide an entry in the removefile table. MSDN provides details on the entires to add to this table here: http://msdn.microsoft.com/en-us/library/aa371201(VS.85).aspx. Please note that the file column can contain wildcards such as *.log or even *.*
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)