; This is the Setup information file to install optional components
; Copyright (c) 1996 Microsoft Corporation


[version]
signature="$CHICAGO$"
ClassGUID={00000000-0000-0000-0000-000000000000}
LayoutFile=layout.inf


[DestinationDirs]
ChatCopyFilesSys		= 11	;LDID_SYSTEM
ChatCopyFilesHelp		= 11	;LDID_SYSTEM
DialerCopyFilesProg		= 24,%Dialer_DIR%
DialerCopyFilesHelp		= 18	;LDID_HELP
HypertrmCopyFilesProg		= 24,%Hypertrm_DIR%
HypertrmCopyFilesHelp		= 18	;LDID_HELP


[BaseWinOptions]
BaseSection


[Optional Components]
CommApps	;Top level option
Chat
Dialer
Hypertrm


[BaseSection]
AddReg			= BaseAddReg


[CommApps]
OptionDesc		= %CommApps_DESC%
Tip			= %CommApps_TIP%
IconIndex		= 7 ;Telephone mini-icon for dialogs


[Chat]
OptionDesc		= %Chat_DESC%
Tip			= %Chat_TIP%
IconIndex		= 16 ;Net Client mini-icon for dialogs
Parent			= CommApps
InstallType		= 14 ;Typical, Portable, Custom
CopyFiles		= ChatCopyFilesSys, ChatCopyFilesHelp
AddReg			= ChatAddReg
UpdateInis		= ChatInis
Uninstall		= ChatUninstall
Upgrade			= ChatUpgrade
Detect			= %11%\winchat.exe


[ChatUninstall]
DelFiles		= ChatCopyFilesSys, ChatCopyFilesHelp
AddReg			= ChatUninstallAddReg
UpdateInis		= ChatUninstallInis


[ChatUpgrade]
CopyFiles		= ChatCopyFilesSys, ChatCopyFilesHelp
AddReg			= ChatAddReg


[ChatInis]
setup.ini, progman.groups,, "GroupAccess=%Access_GROUP%"
setup.ini, GroupAccess,, """%Chat_DESC%"",""""""%11%\winchat.exe"""""",,,,""%11%"""


[ChatUninstallInis]
setup.ini, progman.groups,, "GroupAccess=%Access_GROUP%"
setup.ini, GroupAccess,, """%Chat_DESC%"""


[Dialer]
OptionDesc		= %Dialer_DESC%
Tip			= %Dialer_TIP%
IconIndex		= 47 ;Phone mini-icon for dialogs
Parent			= CommApps
InstallType		= 14 ;Typical, Portable, Custom
CopyFiles		= DialerCopyFilesProg, DialerCopyFilesHelp
AddReg			= DialerAddReg
UpdateInis		= DialerInis
Uninstall		= DialerUninstall
Upgrade			= DialerUpgrade
Detect			= %24%\%Dialer_DIR%\dialer.exe


[DialerUninstall]
DelFiles		= DialerCopyFilesProg, DialerCopyFilesHelp
AddReg			= DialerUninstallAddReg
DelReg			= DialerDelReg
UpdateInis		= DialerUninstallInis


[DialerUpgrade]
CopyFiles		= DialerCopyFilesProg, DialerCopyFilesHelp
AddReg			= DialerAddReg


[DialerInis]
setup.ini, progman.groups,, "GroupAccess=%Access_GROUP%"
setup.ini, GroupAccess,, """%Dialer_DESC%"",""""""%24%\%Dialer_DIR%\dialer.exe"""""",,,,""%24%\%Dialer_DIR%"""


[DialerUninstallInis]
setup.ini, progman.groups,, "GroupAccess=%Access_GROUP%"
setup.ini, GroupAccess,, """%Dialer_DESC%"""


[Hypertrm]
OptionDesc		= %Hypertrm_DESC%
Tip			= %Hypertrm_TIP%
IconIndex		= 35 ;Phone mini-icon for dialogs
Parent			= CommApps
InstallType		= 14 ;Typical, Portable, Custom
CopyFiles		= HypertrmCopyFilesProg, HypertrmCopyFilesHelp
AddReg			= HypertrmAddReg
UpdateInis		= HypertrmInis
Uninstall		= HypertrmUninstall
Upgrade			= HypertrmUpgrade
Detect			= %24%\%Hypertrm_DIR%\hypertrm.exe


[HypertrmUninstall]
DelFiles		= HypertrmCopyFilesProg, HypertrmCopyFilesHelp
AddReg			= HypertrmUninstallAddReg
DelReg			= HypertrmDelReg
UpdateInis		= HypertrmUninstallInis


