home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Soft 19
/
Soft19.iso
/
win95-rc
/
precopy2.cab
/
wordpad.inf
< prev
Wrap
INI File
|
1996-04-22
|
11KB
|
227 lines
; WORDPAD.INF
;
; This is the Setup information file to install WordPad
; as an Optional Component.
;
; Copyright (c) 1993-1995 Microsoft Corporation
;
[version]
LayoutFile=layout.inf
signature="$CHICAGO$"
SetupClass=BASE
;Destination Directories for CopyFiles Sections
[DestinationDirs]
WordPadCopyFiles = 24,%OEM_PROGRAMF%\%OEM_ACCESSOR% ; LDID_APPS\Program Files\Accessories
WordPadCopyFiles_HELP = 18 ; LDID_HELP
mfcdllsx.files = 11 ; LDID_SYS
WordPad.Win.Del = 25 ; LDID_SHARED
Register_WordPad.Copy = 17 ; LDID_INF
Write.copy = 25 ; LDID_SHARED
[BaseWinOptions]
Register_WordPad
[Register_WordPad]
AddReg=Register_WordPad.AddReg
CopyFiles=Register_WordPad.Copy
[Register_WordPad.Copy]
wordpad.inf
[Register_WordPad.AddReg]
;Registers WordPad so it shows up in Maint Mode Setup, set initial status to uninstalled:
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents,"WordPad",,"wordpad"
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents\wordpad,INF,,"wordpad.inf"
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents\wordpad,Section,,"mswordpad"
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents\wordpad,Installed,,"0"
[Optional Components]
MSWordPad
[MSWordPad]
CopyFiles = WordPadCopyFiles, WordPadCopyFiles_HELP, mfcdllsx.files, Write.copy
UpdateInis = WordPadInis
AddReg = WordPadReg, WordPad.install.reg, mfcdllsx.register
DelReg = WordPadDelReg
Delfiles = WordPad.Win.Del
OptionDesc = %MSWORDPADOPT_DESC%
Tip = %MSWORDPADOPT_TIP%
Parent = AccessTop
InstallType = 10 ;Typical, Custom.
IconIndex = 39 ;Windows Logo mini-icon for dialogs
Uninstall = MSWordPad_remove
[test]
AddReg = WordPadReg
[MSWordPad_remove]
; note that if you install any shared MFC DLL's, you should NOT delete them when
; uninstalling WordPad
DelFiles = WordPadCopyFiles, WordPadCopyFiles_HELP, Write.copy
UpdateInis = WordPadInis.remove
AddReg = WordPad.remove.reg
DelReg = WordPadReg
;List of files to copy to the \program files\accessories directory goes here:
;(need to make sure the wpc files are hidden in the AddReg section below)
[WordPadCopyFiles]
mswd6_32.wpc
wordpad.exe
write32.wpc
[WordPadCopyFiles_HELP]
WORDPAD.HLP
WORDPAD.CNT
;list of files to copy to the \windows\system directory goes here:
[mfcdllsx.files]
mfc30.dll
mfcans32.dll,,,32 ;32 flag suppresses ver conflict dlg
mfco30.dll
mfcd30.dll
mfcn30.dll ; new one added with mfc 3.01 version
mfcuia32.dll
[mfcdllsx.register]
;Register shared DLLs:
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs,%11%\mfc30.dll,1,01,00,00,00
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs,%11%\mfcans32.dll,1,01,00,00,00
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs,%11%\mfco30.dll,1,01,00,00,00
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs,%11%\mfcd30.dll,1,01,00,00,00
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs,%11%\mfcn30.dll,1,01,00,00,00
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs,%11%\mfcuia32.dll,1,01,00,00,00
[WordPad.Win.Del]
writwin.wpc ; 16 bit write converter
msword6.wpc ; 16 bit winword 6 converter
mfcoleui.dll ; 16 bit mfc file
mswd6_32.wpc ; review - no longer in Windows dir
wordpad.exe ; review - no longer in Windows dir
write32.wpc ; review - no longer in Windows dir
[Write.copy]
;copy stub program that launches wordpad.exe to the Windows Dir (for compat. reasons):
write.exe
[WordPadInis]
setup.ini, progman.groups,, "group4=%APPS_DESC%" ;creates Accessories folder (if not already there
setup.ini, group4,, """%WORDPAD_LINK%"", ""%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE""" ;creates link in Accessories folder
[WordPadInis.remove]
setup.ini, progman.groups,, "group4=%APPS_DESC%" ;creates Accessories folder (if not already there
setup.ini, group4,, """%WORDPAD_LINK%""" ;deletes link
[WordPad.install.reg]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents\wordpad,Installed,,"1"
[WordPad.remove.reg]
; sets status for Maint Mode Setup to 'not installed'
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents\wordpad,Installed,,"0"
[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,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"
HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Verb,,,
HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Verb\0,,,"%EDIT%"
HKCR,Wordpad.Document.1\DefaultIcon,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,1"
HKCR,Wordpad.Document.1\shell\open\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE ""%%1"""
HKCR,Wordpad.Document.1\shell\print\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /p ""%%1"""
HKCR,Wordpad.Document.1\shell\printto\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /pt ""%%1"" ""%%2"" ""%%3"" ""%%4"" "
HKCR,Wordpad.Document.1\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}
HKCR,rtffile,,,%RTF_DOC%
HKCR,rtffile\DefaultIcon,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,1"
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,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,0"
; update 3.x write stuff to use wordpad as server
HKCR,.wri,,,wrifile
HKCR,wrifile,,,%WRITE_DOC%
HKCR,wrifile\DefaultIcon,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,2"
HKCR,wrifile\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}
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,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,1"
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\LocalServer32,,,"%24%\%PROGRAMF%\%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",,""
; create the long-name for "Program Files"
; Note that when you rename a long name, VFAT changes the short name from
; foobar~1 to foobar~2. To avoid this, we introduce a work around in the form of
; an intermediate rename
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFilesRoot,,,%24%
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFilesRoot,%OLD_PROGRAMF%,,"%Old_Program_Files%" ; review - leave in for M8
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFilesRoot,%PROGRAMF%,,!$!$!$!$.$!$
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFilesRoot,!$!$!$!$.$!$,,"%Program_Files%,1"
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFiles,,,"%24%\%PROGRAMF%"
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFiles,%ACCESSOR%,,!$!$!$!$.$!$
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFiles,!$!$!$!$.$!$,,"%Accessories%,1"
; set hidden flags on the .wpc files
; R=1; H=2; S=4; HS=6; SHR=7
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\Accessories,,2,"%24%\%PROGRAMF%\%ACCESSOR%"
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\Accessories,mswd6_32.wpc,,"mswd6_32.wpc,2"
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\Accessories,write32.wpc,,"write32.wpc,2"
; set up the per-app path
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WORDPAD.EXE",,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"
[WordPadDelReg]
HKCR,Write.Document,,,%WRITE_DOC%
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\LocalServer
HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\InprocHandler
HKCR,Wordpad.Document
; User-visible strings
[Strings]
APPS_DESC = "Accessories"
WORDPAD_LINK = "WordPad"
WORDPAD_DOC = "WordPad Document"
WORD_DOC = "Microsoft Word Document"
RTF_DOC = "Rich Text Document"
WRITE_DOC = "Write Document"
MSWORDPADOPT_DESC = "WordPad"
MSWORDPADOPT_TIP = "Editor for creating short memos and documents"
EDIT = "&Edit"
OPEN = "&Open"
; Directory names - note that that short versions must match the truncated
; 8 char names for the long versions, or else there will be problems.
; also need to put the short versions in the [DestinationDirs] section above
; Used by wordpad, hypertrm, backup, paint, & MSN
Old_Program_Files= "Old Program Files" ; review - leave for M8
OLD_PROGRAMF = "Programf" ; review - leave for M8
Program_Files = "Program Files"
PROGRAMF = "Progra~1" ; first 6 chars of Program_Files, + "~1"
OEM_PROGRAMF = "Progra~1" ; first 6 chars of Program_Files, + "~1" - in OEM codepage (not Ansi)
Accessories = "Accessories"
ACCESSOR = "Access~1" ; first 6 chars of Accessories, + "~1"
OEM_ACCESSOR = "Access~1" ; first 6 chars of Accessories, + "~1" - in OEM codepage (not Ansi)