Installs structure applications from a ZIP archive.
F_ApiCallClient("ditafmx", "InstallApps|appname[|appname...]");
This API installs structure applications using the “stub” file method used by the default DITA-FMx applications. The applications to be installed must be provided in a ZIP archive and will be installed to the FMHOME\Structure\XML folder. The ZIP file is copied to the Structure\XML folder and extracted into that location. The ZIP archive must be set up with the necessary internal folder structure to be extracted in this way. After the archive is extracted, the stub file is added into the structure application definitions file as a text inset. If the structure application definitions file already contains an application definition of the name being installed, the existing definition will be deleted.
Structure applications installed with this API must first be registered in the AppInstall section of the ditafmx.ini file. Each application requires the following two entries.
Example ditafmx.ini file settings:
[AppInstall] DITA-MyApp-Topic-1.2-ZIP=DITA-MyApp\DITA-MyApp_1.2_apps.zip DITA-MyApp-Topic-1.2-STUB=DITA-MyApp_1.2\Topic\structapps-stub_topic_1.2.fm DITA-MyApp-Map-1.2-ZIP=DITA-MyApp\DITA-MyApp_1.2_apps.zip DITA-MyApp-Map-1.2-STUB=DITA-MyApp_1.2\Map\structapps-stub_map_1.2.fm DITA-MyApp-Book-1.2-ZIP=DITA-MyApp\DITA-MyApp_1.2_apps.zip DITA-MyApp-Book-1.2-STUB=DITA-MyApp_1.2\Book\structapps-stub_book_1.2.fm
In this example, all three applications are stored in the same ZIP archive. You could specify separate files if needed. This ZIP archive is copied to the FrameMaker\DITA-MyApp folder before the API is used to install the applications.