Guide to Updating Plug-ins

| External functions 9
6. Write a script that converts version information to number format and places the result in additional
global fields in your Auto Update layout.
This conversion to number format is required for a comparison of the plug-in version information
collected from the client and server computers.
For script syntax, see the Get Version Numbers script in the AutoUpdatePlugin.fp7 sample file.
For information about the GetAsNumber function, see the FileMaker Pro onscreen Help.
7. Write a script to download the plug-in from the server computer, if the version on the client computer
doesn’t exist or is outdated.
For script syntax, see the Download Plug-In script in the AutoUpdatePlugin.fp7 sample file. For
information about the FMSAUC_UpdatePlugIn function, see
“FMSAUC_UpdatePlugIn” on page 10.
8. Write a “parent” script to:
1 make sure the Auto Update plug-in exists and is enabled on the client computer
1 run the individual version checking and downloading scripts you wrote earlier
For script syntax, see the Run Plug-in Scripts script in the AutoUpdatePlugin.fp7 sample file. For
information about the FMSAUC_Version function, see
“FMSAUC_Version” on this page.
External functions
Auto Update consists of the following external functions.
Note These functions are available in FileMaker Pro only if the Auto Update plug-in is installed on your
computer and enabled in the Plug-ins tab of Preferences.
FMSAUC_Version
Format FMSAUC_Version()
Parameters Constant integer; 0
Data type returned Text
Description This function returns the name and version string from the Auto Update plug-in
located in the FileMaker Pro Extensions folder on the client computer. If no
string is found, FileMaker Pro assumes the Auto Update plug-in is missing or
isn’t enabled on the client computer.
Example FMSAUC_Version(0)
This function Does this
FMSAUC_Version Returns the name and version of the Auto Update plug-in that exists in the Extensions
folder on the client computer. If no version is returned, FileMaker Pro assumes that the
plug-in is missing or isn’t enabled on the client computer.
FMSAUC_FindPlugIn Returns a string listing the plug-in versions located in the AutoUpdate folder or the
default database folder on the server computer. If no string is returned, FileMaker Pro
assumes that the plug-in doesn’t exist on the server computer.
FMSAUC_UpdatePlugIn Downloads a plug-in file from the AutoUpdate folder or the default database folder on
the server computer or returns an error code if the file can’t be downloaded.