; WORDPAD.INF
;
; This is the Setup information file to install WordPad
; as an Optional Component.
;
; Copyright (c) 1993-1997 Microsoft Corporation
;

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

[DestinationDirs]
WordPadCopyFiles        = 16422,%ACCESSOR% ; DIRID_PROGRAM_FILES\Program Files\Windows NT\Accessories
WordPadCopyFiles_HELP   = 18    ; LDID_HELP
WordPadFilesOld         = 16422,%ACCESSOR% ; DIRID_PROGRAM_FILES\Program Files\Windows NT\Accessories
WriteCopyFiles          = 11    ;LDID_SYSTEM
WriteFilesOld           = 11    ;LDID_SYSTEM

[Optional Components]
MSWordPad

[MSWordPad]
OptionDesc  = %MSWORDPADOPT_DESC%
Tip         = %MSWORDPADOPT_TIP%
IconIndex   = 39  ;Windows Logo mini-icon for dialogs
Parent      = AccessTop
CopyFiles   = WordPadCopyFiles, WordPadCopyFiles_HELP, WriteCopyFiles
DelFiles    = WordPadFilesOld, WriteFilesOld
AddReg      = WordPadReg
ProfileItems = WordpadInstallItems, WordpadUninstallItems
Uninstall   = MSWordPadUninstall
Modes       = 0,1,2,3
SizeApproximation      = 294912


[MSWordPadUninstall]
DelFiles       = WordPadCopyFiles, WordPadCopyFiles_HELP, WordPadFilesOld, WriteCopyFiles
UpdateInis     = WordPadInis.remove
ProfileItems   = WordpadUninstallItems,WordpadUninstallCommonItems
DelReg         = WordPadReg

[DefaultInstall]
AddReg      = WordPad.install.reg, WordPadReg

[SourceDisksFiles]
mswrd6.wpc = 1
mswrd8.wpc = 1
write.wpc = 1

[WordPadCopyFiles]
wordpad.exe
mswrd6.wpc
mswrd8.wpc
write.wpc

[WordPadCopyFiles_HELP]
wordpad.chm
wordpad.hlp

[WordPadFilesOld]
mfc40u.dll
msvcrt40.dll

[WriteCopyFiles]
;copy stub program that launches wordpad.exe (for compat. reasons):
write.exe

[WriteFilesOld]
write.cnt
write.hlp

[WordpadInstallItems]
Name       = %WORDPAD_LINK%
CmdLine    = 16422, %ACCESSOR%, wordpad.exe
SubDir     = %APPS_DESC%
InfoTip    = %Wordpad_Infotip%

[WordpadUninstallItems]
Name       = %WORDPAD_LINK%,0x00000003
Subdir     = %APPS_DESC%

[WordpadUninstallCommonItems]
Name       = %WORDPAD_LINK%,0x00000002
Subdir     = %APPS_DESC%

[WordPadReg]
; Next line is in shell.inx to avoid overwriting key when making null file entry
;HKCR,.doc,,2,Wordpad.Document.1

HKCR,Wordpad.Document.1,,,%WORDPAD_DOC%
HKCR,Wordpad.Document.1\Insertable,,,""
HKCR,Wordpad.Document.1\Protocol,,,
HKCR,Wordpad.Document.1\Protocol\StdFileEditing,,,
HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Server,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"""
HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Verb,,,
HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Verb\0,,,"%EDIT%"
HKCR,Wordpad.Document.1\DefaultIcon,,0x0020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",1"
HKCR,Wordpad.Document.1\shell\open\command,,0x00020002,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"" ""%%1"""
HKCR,Wordpad.Document.1\shell\print\command,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"" /p ""%%1"""
HKCR,Wordpad.Document.1\shell\printto\command,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"" /pt ""%%1"" ""%%2"" ""%%3"" ""%%4"""
HKCR,Wordpad.Document.1\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}

;
; Add "rtffile" section
;

HKCR,rtffile,,,%RTF_DOC%
HKCR,rtffile\DefaultIcon,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",1"
; Note: Must use fully qualified path or Goldmine 4.0 pukes
HKCR,rtffile\shell\open\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE ""%%1"""
HKCR,rtffile\shell\print\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /p ""%%1"""
HKCR,rtffile\shell\printto\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /pt ""%%1"" ""%%2"" ""%%3"" ""%%4"""
HKCR,rtffile\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}

HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\DefaultIcon,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",0"

;
; update 3.x write stuff to use wordpad as server
;

HKCR,.wri,,,wrifile
HKCR,wrifile,,,%WRITE_DOC%
HKCR,wrifile\DefaultIcon,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",2"
HKCR,wrifile\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}
; Note: Must use fully qualified path or Goldmine 4.0 pukes
HKCR,wrifile\shell\open\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE ""%%1"""
HKCR,wrifile\shell\print\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /p ""%%1"""
HKCR,wrifile\shell\printto\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /pt ""%%1"" ""%%2"" ""%%3"" ""%%4"""

HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959},,,%WORDPAD_DOC%
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\DefaultIcon,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",1"
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\LocalServer32,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"""
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\ProgId,,,WordPad.Document.1
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\MiscStatus,,,0
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\AuxUserType\3,,,"%WORDPAD_LINK%"
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\AuxUserType\2,,,"%WORDPAD_DOC%"
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\Insertable,,,
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\verb\1,,,"%OPEN%,0,2"
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\verb\0,,,"%EDIT%,0,2"
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\InprocHandler32,,,ole32.dll
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\DataFormats\PriorityCacheFormats,"Rich Text Format",,""

HKCR,Applications\wordpad.exe\DefaultIcon,,0x00020000,"%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE,1"
HKCR,Applications\wordpad.exe\shell\open\command,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"" ""%%1"""
HKCR,Applications\wordpad.exe\shell\print\command,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE""/p ""%%1"""
HKCR,Applications\wordpad.exe\shell\printto\command,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE""/pt ""%%1"" ""%%2"" ""%%3"" ""%%4"""
HKCR,Applications\wordpad.exe,FriendlyAppName,2,"%MSWORDPADOPT_DESC%"

; set up the per-app path
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WORDPAD.EXE",,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"""
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WRITE.EXE",,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"""

[Strings]
MSWORDPADOPT_DESC = "WordPad"
MSWORDPADOPT_TIP  = "Editor for creating short memos and documents"

APPS_DESC         = "Accessories"
WORDPAD_LINK      = "WordPad"
Wordpad_Infotip   = "Creates and edits text documents with complex formatting."
WORDPAD_DOC       = "WordPad Document"
RTF_DOC           = "Rich Text Document"
WRITE_DOC         = "Write Document"
EDIT              = "&Edit"
OPEN              = "&Open"

ACCESSOR          = "Windows NT\Accessories"
PROGRAMF	  = "Program Files"
