Session Management Module Setup INF file

Dial-Up Networking uses the standard Windows Setup program to add the Session Management Module into the Dial-Up Networking registry layout. The Windows Setup program requires a setup INF file. The following highlights the required sections in the INF file.


[DestinationDirs]
SMM_SYS_CopyFiles   =11    

[Optional Components]
EXT_SMM

[EXT_SMM]
OptionDesc=%SMM_Desc%
Tip=%SMM_Tip%
CopyFiles=SMM_SYS_CopyFiles
AddReg=SMM_Reg
IconIndex= 21                   ;Dial-up networking mini-icon for dialogs

[SMM_SYS_CopyFiles]
extsmm.dll
smmsetup.dll

[SMM_Reg]
;
; Session Management Module registration
;
HKLM, SYSTEM\CurrentControlSet\Services\RemoteAccess\Authentication\SMM_Files\EXTSMM, Path,, "extsmm.dll"
HKLM, SYSTEM\CurrentControlSet\Services\RemoteAccess\Authentication\SMM_Files\EXTSMM, Desc,, %SMM_Desc%
HKLM, SYSTEM\CurrentControlSet\Services\RemoteAccess\Authentication\SMM_Files\EXTSMM, Usage,1,01,00,00,00
HKLM, SYSTEM\CurrentControlSet\Services\RemoteAccess\Authentication\SMM_Files\EXTHOOK, Options,1,17,00,00,00
HKLM, SYSTEM\CurrentControlSet\Services\RemoteAccess\Authentication\SMM_Files\EXTHOOK, Protocols,1,07,00,00,00
;
; RunOnce for SMMSetup utility
;
HKLM, Software\Microsoft\Windows\CurrentVersion\RunOnce,"%SMMSetup_Desc%",,"rundll32.exe smmsetup.dll,SMM_Setup /a MAC EXTHOOK"

;****************************************************************************
; User-visible strings
;****************************************************************************

[Strings]
SMM_Desc  = "External Session Management Module name"
SMM_Tip   = "Allows you to do additional session management over Dial-up Networking"
SMM_Desc      = "External Session Management Module"
SMMSetup_Desc = "External SMM Setup"

When a user wants to install an external SMM, this INF setup file, all the SMM modules and SMMSETUP.DLL should be on the provided diskettes. The steps for installing an SMM are

The Windows Setup program uses the information from this INF setup file as follows:

[DestinationDirs]

"SMM_SYS_CopyFiles =11"

This section tells setup to copy the external files to the Windows system directory.

[Optional Components]

This section lists the items that can be set up from this INF file. "EXT_SMM" is the only item.

[EXTHOOK]

This section contains the following values:


OptionDesc

The displayed string value for the item in the selection box.

Tip

The displayed string value for the description box when the item is selected.

CopyFiles

"SMM_SYS_CopyFiles" indicates the section that contains the list of file to copy.

AddReg

"SMM_Reg" indicates the set of registry keys and values to add during installation.

IconIndex

The integer value 21 is for a Dial-up networking mini-icon to be displayed in the selection box.


[SMM_SYS_CopyFiles]

This section contains the list of file to be copied to the Windows system directory.

[SMM_Reg]

The lines below the "Session Management Module registration" comment sets up the Dial-Up Networking registry layout for the Session Management Module except for the SMM order. The line below the "RunOnce for SMMSetup utility" comment tells the Windows Setup to execute the SMM setup utility during the installation.