Plug-in update example
The following example compares the version of an installed plug-in to the version located in a container field in the FileMaker Pro file and updates the plug-in, if necessary.
Show Custom Dialog [Plugin Update::Plugin File & " could not be installed.
Ensure Allow Solutions to Install Files is selected in the
FileMaker Pro Plug-in preferences."
Else If [Get(LastError) = 1550]
Show Custom Dialog [Plugin Update::Plugin File & " was installed but could not be initialized."]
Else If [Get(LastError) = 1551]
Show Custom Dialog [Plugin Update::Plugin File & " could not be installed."]
Show Custom Dialog ["A general error " & Get(LastError) & " occured when installing " & Plugin Update::Plugin File]
If [Plugin Update::Installed Plugin Version <
Plugin Update::Required Plugin Version]
#Plug-in needs to be either installed or updated.
Perform script [“Install plug-in”]
Go to Record/Request/page [Next; Exit after last]
Show Custom Dialog ["Some required plug-ins are not enabled. Ensure Allow Solutions to Install Files is selected in the FileMaker Pro Plug-in preferences."