Source code of Windows XP (NT5)
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.

314 lines
6.6 KiB

  1. ;******************************************************************************
  2. ; WIA installation script
  3. ;
  4. ; To add files:
  5. ;
  6. ; 1) Find the appropriate subdirectory to copy the files to under
  7. ; [DestinationDirs].
  8. ; 2) Find the [xxxxx] section (from step 1) and add your filename.
  9. ; 3) Find the [SourceDisksFiles] section and add you file there.
  10. ;
  11. ; To add registry entries go to the [OSRegistrySettings.NT] section.
  12. ;
  13. ; To register a COM object - use Register OCX serction
  14. ; [PostSetupCommands] and run whatever you want.
  15. ;
  16. [Version]
  17. ;CatalogFile=wia.cat
  18. Signature=$Windows NT$
  19. AdvancedINF=2.5
  20. Provider=%Msft%
  21. ;******************************************************************************
  22. ; INF Entry Points
  23. ;
  24. [DefaultInstall]
  25. RequiredEngine=Setupapi,%BadSetupVer%
  26. ComponentName="WIA"
  27. ComponentVersion=2.0
  28. CopyFiles=CopyInf,SystemFiles,WinFiles,HelpDir
  29. DelReg=DelUninstallReg
  30. AddReg=CommonRegistrySettings,OSRegistrySettings,RegUninstall
  31. RunPostSetupCommands=PostSetup:4
  32. RegisterOCXs=RegisterOCX.WIA
  33. [DefaultInstall.NT]
  34. RequiredEngine=Setupapi,%BadSetupVer%
  35. ComponentName="WIA"
  36. ComponentVersion=2.0
  37. CopyFiles=CopyInf,SystemFiles.NT,WinFiles.NT,HelpDir
  38. DelReg=DelUninstallReg
  39. AddReg=CommonRegistrySettings,OSRegistrySettings.NT,RegUninstall
  40. RunPostSetupCommands=PostSetup.NT:4
  41. [Uninstall]
  42. SmartReboot=A
  43. DelReg=UnRegUninstall
  44. RunPreSetupCommands=PreUnsetup
  45. [Uninstall.NT]
  46. SmartReboot=A
  47. DelReg=UnRegUninstall.NT
  48. AddReg=ReEnableService.NT
  49. RunPreSetupCommands=PreUnsetup
  50. ;******************************************************************************
  51. ; File Sections
  52. ;
  53. ;
  54. ; Destination Directories
  55. ;
  56. [DestinationDirs]
  57. CopyInf = 17
  58. WinFiles = 25
  59. WinFiles.NT = 25
  60. SystemFiles = 11
  61. HelpDir = 25,Help
  62. WebFiles = 25,Web
  63. ;
  64. ; Replacement INF files
  65. ;
  66. [CopyInf]
  67. wia.inf
  68. hpscan.inf
  69. testcam.inf
  70. testscan.inf
  71. kdk2x0.inf
  72. kodak.inf
  73. ricoh.inf
  74. ;
  75. ; Put files that should be copied to %systemroot% here.
  76. ;
  77. [WinFiles]
  78. [WebFiles]
  79. testcam.ico
  80. tcamlogo.jpg
  81. ;
  82. ; Put files that should be copied to %systemroot%\system32 here.
  83. ;
  84. [SystemFiles]
  85. wiadefui.dll,,32
  86. wiastatd.dll,,32
  87. wiashext.dll,,32
  88. camocx.dll ,,32
  89. wiascr.dll ,,32
  90. wiascr.tlb ,,32
  91. hpsclwia.dll,,32
  92. hpsj32c.dll ,,32
  93. hpsj32c.tlb ,,32
  94. hpsjcoin.dll,,32
  95. is4xxusd.dll,,32
  96. wiatscan.dll,,32
  97. test1bt.bmp ,,32
  98. test8bt.bmp ,,32
  99. test24bt.bmp,,32
  100. testcam.dll ,,32
  101. dc260usd.dll,,32
  102. dc210usd.dll,,32
  103. sti.dll ,,32
  104. wiaservc.dll,,32
  105. stimon.exe ,,32
  106. extend.dll ,,32
  107. wiadss.dll ,,32
  108. wiadenum.dll,,32
  109. wiascanx.dll,,32
  110. cropview.dll,,32
  111. wiaacmgr.exe,,32
  112. ssmypics.scr,,32
  113. wiavusd.dll,,32
  114. wiasf.ax,,32
  115. [SystemFiles.NT]
  116. wiadefui.dll,,32
  117. wiastatd.dll,,32
  118. wiashext.dll,,32
  119. camocx.dll ,,32
  120. wiascr.dll ,,32
  121. wiascr.tlb ,,32
  122. hpsclwia.dll,,32
  123. hpsj32c.dll ,,32
  124. hpsj32c.tlb ,,32
  125. hpsjcoin.dll,,32
  126. is4xxusd.dll,,32
  127. wiatscan.dll,,32
  128. test1bt.bmp ,,32
  129. test8bt.bmp ,,32
  130. test24bt.bmp,,32
  131. testcam.dll ,,32
  132. dc260usd.dll,,32
  133. dc210usd.dll,,32
  134. sti.dll ,,32
  135. wiaservc.dll,,32
  136. sti_ci.dll ,,32
  137. extend.dll ,,32
  138. wiadss.dll ,,32
  139. wiadenum.dll,,32
  140. wiascanx.dll,,32
  141. cropview.dll,,32
  142. wiaacmgr.exe,,32
  143. ssmypics.scr,,32
  144. wiavusd.dll,,32
  145. wiasf.ax,,32
  146. [CustomShellFolder]
  147. ;;desktop.ini,wiadsk.ini
  148. ;
  149. ; Help files
  150. ;
  151. [HelpDir]
  152. ;******************************************************************************
  153. ; Disk Layout Information (Just add your files here exactly like the others)
  154. ;
  155. [SourceDisksNames]
  156. 99 = %WIADISK%,,0
  157. [SourceDisksFiles]
  158. wiaservc.dll = 99
  159. wiadefui.dll = 99
  160. wiastatd.dll = 99
  161. wiashext.dll = 99
  162. camocx.dll = 99
  163. wiascr.dll = 99
  164. wiascr.tlb = 99
  165. wia.inf = 99
  166. hpscan.inf = 99
  167. hpsclwia.dll = 99
  168. hpsj32c.dll = 99
  169. hpsj32c.tlb = 99
  170. hpsjcoin.dll = 99
  171. ricoh.inf = 99
  172. is4xxusd.dll = 99
  173. testscan.inf = 99
  174. wiatscan.dll = 99
  175. test1bt.bmp = 99
  176. test8bt.bmp = 99
  177. test24bt.bmp = 99
  178. kdk2x0.inf = 99
  179. dc260usd.dll = 99
  180. testcam.inf = 99
  181. testcam.dll = 99
  182. kodak.inf = 99
  183. dc210usd.dll = 99
  184. sti.dll = 99
  185. sti_ci.dll = 99
  186. wiadenum.dll = 99
  187. wiascanx.dll = 99
  188. cropview.dll = 99
  189. wiaacmgr.exe = 99
  190. ssmypics.scr = 99
  191. wiavusd.dll = 99
  192. wiasf.ax = 99
  193. ;
  194. ; Execute sections
  195. ;
  196. [PostSetup.NT]
  197. ;%11%\wiainit.exe /setup
  198. %11%\regsvr32 /s %11%\wiadenum.dll
  199. %11%\regsvr32 /s %11%\wiashext.dll
  200. %11%\regsvr32 /s %11%\camocx.dll
  201. %11%\regsvr32 /s %11%\wiascr.dll
  202. %11%\regsvr32 /s %11%\wiaservc.dll
  203. %11%\regsvr32 /s %11%\sti.dll
  204. %11%\regsvr32 /s %11%\pngfilt.dll
  205. %11%\regsvr32 /s %11%\wiadefui.dll
  206. %11%\regsvr32 /s %11%\wiascanx.dll
  207. %11%\regsvr32 /s %11%\cropview.dll
  208. %11%\regsvr32 /s %11%\wiavusd.dll
  209. %11%\regsvr32 /s %11%\wiasf.ax
  210. cmd.exe /c erase %windir%\inf\*.pnf
  211. %11%\wiaacmgr.exe /RegServer
  212. [PostSetup]
  213. ;%11%\wiainit.exe /setup
  214. %11%\regsvr32 /s %11%\wiadenum.dll
  215. %11%\regsvr32 /s %11%\wiashext.dll
  216. %11%\regsvr32 /s %11%\camocx.dll
  217. %11%\regsvr32 /s %11%\wiascr.dll
  218. %11%\regsvr32 /s %11%\wiaservc.dll
  219. %11%\regsvr32 /s %11%\sti.dll
  220. %11%\regsvr32 /s %11%\pngfilt.dll
  221. %11%\regsvr32 /s %11%\wiadefui.dll
  222. %11%\regsvr32 /s %11%\wiascanx.dll
  223. %11%\regsvr32 /s %11%\cropview.dll
  224. %11%\regsvr32 /s %11%\wiavusd.dll
  225. %11%\regsvr32 /s %11%\wiasf.ax
  226. command.com /c erase %windir%\inf\*.pnf
  227. %11%\wiaacmgr.exe /RegServer
  228. [PreUnsetup]
  229. ;%11%\wiainit.exe /preunsetup
  230. ;******************************************************************************
  231. ; Registry keys
  232. ;
  233. ; Syntax:
  234. ;
  235. ; root, [subkey], [value-name], [flags], [value]
  236. ;
  237. ; Example:
  238. ;
  239. ; --- Add a String Value ---
  240. ;
  241. ; HKLM,%CurrentVersion%\TT,Description,,"Download Manager"
  242. ;
  243. ; --- Add an expandable string ---
  244. ;
  245. ; HKLM,%CurrentVersion%\TT,Description,DLLPath,0x20000,"%SystemRoot%\system32\dnmgr.dll
  246. ;
  247. ; --- Add a DWORD ---
  248. ;
  249. ; HKLM,%CurrentVersion%\TT,SomeDWORD,0x10001,0x21
  250. ;
  251. [CommonRegistrySettings]
  252. HKLM,"SYSTEM\CurrentControlSet\Control\StillImage\Events\Connected",GUID,,{A28BBADE-64B6-11D2-A231-00C04FA31809}
  253. HKLM,"SYSTEM\CurrentControlSet\Control\StillImage\Events\Connected",LaunchApplications,,*
  254. HKLM,"SYSTEM\CurrentControlSet\Control\StillImage\Events\Disconnected",GUID,,{143E4E83-6497-11D2-A231-00C04FA31809}
  255. HKLM,"SYSTEM\CurrentControlSet\Control\StillImage\Events\Disconnected",LaunchApplications,,*
  256. HKLM,"SYSTEM\CurrentControlSet\Control\StillImage\Events\ScanButton",GUID,,{A6C5A715-8C6E-11D2-977A-0000F87A926F}
  257. HKLM,"SYSTEM\CurrentControlSet\Control\StillImage\Events\ScanButton",LaunchApplications,,*
  258. [OSRegistrySettings]
  259. [OSRegistrySettings.NT]
  260. [DelRegistrySettings.Win]
  261. [RegUninstall]
  262. [DelUninstallReg]
  263. [UnRegUninstall]
  264. [UnRegUninstall.NT]
  265. [RegisterOCX.WIA]
  266. [Strings]
  267. ;
  268. ; Do not localize these strings.
  269. ;
  270. ;
  271. ; Localize these strings.
  272. ;
  273. WIADISK = "WIA Install Disk"
  274. BadSetupVer = "Your system is missing the required Setup engine."
  275. UninstallData = "Uninstall Information"
  276. DisplayDesc = ""