To give a scenario:
- I have version 1.0 of my application, product code: {176AAAAA-F702-4C27-AF93-5B6BDDDDC34A}
- It has a feature called Web
- Customer installs 1.0, selects Web feature
- I release version 1.1. of my application
- Customer installs 1.1 as upgrade to existing 1.0 install
In the new version 1.1, I have a custom action that I only want run the first time a feature is ever installed OR if the feature is already installed and the customer is upgrading from 1.0
My condition:
((&Web = 3) AND NOT (!Web = 3)) OR (&Web = 5 AND OLDPRODUCTS = "{176AAAAA-F702-4C27-AF93-5B6BDDDDC34A}")
This works for me based on some simple test projects, but is this the preferred/recommended way to structure this condition?
FOLLOW US
Get the latest news in Application Packaging