this one is going to get a bit tricky. Assume you want to deliver files based on user's decision.
So I add a new feature via Organizations and add a condition to it.
Next I add a checkbox to a dialog, so that the user can decide if the feature shall be installed or not.
So then I build to different product versions (1.0.0 and 2.0.0) with differnt product code.
1. I install version 1.0.0 without checking the feature checkbox.
Result: The product is installed as expected without delivering the feature. 2. I install version 2.0.0 (the uninstallation stage of 1.0.0 runs between dialog stage and installation stage). This time i check the feature checkbox.
Result: The product is installed, but the desired feature file is still missing.
Regarding the log I can see that the property INSTALL_TEST is set to "CheckBox" but the InstallValidate Action shows this:
Code: Select all
TestFeature; Installed: Absent; Request: Null; Action: NullBUT: If I unsintall version 1.0.0 first and then run the installer for 2.0.0 the feature will be delivered.
Is this the desired behaviour? Why does InstallValidate not recognize the property change from the dialog stage?
You can try yourself with this Demo:
https://kairos.ocloud.de/index.php/s/yiqrCyBZEYKk6W9
Cheers,
Angelo
FOLLOW US
Get the latest news in Application Packaging