Condition based on existing feature or file - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Condition based on existing feature or file

Hi,

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 ?

Thanks,

Phil
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: Condition based on existing feature or file

Hi Phil,

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.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Re: Condition based on existing feature or file

Hi Gigi,

Thanks for your reply.

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 ?

TIA,

Phil
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Condition based on existing feature or file

Hi Phil,

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"

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Re: Condition based on existing feature or file

Thanks !

It was exactly what I was looking for.

Regards,

Phil

Return to “Common Problems”