Mel
Posts: 45
Joined: Fri Jul 10, 2020 10:59 am

How can i conditionally install a directory ?

I have under "Files and Folders"

Application Folder

Client Directory

Service Directory
These are 2 directories for the application that get installed on the local machine.
I have created 2 check boxes and set the property.

Is there a way I can conditionally install lets say Service Directory depending upon user selection of the checkbox ?

thanks
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: How can i conditionally install a directory ?

Hello and welcome to our forums,

For each folder you create in the "Files and Folders" page, a new component is created in the "Organization" page (with the same name as the folder).

In order to condition the installation of a folder, simply condition the installation of its' component in the "Organization" page.
folder.png
folder.png (14.59 KiB) Viewed 3509 times
organizaiton.png
organizaiton.png (53.47 KiB) Viewed 3509 times

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mel
Posts: 45
Joined: Fri Jul 10, 2020 10:59 am

Re: How can i conditionally install a directory ?

The problem is if I create a directory, there is no corresponding component in the Organization. It has something like
Main Feature
x64
x32
so what i am trying to do is create a new component and move drag the associated files in there and then put the condition on that .
But it would be easier if the component was created when the folder was.
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: How can i conditionally install a directory ?

Hello,

When creating a new folder, a component should also be created for it.

Could you please try to right click on your folder --> "Go to component"? This should automatically select the component for your folder in "Organization" page.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mel
Posts: 45
Joined: Fri Jul 10, 2020 10:59 am

Re: How can i conditionally install a directory ?

Hi,
I have tried that , but the "Go To Component" option is not enabled .
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: How can i conditionally install a directory ?

Hello,

This is really strange.

Could you please let me know what version of Advanced Installer you are using? I have tested this using the latest version (17.2) and everything worked as expected.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mel
Posts: 45
Joined: Fri Jul 10, 2020 10:59 am

Re: How can i conditionally install a directory ?

Alll sorted now.. I missed a step you outlined.

Thankyou
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: How can i conditionally install a directory ?

You are always welcome!

I am glad everything works as expected now.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”