- Import the Reactor Resources table into your database.
- Import the Reactor Startup script.
- Have the Startup script performed when your database opens.
- Put your registration code into the Startup script.
1. Import the Reactor Resources table.
In your database, select Import Records - File. The Source file is the (FileMaker Pro) Reactor Resources table from the Reactor Core file which you will have obtained when registering, or downloaded from the fusionplugins.com website. For target, pull down the dropdown list to New Table: Reactor Resources.
There are a number of records in the table, each of which contain, among other fields, an Info field, a Resource name field and a container field. The first record contains the Install Manager, which will install the Reactor plugin; the remaining records each contain a BlackBox. (If you have custom BlackBoxes of your own, just create a new record for each of them, add the BlackBox file into the container field, and fill out the other fields yourself.)
2. Import the Reactor Startup script.
In ScriptMaker, import a script called Reactor Startup from the Reactor Core file. If you are going to be using complex controls, it's a good idea to import the scripts starting "FR_" at the same time, as you will need them later.
3. Have the Startup script performed.
In your startup (File Options: When opening this file, Perform script....), either perform Reactor Startup directly, or perform it from within your own Startup script.
4. Insert your registration code
Edit the Reactor Startup script to insert your registration code (near the end where it says "Hardcode your license code here"). If you don't do this, it will still work, but runs in demo mode.
What happens if you open your database on a computer without the Reactor plugin installed?
When the Reactor Startup script runs, it detects that the Reactor plugin is not installed, and it fires up the Installer, displaying the dialog asking if you want to install Reactor. If you say Yes, it quits Filemaker and installs the Reactor plugin. When you re-open your database, the Reactor Startup script runs and the Black Boxes are installed in a window off screen.
The same thing happens if the startup script detects that the computer has an older version of the Plugin than the one in the Reactor Resources table.
Comments