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
- :
- Deferred CA During Install Only
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Dec 31, 2008
07:32 PM
Deferred CA During Install Only
Project Type: Basic MSI
I've got a deferred custom action that needs to execute only during the install phase. But the action is executing during both install and uninstall. Due to the nature of this CA, if it is executed during the uninstall the uninstall fails miserably and the software cannot be uninstalled. What condition will allow me to distinguish between "install time" and "uninstall time". I have tried using NotInstalled but that ends up skipping the CA altogether. During the uninstall, the installer dies because the CA relies on an installed file that has presumably already been removed. Hence, I can no longer uninstall the application. How do I get around this?
I've got a deferred custom action that needs to execute only during the install phase. But the action is executing during both install and uninstall. Due to the nature of this CA, if it is executed during the uninstall the uninstall fails miserably and the software cannot be uninstalled. What condition will allow me to distinguish between "install time" and "uninstall time". I have tried using NotInstalled but that ends up skipping the CA altogether. During the uninstall, the installer dies because the CA relies on an installed file that has presumably already been removed. Hence, I can no longer uninstall the application. How do I get around this?
(1) Reply
Jan 02, 2009
12:03 AM
You said your condition was NotInstalled (without any spaces). Was that a typo or is that really what you used?
If that's really what you used, your condition will most likely always fail as it will only succeed if a property called NotInstalled has some value.
Not Installed will be true if the product is running for the first time. Installed will be true otherwise (if the installer is performing maintenance or uninstallation). REMOVE="ALL" will be true if the product is being uninstalled.
If that's really what you used, your condition will most likely always fail as it will only succeed if a property called NotInstalled has some value.
Not Installed will be true if the product is running for the first time. Installed will be true otherwise (if the installer is performing maintenance or uninstallation). REMOVE="ALL" will be true if the product is being uninstalled.