Is it possible to create a published event for the "Next" button of a dialog and the condition of the event is checking if a feature or a file is in the build or not ?
I'm afraid this is not possible. Note that from each build a MSI package is generated, so choosing if a feature is part of a build is done at build time (and this is controlled from "Organization" page).
Referring a feature as a condition in a build (MSI) that does not contain this feature will lead to ORCA validation errors. Same with a file.
Here is my case : I have different builds. In most of them are some files for Application folder, System folder, merges modules and files for specific paths BUT in one build I have only the merge modules and the files for System folder (No Application folder files or files for specific paths) so I don't need to ask the user to choose the paths or features. Which condition can I use to step over the dialogs the user doesn't need to see or input ?
Advanced Installer doesn't support per-build dialogs. However, you can control which dialogs are shown for a build by using the "AI_BUILD_NAME" property.
For example, if we have three dialogs:
WelcomeDlg
FolderDlg
VerifyReadyDlg
and we want to hide the "FolderDlg" dialog for the build "My_build", we need to modify the "NewDialog" control events on "WelcomeDlg" and "VerifyReadyDlg":
- select the "Next" button on "WelcomeDlg" and set AI_BUILD_NAME<>"My_build" as the condition for the existing "NewDialog" control event
- create a new "NewDialog" control event which points to "VerifyReadyDlg" and set its condition to AI_BUILD_NAME="My_build"
- select the "Back" button on "VerifyReadyDlg" and set AI_BUILD_NAME<>"My_build" as the condition for the existing "NewDialog" control event
- create a new "NewDialog" control event which points to "WelcomeDlg" and set its condition to AI_BUILD_NAME="My_build"
FOLLOW US
Get the latest news in Application Packaging