Hello and welcome to Advanced Installer forums,
In order to do that, you can use our support for "Search" and then use the property of the search, which is the search name, to create a "Property based" folder and add your files under it. After that, you can condition the install of the file components using the above search property.
These are the steps you have to follow :
1) Go to "Search" page in the left pane and click on the "New Search" button from the toolbar. Select "Search for a folder button" and give a property name (e.g. PROPERTYNAME_PROP) that you want. Enter the name of the folder you want to search for and then press "On all fixed drives" button. Press "Finish" button.
Please keep in mind that, if you know that the "TargetFolder" exists on either "C:\" or "D:\" drive, you can create two separate
searches to look in either "C:\" or "D:\" drive. In order to do this, repeat the steps from 1) and instead of selecting
"On all fixed drives", select "In a specific folder" and replace "[SystemFolder]" property with your path (e.g. C:\TargetFolder)
2) Now we have to create a "Property based" folder and add our files to it. Go to "Files and Folders" page in the left pane,
right click on "Application Folder" -> "New Folder" -> "Property Based". Select the property we defined at 1) and click "Ok".
Now add your files to the property based folder by using "Add files" button from the toolbar.
3) Go to "Organization" page from the left pane, select the component you wish to install and in the right pane type the following
in the "Condition" box :
if you have any further questions or doubts, please let us know.
Best regards,
Catalin