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

How can i conditionally install a directory ?

Tue Jul 14, 2020 2:01 am

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: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: How can i conditionally install a directory ?

Wed Jul 15, 2020 11:42 am

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.59KiB)Viewed 3445 times
organizaiton.png
organizaiton.png (53.47KiB)Viewed 3445 times

Hope this helps.

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

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

Re: How can i conditionally install a directory ?

Wed Jul 15, 2020 9:09 pm

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: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: How can i conditionally install a directory ?

Thu Jul 16, 2020 11:32 am

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: 43
Joined: Fri Jul 10, 2020 10:59 am

Re: How can i conditionally install a directory ?

Fri Jul 17, 2020 2:34 am

Hi,
I have tried that , but the "Go To Component" option is not enabled .

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

Re: How can i conditionally install a directory ?

Fri Jul 17, 2020 2:09 pm

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: 43
Joined: Fri Jul 10, 2020 10:59 am

Re: How can i conditionally install a directory ?

Wed Aug 12, 2020 11:06 pm

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

Thankyou

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

Re: How can i conditionally install a directory ?

Tue Aug 18, 2020 9:18 am

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”