Hello and welcome to Advanced Installer forums,
Thank you for your interest in Advanced Installer.
In order to achieve that you can have a search to find what folder is on the target machine and install the components in related folder.
In order to search for a folder you can go in the “Search” page where you can use the [New Search Wizard] toolbar button to create a new search using the wizard and following step-by-step directions. You can also
test your search using the [Test Search] toolbar button.
You can also take a look on
Folder Location Properties article which may be useful to you.
So you will have to do two search operations: one folder search operation for the “MySQL” folder and one for “PostgreSQL” folder to see what folder is on the target machine.
Also you can take a look on
Search Folder On All Drives thread which may be useful.
Now you can go in the “Files and Folders” page where you can add a
property-based folder using the [Folder] >> [Property-Based] toolbar button and select the name of the search used for “MySQL” folder. Place in this folder the related files.
Add a new property-based folder and select the name of the search used for “PostgreSQL” folder. Place in this folder the related files.
Now you can go in the
“Organization” page where you can condition the installation of a component. When you added a property-based folder in the “Files and Folders” page for each property-based folder that you have used a component has been automatically created. All the resources from a property-based folder are added together to a component.
Now you can select the component and in the “Condition” field you can use the search name to condition the installation of that component.
If the folder does not exist on the target machine(e.g. MySQL folder) then the property of the search result will be null and so the related component will not be installed.
I have also attached a .zip archive where you can find a sample project which implements this scenario.
Let me know if you need any help.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging