Updating the SPI.INI File

The resource DLL that was built by the makefile must now be used with the master control file, the file list control file, and the SpiInstall structure to update the SPI.INI profile. (See Master Control File and File List Control File for information about the master control file and the file list control file.) Following are examples of the files needed to update the SPI.INI file:

These files must be placed on a diskette with the TESTRES.DLL file that was created.

The following example shows how to write an INI change control file named TEST.SCR to install the DLL file (TESTRES.DLL).

SpiInstall =    (
    SpiDllName = "$(DEST)TESTRES.DLL"
    )

The following example shows how to specify the TEST.SCR INI change control file in the CONTROL.SCR file.

package   ="SPI.INI Update"
codepage  =437
filelist  ="TEST.MMI"
groupcount=2
munitcount=1
medianame ="SPI.INI Update Disk 1"
sourcedir = "\\"                  = 0
destindir = "\\MMOS2\\DLL\\"      = 2
destindir = "\\MMOS2\\INSTALL\\"  = 4

ssgroup   =0
ssname    ="Base"
ssversion ="1.0.0"
sssize    =10

ssgroup   =1
ssname    ="SPI.INI Update"
ssversion ="1.0.0"
sssize    =10
ssinich   ="TEST.SCR"

The following is an example of how to specify the TEST.SCR INI change control file in the FILELIST.TLK file.

/* Total number of entries is 3                     */

     3

/* Disk# Group# Dest#    Path             FileName  */

    0      1     2       0               "TESTRES.DLL"
    0      1     4       0               "TEST.SCR"
    0      0     4       0               "TEST.SCR"


[Back: Building the DLL Containing the Resource]
[Next: Installing Stream Protocol]