vished
Posts: 17
Joined: Fri Apr 01, 2016 9:31 am

Install Prerequistes in defined Folder

Dear all,

I would like to install the MySQL Database in my App Dir.
How can I do this?
It installed everytime in C:/Program/MySQL/MySQL 5.154/
How can I install the MySQL Database in one of my defined folder from "Files and Folders" ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Install Prerequistes in defined Folder

Hi,

In order to change the install location of a prerequisite you can go in the "Prerequisites" page of your project and set this in the "Install Command Lines" fields from the "Setup Files" tab of that prerequisite.

First of all, you need to know the property that is used to store the install location of that prerequisite (this property may be different depending on the vendor of that package, i.e. APPDIR for Advanced Installer packages).

Each folder from the "Files and Folders" page has a related property which you can see in the "Identifier" field from its "Properties" dialog. Then you can send that property through command line to set the install location of your prerequisite (i.e. INSTALLDIR="[YourFolder_Dir]").

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vished
Posts: 17
Joined: Fri Apr 01, 2016 9:31 am

Re: Install Prerequistes in defined Folder

Eusebiu wrote:Hi,

Each folder from the "Files and Folders" page has a related property which you can see in the "Identifier" field from its "Properties" dialog. Then you can send that property through command line to set the install location of your prerequisite (i.e. INSTALLDIR="[YourFolder_Dir]").
Can you explain this part in more detail (maybe screenshots) ?
Thank you very much
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Install Prerequistes in defined Folder

Hi,

You can see in the screenshots below how you can get the identifier related to a folder and use it to set the installation path of a prerequisite.

Just let me know if you need more details.

Best regards,
Eusebiu
Attachments
Properties Dialog.png
Properties Dialog.png (97.32 KiB) Viewed 6996 times
Prerequisite Command Line.png
Prerequisite Command Line.png (49.96 KiB) Viewed 6996 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vished
Posts: 17
Joined: Fri Apr 01, 2016 9:31 am

Re: Install Prerequistes in defined Folder

Hm for me I have only the option in FULL UI: qn/ INSTALLDIR =[my_dir] I tried it but it seems not to work.
The other two (Basic UI and Silent (no UI) are not possible for me to due that I have no Enterprise version from MySQL.
Is there any other option?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Install Prerequistes in defined Folder

Hi,

I tested the scenario and it worked as expected for me. It may not work in your case because you did not enclose the folder's property into double quotes (i.e. INSTALLDIR ="[my_dir]").

Indeed, the "Basic UI" and "Silent (no UI)" command line fields cannot be edited in an edition lower than "Enterprise" because the feature that installs the prerequisites when the main package is installed with Basic UI or Silent (no UI) is available only in an "Enterprise" or higher edition. So, the prerequisites will not be installed if the main package was created with a lower edition and it is installed with Basic UI or Silent (no UI).

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vished
Posts: 17
Joined: Fri Apr 01, 2016 9:31 am

Re: Install Prerequistes in defined Folder

Eusebiu wrote:Hi,

I tested the scenario and it worked as expected for me. It may not work in your case because you did not enclose the folder's property into double quotes (i.e. INSTALLDIR ="[my_dir]").

Indeed, the "Basic UI" and "Silent (no UI)" command line fields cannot be edited in an edition lower than "Enterprise" because the feature that installs the prerequisites when the main package is installed with Basic UI or Silent (no UI) is available only in an "Enterprise" or higher edition. So, the prerequisites will not be installed if the main package was created with a lower edition and it is installed with Basic UI or Silent (no UI).

Best regards,
Eusebiu
So I need at least the Enterprise version?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Install Prerequistes in defined Folder

No, the MySQL prerequisite will be installed even if you do not have the "Enterprise" edition of Advanced Installer, but only when the main package is installed with Full UI. If the main package is installed with Basic UI or Silent (no UI) the prerequisite will not be installed, this works only in an Enterprise edition.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”