Hi,
To detect if a prerequisite is already installed or not you need to search for a file or for a registry value or registry key (to check only for the existence of that file or registry value leave the "Minimum" and "Maximum" fields empty). Note that the file or registry value (used for search) is created when the prerequisite is installed.
If your application requires for a specific version you can compare the version resulted from that search with a version typed in the "Minimum" or "Maximum" fields.
The search criteria are:
1 File Version
The version is taken from a file.
2 Registry Subkeys Enumeration
The versions are enumerated as subkeys of a given registry key.
3 Registry Value
The version is taken from a registry value.
If it's something that you don't understand please let me know.
One more thing i would like to ask, i am adding a prerquisite of JRE 1.5 and if in the host system it finds 2 versions above 1.5 say 1.5.6 or 1.5.9, i want to know which would it select for exequting the application.
To indicate what version of JRE to be used by your application go to "Java Products" page and set JRE Version, minimum and maximum fields.
The other thing i want to know is if it finds a jre 1.5 on the system, then would it always use 1.5 for application or chances are that it use other versions also like for Eg. if a system has 1.5 and 1.4 version, the AI installer detects 1.5 jre then will the custom launcher of AI will luanch 1.5 or 1.4.
Also you ca specify a list of preferred versions of JRE to be used by your application, see [Preferred...] button. For more details please see:
http://www.advancedinstaller.com/user-g ... tings.html
Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
FOLLOW US
Get the latest news in Application Packaging