If you are currently using ZippScript plug-in (a script trigger) in your FileMaker Application and if that plug-in is not installed in the client’s machine where the FileMaker solution has been installed then you don’t have to physically go over to his/her machine and install it there . The code below will install it on any system when the application is executed. To make sure that the it works you need to close the Filemaker Application and Filemaker and reopen it. After this you can check if this plug-in is there with the current system.
Step 1: Create a table as “Plugin Resources” create a container field as “ZippScript_Plugin_Installer”.
Step 2: In that “ZippScript_Plugin_Installer” field put “zippScript.fmx” file
Step 3: Write below codes while opening your application.
# If ZIPP-SCRIPT plug-in is not installed then execute the below steps, for installing this to current system.
# For FM Client
If [not IsValid( zippScript_Version )]
If [IsEmpty ( Get ( HostIPAddress ) ) ]
Set Varible [$FileMakerStoragePath; "filewin:" & Get ( FileMakerPath ) & "Extensions/zippScript.fmx"]
# For FM Server
Set Varible [$FileMakerStoragePath; "filewin:" & Get ( FileMakerPath ) & "Database Server/Extensions/zippScript.fmx" ]
Go to Layout["Plugin Resources"]
Export Field Contents [Plugin Resources::ZippScript_Plugin_Installer; "$FileMakerStoragePath"]
Show Custom Dialog ["ZippScript plug-in was not there in current system.Now it has been installed. Please close the FileMaker and open it again."]
Note: Download the “zippScript.fmx” file from ZippScript site if you are not using it for storing it in a container field.