home *** CD-ROM | disk | FTP | other *** search
/ Soft 19 / Soft19.iso / win95-rc / precopy2.cab / wordpad.inf < prev   
INI File  |  1996-04-22  |  11KB  |  227 lines

  1. ; WORDPAD.INF
  2. ;
  3. ; This is the Setup information file to install WordPad
  4. ; as an Optional Component.
  5. ;
  6. ; Copyright (c) 1993-1995 Microsoft Corporation
  7. ;
  8.  
  9. [version]
  10. LayoutFile=layout.inf
  11. signature="$CHICAGO$"
  12. SetupClass=BASE
  13.  
  14. ;Destination Directories for CopyFiles Sections
  15. [DestinationDirs]
  16. WordPadCopyFiles       = 24,%OEM_PROGRAMF%\%OEM_ACCESSOR%    ; LDID_APPS\Program Files\Accessories
  17. WordPadCopyFiles_HELP  = 18                      ; LDID_HELP
  18. mfcdllsx.files         = 11                      ; LDID_SYS
  19. WordPad.Win.Del        = 25                      ; LDID_SHARED
  20. Register_WordPad.Copy  = 17                      ; LDID_INF
  21. Write.copy             = 25                      ; LDID_SHARED
  22.  
  23. [BaseWinOptions]
  24. Register_WordPad
  25.  
  26. [Register_WordPad]
  27. AddReg=Register_WordPad.AddReg
  28. CopyFiles=Register_WordPad.Copy
  29.  
  30. [Register_WordPad.Copy]
  31. wordpad.inf
  32.  
  33. [Register_WordPad.AddReg]
  34. ;Registers WordPad so it shows up in Maint Mode Setup, set initial status to uninstalled:
  35. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents,"WordPad",,"wordpad"
  36. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents\wordpad,INF,,"wordpad.inf"
  37. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents\wordpad,Section,,"mswordpad"
  38. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents\wordpad,Installed,,"0"
  39.  
  40.  
  41. [Optional Components]
  42. MSWordPad
  43.  
  44. [MSWordPad]
  45. CopyFiles      = WordPadCopyFiles, WordPadCopyFiles_HELP, mfcdllsx.files, Write.copy
  46. UpdateInis     = WordPadInis
  47. AddReg         = WordPadReg, WordPad.install.reg, mfcdllsx.register
  48. DelReg         = WordPadDelReg
  49. Delfiles       = WordPad.Win.Del
  50.  
  51. OptionDesc     = %MSWORDPADOPT_DESC%
  52. Tip            = %MSWORDPADOPT_TIP%
  53. Parent         = AccessTop
  54. InstallType    = 10 ;Typical, Custom.
  55. IconIndex          = 39  ;Windows Logo mini-icon for dialogs
  56. Uninstall      = MSWordPad_remove
  57.  
  58. [test]
  59. AddReg         = WordPadReg
  60.  
  61. [MSWordPad_remove]
  62. ; note that if you install any shared MFC DLL's, you should NOT delete them when
  63. ; uninstalling WordPad
  64. DelFiles       = WordPadCopyFiles, WordPadCopyFiles_HELP, Write.copy
  65. UpdateInis     = WordPadInis.remove
  66. AddReg         = WordPad.remove.reg
  67. DelReg         = WordPadReg
  68.  
  69. ;List of files to copy to the \program files\accessories directory goes here:
  70. ;(need to make sure the wpc files are hidden in the AddReg section below)
  71. [WordPadCopyFiles]
  72. mswd6_32.wpc
  73. wordpad.exe
  74. write32.wpc
  75.  
  76. [WordPadCopyFiles_HELP]
  77. WORDPAD.HLP
  78. WORDPAD.CNT
  79.  
  80. ;list of files to copy to the \windows\system directory goes here:
  81. [mfcdllsx.files]
  82. mfc30.dll
  83. mfcans32.dll,,,32       ;32 flag suppresses ver conflict dlg
  84. mfco30.dll
  85. mfcd30.dll
  86. mfcn30.dll        ; new one added with mfc 3.01 version
  87. mfcuia32.dll
  88.  
  89. [mfcdllsx.register]
  90. ;Register shared DLLs:
  91. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs,%11%\mfc30.dll,1,01,00,00,00
  92. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs,%11%\mfcans32.dll,1,01,00,00,00
  93. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs,%11%\mfco30.dll,1,01,00,00,00
  94. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs,%11%\mfcd30.dll,1,01,00,00,00
  95. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs,%11%\mfcn30.dll,1,01,00,00,00
  96. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs,%11%\mfcuia32.dll,1,01,00,00,00
  97.  
  98. [WordPad.Win.Del]
  99. writwin.wpc     ; 16 bit write converter
  100. msword6.wpc     ; 16 bit winword 6 converter
  101. mfcoleui.dll    ; 16 bit mfc file
  102. mswd6_32.wpc    ; review - no longer in Windows dir
  103. wordpad.exe     ; review - no longer in Windows dir
  104. write32.wpc     ; review - no longer in Windows dir
  105.  
  106. [Write.copy]
  107. ;copy stub program that launches wordpad.exe to the Windows Dir (for compat. reasons):
  108. write.exe
  109.  
  110. [WordPadInis]
  111. setup.ini, progman.groups,, "group4=%APPS_DESC%"                ;creates Accessories folder (if not already there
  112. setup.ini, group4,, """%WORDPAD_LINK%"", ""%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"""   ;creates link in Accessories folder
  113.  
  114. [WordPadInis.remove]
  115. setup.ini, progman.groups,, "group4=%APPS_DESC%"     ;creates Accessories folder (if not already there
  116. setup.ini, group4,, """%WORDPAD_LINK%"""             ;deletes link
  117.  
  118. [WordPad.install.reg]
  119. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents\wordpad,Installed,,"1"
  120.  
  121. [WordPad.remove.reg]
  122. ; sets status for Maint Mode Setup to 'not installed'
  123. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents\wordpad,Installed,,"0"
  124.  
  125. [WordPadReg]
  126. ; Next line is in shell.inx to avoid overwriting key when making null file entry
  127. ;HKCR,.doc,,2,Wordpad.Document.1
  128.  
  129. HKCR,Wordpad.Document.1,,,%WORDPAD_DOC%
  130. HKCR,Wordpad.Document.1\Insertable,,,""
  131. HKCR,Wordpad.Document.1\Protocol,,,
  132. HKCR,Wordpad.Document.1\Protocol\StdFileEditing,,,
  133. HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Server,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"
  134. HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Verb,,,
  135. HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Verb\0,,,"%EDIT%"
  136. HKCR,Wordpad.Document.1\DefaultIcon,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,1"
  137. HKCR,Wordpad.Document.1\shell\open\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE ""%%1"""
  138. HKCR,Wordpad.Document.1\shell\print\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /p ""%%1"""
  139. HKCR,Wordpad.Document.1\shell\printto\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /pt ""%%1"" ""%%2"" ""%%3"" ""%%4"" "
  140. HKCR,Wordpad.Document.1\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}
  141.  
  142. HKCR,rtffile,,,%RTF_DOC%
  143. HKCR,rtffile\DefaultIcon,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,1"
  144. HKCR,rtffile\shell\open\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE ""%%1"""
  145. HKCR,rtffile\shell\print\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /p ""%%1"""
  146. HKCR,rtffile\shell\printto\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /pt ""%%1"" ""%%2"" ""%%3"" ""%%4"" "
  147. HKCR,rtffile\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}
  148.  
  149. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\DefaultIcon,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,0"
  150.  
  151. ; update 3.x write stuff to use wordpad as server
  152. HKCR,.wri,,,wrifile
  153. HKCR,wrifile,,,%WRITE_DOC%
  154. HKCR,wrifile\DefaultIcon,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,2"
  155. HKCR,wrifile\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}
  156. HKCR,wrifile\shell\open\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE ""%%1"""
  157. HKCR,wrifile\shell\print\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /p ""%%1"""
  158. HKCR,wrifile\shell\printto\command,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE /pt ""%%1"" ""%%2"" ""%%3"" ""%%4"" "
  159.  
  160. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959},,,%WORDPAD_DOC%
  161. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\DefaultIcon,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE,1"
  162. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\LocalServer32,,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"
  163. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\ProgId,,,WordPad.Document.1
  164. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\MiscStatus,,,0
  165. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\AuxUserType\3,,,"%WORDPAD_LINK%"
  166. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\AuxUserType\2,,,"%WORDPAD_DOC%"
  167. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\Insertable,,,
  168. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\verb\1,,,"%OPEN%,0,2"
  169. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\verb\0,,,"%EDIT%,0,2"
  170. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\InprocHandler32,,,ole32.dll
  171. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\DataFormats\PriorityCacheFormats,"Rich Text Format",,""
  172.  
  173. ; create the long-name for "Program Files"
  174. ; Note that when you rename a long name, VFAT changes the short name from
  175. ; foobar~1 to foobar~2.  To avoid this, we introduce a work around in the form of
  176. ; an intermediate rename
  177. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFilesRoot,,,%24%
  178. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFilesRoot,%OLD_PROGRAMF%,,"%Old_Program_Files%" ; review - leave in for M8
  179. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFilesRoot,%PROGRAMF%,,!$!$!$!$.$!$
  180. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFilesRoot,!$!$!$!$.$!$,,"%Program_Files%,1"
  181. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFiles,,,"%24%\%PROGRAMF%"
  182. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFiles,%ACCESSOR%,,!$!$!$!$.$!$
  183. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\AppFiles,!$!$!$!$.$!$,,"%Accessories%,1"
  184.  
  185. ; set hidden flags on the .wpc files
  186. ; R=1; H=2; S=4; HS=6; SHR=7
  187. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\Accessories,,2,"%24%\%PROGRAMF%\%ACCESSOR%"
  188. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\Accessories,mswd6_32.wpc,,"mswd6_32.wpc,2"
  189. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles\Accessories,write32.wpc,,"write32.wpc,2"
  190.  
  191. ; set up the per-app path
  192. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WORDPAD.EXE",,,"%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"
  193.  
  194. [WordPadDelReg]
  195. HKCR,Write.Document,,,%WRITE_DOC%
  196. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\LocalServer
  197. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\InprocHandler
  198. HKCR,Wordpad.Document
  199.  
  200. ; User-visible strings
  201. [Strings]
  202. APPS_DESC       = "Accessories"
  203. WORDPAD_LINK    = "WordPad"
  204. WORDPAD_DOC     = "WordPad Document"
  205. WORD_DOC        = "Microsoft Word Document"
  206. RTF_DOC         = "Rich Text Document"
  207. WRITE_DOC       = "Write Document"
  208. MSWORDPADOPT_DESC = "WordPad"
  209. MSWORDPADOPT_TIP  = "Editor for creating short memos and documents"
  210. EDIT            = "&Edit"
  211. OPEN            = "&Open"
  212.  
  213.  
  214. ; Directory names - note that that short versions must match the truncated
  215. ; 8 char names for the long versions, or else there will be problems.
  216. ; also need to put the short versions in the [DestinationDirs] section above
  217. ; Used by wordpad, hypertrm, backup, paint, & MSN
  218. Old_Program_Files= "Old Program Files" ; review - leave for M8
  219. OLD_PROGRAMF     = "Programf"          ; review - leave for M8
  220. Program_Files    = "Program Files"
  221. PROGRAMF         = "Progra~1"          ; first 6 chars of Program_Files, + "~1"
  222. OEM_PROGRAMF     = "Progra~1"          ; first 6 chars of Program_Files, + "~1" - in OEM codepage (not Ansi)
  223. Accessories      = "Accessories"
  224. ACCESSOR         = "Access~1"          ; first 6 chars of Accessories, + "~1"
  225. OEM_ACCESSOR     = "Access~1"          ; first 6 chars of Accessories, + "~1"  - in OEM codepage (not Ansi)
  226.  
  227.