Hi,
I have the same need and attempted the solution.
The problem is that it does not work with Enhanced User Interface. When I run the install kit with Enhanced UI and click on the Next button for which I modified the target in the table editor, the installer crashes. I get the following Warning in the windows Event Viewer :
Source : MsiInstaller
Description :
Failed to connect to server. Error: 0x800401F0.
The error code translates to
CoInitialize has not been called.
I also get the following Error :
Source : Application Error
Description :
Faulting application name: MySetup.exe, version: 1.0.0.0, time stamp: 0x53ea16e7
Faulting module name: MySetup.exe, version: 1.0.0.0, time stamp: 0x53ea16e7
Exception code: 0xc0000417
Fault offset: 0x000c5d81
Faulting process id: 0x1c58
Faulting application start time: 0x01cfbcbc95f79c46
Faulting application path: C:\Users\MyUser\AppData\Local\Temp\MySetup.exe
Faulting module path: C:\Users\MyUser\AppData\Local\Temp\MySetup.exe
Report Id: d7d2e0be-28af-11e4-8190-180373336ed8
Is there a way for this to work with Enhanced UI?
To explain my need, I have several dialogs that follows each other each depending on a feature or another being installed. I want the dialogs to follow correctly without ever needing to code all the conditions in each dialog (Example for dialogs A, B, C and D I would have to tell the Next button on A to display B if feature B is installed, C if feature C is installed, etc.) Conditions can change over time and dialogs can be added or removed so this is impratical I tried the "Show Only If..." Options on dialogs but they soon got messed up.
My solution is to use a C# Custom Action to compute the next dialog on pressing the Next button and populate a property that is then referenced in the ControlEvent Table. My custom action works, so if the ControlEvent table edition could work with Enhanced UI I would be good to go!
Thank you for your help.
FOLLOW US
Get the latest news in Application Packaging