XiaoFaye
Posts: 11
Joined: Mon Jun 16, 2014 9:22 pm

Questions on Feature-based Prerequisites

Hi

In my installer, I have added some Feature-based prerequisites, there are 2 questions regarding this:

1. For the "Install Conditions", how can I do the installation based on a file or a folder is exist or not?

2. In the installer, after click the "Install" button, I can see the progress bar is increasing and prerequisites are being installed, however there is no text status showing what the installer is doing. I added a text control in the ProgressDlg, but I don't know how to show the summary of prerequisites that being installed as well as the custom actions that being executed at this point.

Best regards,
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Questions on Feature-based Prerequisites

Hello,
1. For the "Install Conditions", how can I do the installation based on a file or a folder is exist or not?
In order to search for a file you can use the predefined "File version" prerequisite search. Unfortunately, we don't have any predefined prerequisite search which will look for a folder. In order to search for a folder you can either use the "Search done by a custom executable" search and create your own EXE which will look for a folder and return a proper return code or (if your prerequisite is a feature-based one):
- go to "Search" page and add a folder search (e.g. MY_SEARCH)
- go to "Organization" page, select the feature of your feature-based prerequisite and click on the "Add Install-time Conditions" hyperlink from the "Feature Properties" right pane
- in the "Installed if:" field add the following condition: MY_SEARCH
2. In the installer, after click the "Install" button, I can see the progress bar is increasing and prerequisites are being installed, however there is no text status showing what the installer is doing. I added a text control in the ProgressDlg, but I don't know how to show the summary of prerequisites that being installed as well as the custom actions that being executed at this point.
During prerequisite installation the "ProgressDlg" will display the "Installing prerequisite software" action text during the install prerequisites action. However, if you want to be displayed all installation actions of your prerequisite setups, then we don't have support for this.

In order to display a more user friendly installation progress you can use the approach exposed in our "Display user friendly installation log" tutorial.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
XiaoFaye
Posts: 11
Joined: Mon Jun 16, 2014 9:22 pm

Re: Questions on Feature-based Prerequisites

Both working good for me, thanks! :D

Best regards,
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Questions on Feature-based Prerequisites

You're welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”