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.

182 lines
5.3 KiB

  1. ;
  2. ; This is the Setup information file for Network Setup Wizard Down-level Client
  3. ; Setup Package. Modified from upnp.inf --- Tin Qian 4/4/2001
  4. ;
  5. ; Copyright (c) Microsoft Corporation. All rights reserved.
  6. ;
  7. [Version]
  8. Signature=$CHICAGO$
  9. SetupClass=Base
  10. [SourceDisksNames]
  11. 1=%TEMP%,"",1
  12. [SourceDisksFiles]
  13. HasUPnP.inf=1
  14. ssdpapi.dll=1
  15. ssdpsrv.exe=1
  16. upnp.dll=1
  17. hnetwiz.dll=1
  18. icsdclt.dll=1
  19. ncxp16.dll=1
  20. ncxp32.dll=1
  21. ncxpnt.dll=1
  22. [DestinationDirs]
  23. CopyInf = 17 ; LDID_INF, windows\inf
  24. CopySys = 11 ; LDID_SYS, windows\system
  25. ;
  26. ; INF Entry Points
  27. ;
  28. [DefaultInstall]
  29. OptionDesc=%UPNP_Desc%
  30. Tip=%UPNP_Tip%
  31. Parent = CommApps
  32. AddReg=MS_UPNP_Reg, SSDP.Register, RegisterDLLS, RunHnetWizard
  33. CopyFiles=CopyInf, CopySys
  34. UpdateInis=ICS_Client_AddLink
  35. InstallType = 0 ;Maunual Install Only
  36. IconIndex= 17 ;XP UPNP mini-icon
  37. Uninstall=MS_UPNP_Uninstall
  38. Reboot=1
  39. BeginPrompt=BeginPromptSection
  40. EndPrompt=EndPromptSection
  41. [BeginPromptSection]
  42. Title=%PKG_DESC%
  43. [EndPromptSection]
  44. Prompt=%EndPrompt%
  45. [ICS_Client_AddLink]
  46. setup.ini, progman.groups, , "Comm_Group=%COMM_DESC%"
  47. setup.ini, Comm_Group,,"""%ICS_DESC%"",""%25%\rundll32.exe %11%\icsdclt.dll,ICSClient"""
  48. [ICS_Client_RemoveLink]
  49. setup.ini, progman.groups, , "Comm_Group=%COMM_DESC%"
  50. setup.ini, Comm_Group,,"""%ICS_DESC%""
  51. [MS_UPNP_Uninstall]
  52. AddReg=MS_UPNP_Uninstall_Reg, UnRegisterDLLs, BootstrapDeletion
  53. DelReg=SSDP.Unregister, RemoveDiscoveredDevices
  54. UpdateInis=ICS_Client_RemoveLink
  55. Reboot=1
  56. [MS_UPNP_Uninstall_Part2]
  57. DelFiles = DelSys
  58. ;
  59. ; File Sections. These actually list which files are copied. The destination
  60. ; dir for each section is set by DestinationDirs above.
  61. ;
  62. [CopyInf]
  63. hnwcli.inf,HasUPnP.inf
  64. ; Provide temporary file names so that they are copied to destination using the temporary
  65. ; names then get renamed upon reboot. This is useful when the files are in use.
  66. [CopySys]
  67. ssdpapi.dll,,_ssdpapi.tmp,6
  68. ssdpsrv.exe,,_ssdpsrv.tmp,6
  69. upnp.dll,,_upnp.tmp,6
  70. hnetwiz.dll,,_hnetwiz.tmp,6
  71. icsdclt.dll,,_icsdclt.tmp,6
  72. ncxp16.dll,,_ncxp16.tmp,6
  73. ncxp32.dll,,_ncxp32.tmp,6
  74. ncxpnt.dll,,_ncxpnt.tmp,6
  75. ; delete dlls and exes even if they are in use.
  76. [DelSys]
  77. ssdpapi.dll,,,1
  78. ssdpsrv.exe,,,1
  79. upnp.dll,,,1
  80. upnpui.dll,,,1
  81. hnetwiz.dll,,,1
  82. icsdclt.dll,,,1
  83. ncxp16.dll,,,1
  84. ncxp32.dll,,,1
  85. ncxpnt.dll,,,1
  86. ;
  87. ; Registry Settings
  88. ;
  89. ; Network Setup Wizard Down-level Client Setup
  90. ; Lists upnp as an installed optional component
  91. ;
  92. [MS_UPNP_Reg]
  93. HKLM,"%KEY_OPTCOMPONENTS%","UPNP",,"UPNP"
  94. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","INF",,"hnwcli.inf"
  95. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","Section",,"DefaultInstall"
  96. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","Installed",,"1"
  97. ; Mark UPNP as uninstalled and restore the previous UPnP Setup
  98. ;
  99. [MS_UPNP_Uninstall_Reg]
  100. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","INF",,"upnp.inf"
  101. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","Section",,"UPNP"
  102. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","Installed",,"0"
  103. ; SSDP-related
  104. ;
  105. [SSDP.Register]
  106. HKLM,"%KEY_RUNSERVICES%","SSDPSRV",,"%11%\ssdpsrv.exe"
  107. HKLM,"%KEY_RUN%","ICSDCLT",,"%25%\rundll32.exe %11%\icsdclt.dll,ICSClient"
  108. [SSDP.Unregister]
  109. HKLM,"%KEY_RUNSERVICES%","SSDPSRV"
  110. HKLM,"%KEY_RUN%","ICSDCLT"
  111. HKLM,"%KEY_ICSCLIENT%"
  112. ;register/unregister upnp dlls. Also run home network setup wizard once.
  113. ;
  114. [RegisterDLLS]
  115. HKLM,"%KEY_RUNONCEEX%\upnp","000",,"%11%\upnp.dll|DllRegisterServer"
  116. HKLM,"%KEY_RUNONCEEX%\icsdclt","000",,"%11%\icsdclt.dll|DllRegisterServer"
  117. [RunHnetWizard]
  118. HKLM,"%KEY_RUNONCEEX%\upnp","999",,"%25%\rundll32.exe %11%\hnetwiz.dll,HomeNetWizardRunDll"
  119. [UnRegisterDLLs]
  120. HKLM,"%KEY_RUNONCEEX%\upnp","000",,"%11%\upnp.dll|DllUnregisterServer"
  121. HKLM,"%KEY_RUNONCEEX%\icsdclt","000",,"%11%\icsdclt.dll|DllUnregisterServer"
  122. HKLM,"%KEY_RUNONCEEX%\upnp","001",,"%11%\upnpui.dll|DllUnregisterServer"
  123. ; for uninstallation
  124. ; - this tells setup to add a registry key that, after reboot, will run
  125. ; the exported 'InstallHInfSection' function from setupx.dll and tell
  126. ; it to load this .inf file again and process the section
  127. ; "MS_UPNP_Uninstall_Part2", which will delete the files.
  128. ; Wonderful.
  129. [BootstrapDeletion]
  130. HKLM,"%KEY_RUNONCEEX%\upnp","999",,"RUNDLL SETUPX.DLL,InstallHInfSection MS_UPNP_Uninstall_Part2 64 upnp.inf"
  131. ; This is a hack to remove the list of discovered devices when we're
  132. ; uninstalled.
  133. [RemoveDiscoveredDevices]
  134. HKLM,"%KEY_UPNPDATA%"
  135. ;
  136. ; Strings
  137. ;
  138. [Strings]
  139. ;Non-Localizable strings
  140. KEY_RUNONCEEX = "Software\Microsoft\Windows\CurrentVersion\RunOnceEx"
  141. KEY_OPTCOMPONENTS = "Software\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents"
  142. KEY_RUNSERVICES = "Software\Microsoft\Windows\CurrentVersion\RunServices"
  143. KEY_RUN = "Software\Microsoft\Windows\CurrentVersion\Run"
  144. KEY_UPNPDATA = "Software\Microsoft\Windows\CurrentVersion\UPnP"
  145. KEY_ICSCLIENT = "Software\Microsoft\Windows\CurrentVersion\ICSClient"
  146. ;Localizable strings
  147. PKG_DESC = "Network Setup Wizard"
  148. EndPrompt = "You will be prompted to restart your computer. If you used a floppy disk or CD, remove it from the drive, and then click OK."
  149. UPNP_Desc = "Universal Plug and Play"
  150. UPNP_Tip = "Universal Plug and Play enables seamless connectivity and communication between Windows and intelligent appliances."
  151. Comm_Desc = "Accessories\Communications"
  152. ICS_Desc = "Internet Gateway"