[HypertrmUpgrade]
CopyFiles		= HypertrmCopyFilesProg, HypertrmCopyFilesHelp
AddReg			= HypertrmAddReg


[HypertrmInis]
setup.ini, progman.groups,, "GroupAccess=%Access_GROUP%"
setup.ini, GroupAccess,, """%Hypertrm_DESC%"",""""""%24%\%Hypertrm_DIR%\hypertrm.exe"""""",,,,""%24%\%Hypertrm_DIR%"""


[HypertrmUninstallInis]
setup.ini, progman.groups,, "GroupAccess=%Access_GROUP%"
setup.ini, GroupAccess,, """%Hypertrm_DESC%"""


[BaseAddReg]
;Create entries for Maint Mode Setup, set all initially to uninstalled:

HKLM,%KEY_OPTIONAL%,"CommApps",,"CommApps"
HKLM,%KEY_OPTIONAL%\CommApps,INF,,"communic.inf"
HKLM,%KEY_OPTIONAL%\CommApps,Section,,"CommApps"
HKLM,%KEY_OPTIONAL%\CommApps,Installed,,"0"

HKLM,%KEY_OPTIONAL%,"Chat",,"Chat"
HKLM,%KEY_OPTIONAL%\Chat,INF,,"communic.inf"
HKLM,%KEY_OPTIONAL%\Chat,Section,,"Chat"
HKLM,%KEY_OPTIONAL%\Chat,Installed,,"0"

HKLM,%KEY_OPTIONAL%,"Dialer",,"Dialer"
HKLM,%KEY_OPTIONAL%\Dialer,INF,,"communic.inf"
HKLM,%KEY_OPTIONAL%\Dialer,Section,,"Dialer"
HKLM,%KEY_OPTIONAL%\Dialer,Installed,,"0"

HKLM,%KEY_OPTIONAL%,"Hypertrm",,"Hypertrm"
HKLM,%KEY_OPTIONAL%\Hypertrm,INF,,"communic.inf"
HKLM,%KEY_OPTIONAL%\Hypertrm,Section,,"Hypertrm"
HKLM,%KEY_OPTIONAL%\Hypertrm,Installed,,"0"


[ChatCopyFilesSys]
winchat.exe


[ChatCopyFilesHelp]
winchat.cnt
winchat.hlp


[ChatAddReg]
HKLM,%KEY_OPTIONAL%\Chat,Installed,,"1"


[ChatUninstallAddReg]
HKLM,%KEY_OPTIONAL%\Chat,Installed,,"0"


[DialerCopyFilesProg]
dialer.exe


[DialerCopyFilesHelp]
dialer.cnt
dialer.hlp


[DialerAddReg]
HKLM,%KEY_OPTIONAL%\Dialer,Installed,,"1"
HKLM,"%KEY_APP_PATH%\dialer.exe",,,"%24%\%Dialer_DIR%\dialer.exe"


[DialerDelReg]
HKLM,"%KEY_APP_PATH%\dialer.exe"


[DialerUninstallAddReg]
HKLM,%KEY_OPTIONAL%\Dialer,Installed,,"0"


[HypertrmCopyFilesProg]
hypertrm.exe
hypertrm.dll


[HypertrmCopyFilesHelp]
hypertrm.cnt
hypertrm.hlp


[HypertrmAddReg]
HKLM,%KEY_OPTIONAL%\Hypertrm,Installed,,"1"
HKLM,"%KEY_APP_PATH%\hypertrm.exe",,,"%24%\%Dialer_DIR%\hypertrm.exe"


[HypertrmDelReg]
HKLM,"%KEY_APP_PATH%\hypertrm.exe"


[HypertrmUninstallAddReg]
HKLM,%KEY_OPTIONAL%\Hypertrm,Installed,,"0"

[Strings]
KEY_OPTIONAL		= "SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents"
KEY_APP_PATH		= "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths"
Access_GROUP		= "Accessories"

CommApps_DESC		= "Communications"
CommApps_TIP		= "Includes accessories to help you connect to other computers and online services."

Chat_DESC		= "Chat"
Chat_TIP		= "Allows you to converse with other Windows NT users over a network."

Dialer_DESC		= "Phone Dialer"
Dialer_TIP		= "Enables you to use your computer to dial a phone through a modem."
Dialer_DIR		= "Program Files\Windows NT"

Hypertrm_DESC		= "HyperTerminal"
Hypertrm_TIP		= "Enables you to connect to other computers and online services (requires a modem)."
Hypertrm_DIR		= "Program Files\Windows NT"

