compvizard
Posts: 1
Joined: Thu Aug 08, 2019 10:03 am

How to auto-install to D:\Program Files only if D:\ drive is available?

Hi all,

how do i customize the installer to automatically install the D:\Programe Files only if D:\ drive is available?

Thx!

cheers,
michael
Catalin
Posts: 6584
Joined: Wed Jun 13, 2018 7:49 am

Re: How to auto-install to D:\Program Files only if D:\ drive is available?

Hello Michael and welcome to Advanced Installer forums,

In order to achieve that, you can proceed as it follows:

1. First, you can create a search for the "D:\" drive. Based on this search, we will force the installation in "D:\Program Files" folder.

2. After creating the search, you can go to "Dialogs" page --> select "FolderDlg" from "First Time Install" section --> click on the "Next" button --> under "Published Events" tab click "New..." and create an event as it follows:

Event: Set installer property value
Property: APPDIR
Argument: D:\Program Files
Condition: <the_property_which_stores_the_result_of_your_search>


This way, if the search was correctly done, we will modify the value of the APPDIR property (this property represents the installation folder).

Hope this helps.

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

Return to “Building Installers”