Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

176 lines
7.4 KiB

  1. ; WORDPAD.INF
  2. ;
  3. ; This is the Setup information file to install WordPad
  4. ; as an Optional Component.
  5. ;
  6. ; Copyright (c) Microsoft Corporation. All rights reserved.
  7. ;
  8. [version]
  9. signature="$CHICAGO$"
  10. ClassGUID={00000000-0000-0000-0000-000000000000}
  11. LayoutFile=layout.inf
  12. [DestinationDirs]
  13. WordPadCopyFiles = 16422,%ACCESSOR% ; DIRID_PROGRAM_FILES\Program Files\Windows NT\Accessories
  14. WordPadCopyFiles_HELP = 18 ; LDID_HELP
  15. WordPadFilesOld = 16422,%ACCESSOR% ; DIRID_PROGRAM_FILES\Program Files\Windows NT\Accessories
  16. WriteCopyFiles = 11 ;LDID_SYSTEM
  17. WriteFilesOld = 11 ;LDID_SYSTEM
  18. [Optional Components]
  19. MSWordPad
  20. [MSWordPad]
  21. OptionDesc = %MSWORDPADOPT_DESC%
  22. Tip = %MSWORDPADOPT_TIP%
  23. IconIndex = 39 ;Windows Logo mini-icon for dialogs
  24. Parent = AccessTop
  25. CopyFiles = WordPadCopyFiles, WordPadCopyFiles_HELP, WriteCopyFiles
  26. DelFiles = WordPadFilesOld, WriteFilesOld
  27. AddReg = WordPadReg
  28. ProfileItems = WordpadInstallItems, WordpadUninstallItems
  29. Uninstall = MSWordPadUninstall
  30. Modes = 0,1,2,3
  31. @i:SizeApproximation = 294912
  32. [MSWordPadUninstall]
  33. DelFiles = WordPadCopyFiles, WordPadCopyFiles_HELP, WordPadFilesOld, WriteCopyFiles
  34. UpdateInis = WordPadInis.remove
  35. ProfileItems = WordpadUninstallItems,WordpadUninstallCommonItems
  36. DelReg = WordPadReg
  37. [DefaultInstall]
  38. AddReg = WordPad.install.reg, WordPadReg
  39. [WordPadCopyFiles]
  40. wordpad.exe
  41. @6:mswrd664.wpc
  42. @6:mswrd864.wpc
  43. @6:write64.wpc
  44. [WordPadCopyFiles.Security]
  45. "D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)"
  46. [WordPadCopyFiles_HELP]
  47. wordpad.chm
  48. wordpad.hlp
  49. [WordPadCopyFiles_HELP.Security]
  50. "D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)"
  51. [WordPadFilesOld]
  52. mfc40u.dll
  53. msvcrt40.dll
  54. [WriteCopyFiles]
  55. ;copy stub program that launches wordpad.exe (for compat. reasons):
  56. write.exe
  57. [WriteCopyFiles.Security]
  58. "D:P(A;;GRGX;;;BU)(A;;GA;;;BA)(A;;GA;;;SY)(A;;GRGX;;;WD)"
  59. [WriteFilesOld]
  60. write.cnt
  61. write.hlp
  62. [WordpadInstallItems]
  63. Name = %WORDPAD_LINK%
  64. CmdLine = 16422, %ACCESSOR%, wordpad.exe
  65. SubDir = %APPS_DESC%
  66. InfoTip = "@%SystemRoot%\system32\shell32.dll,-22581"
  67. DisplayResource="%SystemRoot%\system32\shell32.dll",22069
  68. [WordpadUninstallItems]
  69. Name = %WORDPAD_LINK%,0x00000003
  70. Subdir = %APPS_DESC%
  71. [WordpadUninstallCommonItems]
  72. Name = %WORDPAD_LINK%,0x00000002
  73. Subdir = %APPS_DESC%
  74. [WordPadReg]
  75. @*:;begin_sld_ShellWordpad
  76. ; Next line is in shell.inx to avoid overwriting key when making null file entry
  77. ;HKCR,.doc,,2,Wordpad.Document.1
  78. HKCR,.doc\OpenWithList\WordPad.exe,,,
  79. HKCR,Wordpad.Document.1,,,%WORDPAD_DOC%
  80. HKCR,Wordpad.Document.1,FriendlyTypeName,0x00020000,"@""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",-209"
  81. HKCR,Wordpad.Document.1\Insertable,,,""
  82. HKCR,Wordpad.Document.1\Protocol,,,
  83. HKCR,Wordpad.Document.1\Protocol\StdFileEditing,,,
  84. HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Server,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"""
  85. HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Verb,,,
  86. HKCR,Wordpad.Document.1\Protocol\StdFileEditing\Verb\0,,,"%EDIT%"
  87. HKCR,Wordpad.Document.1\DefaultIcon,,0x0020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",1"
  88. HKCR,Wordpad.Document.1\shell\open\command,,0x00020002,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"" ""%%1"""
  89. HKCR,Wordpad.Document.1\shell\print\command,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"" /p ""%%1"""
  90. HKCR,Wordpad.Document.1\shell\printto\command,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"" /pt ""%%1"" ""%%2"" ""%%3"" ""%%4"""
  91. HKCR,Wordpad.Document.1\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}
  92. ;
  93. ; Add "rtffile" section
  94. ;
  95. HKCR,.rtf\OpenWithList\WordPad.exe,,,
  96. HKCR,rtffile,,,%RTF_DOC%
  97. HKCR,rtffile,FriendlyTypeName,0x00020000,"@""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",-190"
  98. HKCR,rtffile\DefaultIcon,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",1"
  99. ; Note: Must use fully qualified path or Goldmine 4.0 pukes
  100. HKCR,rtffile\shell\open\command,,,"""%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"" ""%%1"""
  101. HKCR,rtffile\shell\print\command,,,"""%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"" /p ""%%1"""
  102. HKCR,rtffile\shell\printto\command,,,"""%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"" /pt ""%%1"" ""%%2"" ""%%3"" ""%%4"""
  103. HKCR,rtffile\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}
  104. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\DefaultIcon,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",0"
  105. ;
  106. ; update 3.x write stuff to use wordpad as server
  107. ;
  108. HKCR,.wri\OpenWithList\WordPad.exe,,,
  109. HKCR,.wri,,,wrifile
  110. HKCR,wrifile,FriendlyTypeName,0x00020000,"@""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",-208"
  111. HKCR,wrifile,,,%WRITE_DOC%
  112. HKCR,wrifile\DefaultIcon,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",2"
  113. HKCR,wrifile\CLSID,,,{73FDDC80-AEA9-101A-98A7-00AA00374959}
  114. ; Note: Must use fully qualified path or Goldmine 4.0 pukes
  115. HKCR,wrifile\shell\open\command,,,"""%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"" ""%%1"""
  116. HKCR,wrifile\shell\print\command,,,"""%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"" /p ""%%1"""
  117. HKCR,wrifile\shell\printto\command,,,"""%24%\%PROGRAMF%\%ACCESSOR%\WORDPAD.EXE"" /pt ""%%1"" ""%%2"" ""%%3"" ""%%4"""
  118. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959},,,%WORDPAD_DOC%
  119. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\DefaultIcon,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",1"
  120. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\LocalServer32,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"""
  121. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\ProgId,,,WordPad.Document.1
  122. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\MiscStatus,,,0
  123. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\AuxUserType\3,,,"%WORDPAD_LINK%"
  124. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\AuxUserType\2,,,"%WORDPAD_DOC%"
  125. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\Insertable,,,
  126. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\verb\1,,,"%OPEN%,0,2"
  127. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\verb\0,,,"%EDIT%,0,2"
  128. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\InprocHandler32,,,ole32.dll
  129. HKCR,CLSID\{73FDDC80-AEA9-101A-98A7-00AA00374959}\DataFormats\PriorityCacheFormats,"Rich Text Format",,""
  130. HKCR,Applications\wordpad.exe,FriendlyAppName,2,"@shell32.dll,-22069"
  131. HKCR,Applications\wordpad.exe\shell\open\command,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"" ""%%1"""
  132. HKCR,"*\OpenWithList\WordPad.exe",,,
  133. HKCR,"SystemFileAssociations\text\OpenWithList\WordPad.exe",,,
  134. HKCR,SystemFileAssociations\.doc\shell\open\command,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"" ""%%1"""
  135. HKCR,SystemFileAssociations\.doc\DefaultIcon,,0x0020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",1"
  136. HKCR,SystemFileAssociations\.rtf\shell\open\command,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"" ""%%1"""
  137. HKCR,SystemFileAssociations\.rtf\DefaultIcon,,0x0020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",1"
  138. HKCR,SystemFileAssociations\.wri\shell\open\command,,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"" ""%%1"""
  139. HKCR,SystemFileAssociations\.wri\DefaultIcon,,0x0020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"",1"
  140. ; set up the per-app path
  141. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WORDPAD.EXE",,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"""
  142. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WRITE.EXE",,0x00020000,"""%ProgramFiles%\%ACCESSOR%\WORDPAD.EXE"""
  143. @*:;end_sld_ShellWordpad