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 keep some files with major upgrade
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 07, 2008
05:54 AM
How to keep some files with major upgrade
Hi all,
I wonder whether anyone has the same requirement with a MSI basic project and could help me out with this one.
Initially, my uninstall procedure removes all files and folders, including those created by the installed product (xml files for instance). The RemoveFile table is extensively populated to that end.
Now, the new requirement would be to retain all files created by the installed product when a major upgrade is applied.
So the trick would be to make the difference between uninstall triggered by a major upgrade and uninstall requested for the whole product.
Has anyone got a hint to how this could be done?
Any help deeply appreciated.
Regards
I wonder whether anyone has the same requirement with a MSI basic project and could help me out with this one.
Initially, my uninstall procedure removes all files and folders, including those created by the installed product (xml files for instance). The RemoveFile table is extensively populated to that end.
Now, the new requirement would be to retain all files created by the installed product when a major upgrade is applied.
So the trick would be to make the difference between uninstall triggered by a major upgrade and uninstall requested for the whole product.
Has anyone got a hint to how this could be done?
Any help deeply appreciated.
Regards
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 08, 2008
05:55 AM
See this snippet from the Windows Installer help:
You can condition custom actions that are sequenced after InstallValidate to handle major upgrades by using the UPGRADINGPRODUCTCODE property:
If you want a custom action to run during an uninstallation of the product, but not during the removal of the product by a major upgrade, use this condition.
REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE
If you want a custom action to run only during a major upgrade, use this condition.
UPGRADINGPRODUCTCODE
Hope this helps
Barbara
You can condition custom actions that are sequenced after InstallValidate to handle major upgrades by using the UPGRADINGPRODUCTCODE property:
If you want a custom action to run during an uninstallation of the product, but not during the removal of the product by a major upgrade, use this condition.
REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE
If you want a custom action to run only during a major upgrade, use this condition.
UPGRADINGPRODUCTCODE
Hope this helps
Barbara
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 08, 2008
07:33 AM
Hello Barbara
Thank you very much for your reply and useful information, which came precisely when I was looking for the right condition (and syntax) to use with my custom action.
Again, thank you a million.
Best regards:)
Thank you very much for your reply and useful information, which came precisely when I was looking for the right condition (and syntax) to use with my custom action.
Again, thank you a million.
Best regards:)