Hi,
If on initialization there are GeomediaObjects keys in registry, then on custom dialog we must message to user, that there are GeomediaObjects installed on his machine.May be i have to use message dialog instead of custom dialog?
This can be done by using a search and custom action.
Here are the steps:
- in this example the "GeoMedia", "GeoMediaObject" and "GeoMediaProfessional" registry values will look like this:
Code: Select all
GeoMedia = geomedia
GeoMediaObject = geomediaobject
GeoMediaProfessional = geomediaprofessional
- in the "Search" page you create three searches with the location set to "Registry"
- these searches will be named GEOMEDIA, GEOMEDIA_OBJECT and GEOMEDIA_PROFESSIONAL
- you set these searches to retrieve the raw values of the "GeoMedia", "GeoMediaObject" and "GeoMediaProfessional" registry values
- you can read more about the "Search" page here:
http://advancedinstaller.com/user-guide/search.html
- in the "Custom Actions" page you create a new "Script Inline" custom action scheduled under the "UI Custom Actions" sequence
- you set the "Script Text" field of the custom action to:
Code: Select all
MsgBox "GeoMedia products are already installed on your computer!"
- you can read more about custom actions here:
http://advancedinstaller.com/user-guide ... -page.html
- in the "Dialogs" page in your custom dialog you select the "Next" button
- in the "Published Events" tab you create a new "DoAction" control event that looks like this:
Code: Select all
DoAction ScriptInline AI_INSTALL AND (GEOMEDIA="geomedia" OR GEOMEDIA_OBJECT="geomediaobject" OR GEOMEDIA_PROFESSIONAL="geomediaprofessional")
This condition will make the custom action to run only when at least one of the three registry values has been found.
You can read more about control events here:
http://advancedinstaller.com/user-guide ... ditor.html
Let me know if you encounter any problems.
Regards,
Cosmin