aco
Posts: 3
Joined: Wed Jan 18, 2006 7:28 pm

Conditions of installation

Hello,
I am currently reviewing your great product to buy it,
but I got a little problem :
I try to force the user to install MySQL and PHP before the installation.
So, for example for MySQL, I added in Project settings > Search > Target Computer > new file search > mysqld.exe
The name of this condition is "MYSQL"

Then, in Project settings > Launch Condition > Additional Launch Conditions, New, then in the Condition box : Expression : "MYSQL = 3"
Unfortunately, the installer do not seems to look for the mysqld.exe file, and install the application even if MySQL is not installed.

Any ideas ?
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

The value of the MYSQL property will contain the full path of the file "mysqld.exe", including the name (if the file is found and it satisfies the criteria you defined for the Search: Size, Version etc) or the empty string (if the File is not found or if it is found but the Search conditions are not met).

Therefore, your Launch Condition should be: MYSQL. If you need to check for the file version, use the "Min/Max Version" text fields from the right panel of the Search page.

It might be helpful to see the value of your property before the Launch Condition is executed. In order to do this add an "Script Inline" Custom Action on the "AppSearch" Standard Action from the InstallUISequence (not InstallExecuteSequence, because it would be too late). Set the Script Text to:

Code: Select all

MsgBox Session.Property("MYSQL")

Hope this helps.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
aco
Posts: 3
Joined: Wed Jan 18, 2006 7:28 pm

Hello,
thanks you for your quick help,
I tried what you said but if mysqld.exe is present in the hard drive, it display a blank message box, and refuse the installation because mysql is not found.
Here are the relevant screenshots :

http://img78.imageshack.us/img78/8689/s ... ine7yi.jpg

http://img78.imageshack.us/img78/2371/search0iw.jpg

And by the way the installer does not look to "search" in al the hard drive for mysqld, because the pre-installation is quite fast.

If you got a hint...
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

The problem is that the searches are not set up right.

You need to specify a folder location where the search should be started. I suggest to use the Search wizard to create the search you need. This method is less prone to mistakes. For this use the "New Search Wizard" button on the toolbar.

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”