Follow these steps when writing a custom MFS installer:

  1. Develop your MFS in the SYSPROG application. That is the only supported application for developing an MFS/BFS in. (This routine can be run in Application at owner's risk)

  2. Remove the MFS before (re)installing it.  Use the Set_MFS subroutine to remove and install MFSes.  Code 5 is used to remove an MFS.  Code 6 is used to remove all MFSes.

  3. Install the MFS.  Use the Set_MFS subroutine to install.  Code 1 adds the MFS to the end of the list.  Code 2 adds the MFS to be beginning of the list.  Code 3 adds the MFS to the beginning of the list, but after critical MFSes (such as PROTECT.MFS).  Code 4 replaces the current MFS list with your own MFS list, allowing you to install multiple MFSes at once.

  4. Update the database definition.  Use the Define Database subroutine (the programmatic equivalent of Database Save from the Database Manager).  This makes the new MFS association for the file persistent, lasting after logging off from OpenInsight.

These steps are illustrated in the MFS_Installer subroutine, which you can install in your SYSPROG application, making it available to all applications.

  • No labels