Prerequisite Install conditions - MySQL - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bill@mitre.org
Posts: 1
Joined: Wed Sep 12, 2007 6:36 pm

Prerequisite Install conditions - MySQL

Where is there more info (than online help) on this? AI can't detect when mysql is already there.

A previous developer tried using file version criteria, looking at libmySQL.dll, and I've tried the registry key HKEY_LOCAL_MACHINE\SOFTWARE\MySQL AB\MySQL Server 5.0\Version, but AI never sees existing installation and always wants to install.

For any given s/w, how would I know which file contains the version #?

Do I always have to have a verison number?

What if I just want to test for the presence of a file to indicate the prereq is there, can I do that?
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi Bill,

You have probably not configured the detection condition for MySQL correctly. There are several possible detection conditions you can use:

1.

Code: Select all

Criteria: "Registry Value"
Registry Value: HKLM\SOFTWARE\MySQL AB\MySQL Server 5.0\Version
Minimum: 5.0
Note that the key is specified with "HKLM" not "HKEY_LOCAL_MACHINE".

2.

Code: Select all

Criteria: "Product Version (identify by Upgrade Code)"
Upgrade Code: {2526D560-92EA-4EA8-A561-5FDBB9E42A3E}
Minimum: 5.0
A previous developer tried using file version criteria, looking at libmySQL.dll
It seems that this file does not contain a version resource.
For any given s/w, how would I know which file contains the version #?
Usually it is the main application EXE. There is no general rule, however.
Do I always have to have a verison number?
Not necessarily, you can test for instance if a registry key exists in order to detect a particular application. See the following page for more details:

http://www.advancedinstaller.com/user-g ... earch.html
What if I just want to test for the presence of a file to indicate the prereq is there, can I do that?
Using the "File Version" criteria and leaving the "Minimum" and "Maximum" fields empty will detect if the file exists.

Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”