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.

180 lines
5.2 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. NoUPnP.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,NoUPnP.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. hnetwiz.dll,,,1
  81. icsdclt.dll,,,1
  82. ncxp16.dll,,,1
  83. ncxp32.dll,,,1
  84. ncxpnt.dll,,,1
  85. ;
  86. ; Registry Settings
  87. ;
  88. ; Network Setup Wizard Down-level Client Setup
  89. ; Lists upnp as an installed optional component
  90. ;
  91. [MS_UPNP_Reg]
  92. HKLM,"%KEY_OPTCOMPONENTS%","UPNP",,"UPNP"
  93. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","INF",,"hnwcli.inf"
  94. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","Section",,"DefaultInstall"
  95. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","Installed",,"1"
  96. ; Mark UPNP as uninstalled and restore the previous UPnP Setup
  97. ;
  98. [MS_UPNP_Uninstall_Reg]
  99. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","INF",,"upnp.inf"
  100. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","Section",,"UPNP"
  101. HKLM,"%KEY_OPTCOMPONENTS%\UPNP","Installed",,"0"
  102. ; SSDP-related
  103. ;
  104. [SSDP.Register]
  105. HKLM,"%KEY_RUNSERVICES%","SSDPSRV",,"%11%\ssdpsrv.exe"
  106. HKLM,"%KEY_RUN%","ICSDCLT",,"%25%\rundll32.exe %11%\icsdclt.dll,ICSClient"
  107. [SSDP.Unregister]
  108. HKLM,"%KEY_RUNSERVICES%","SSDPSRV"
  109. HKLM,"%KEY_RUN%","ICSDCLT"
  110. HKLM,"%KEY_ICSCLIENT%"
  111. ;register/unregister upnp dlls. Also run home network setup wizard once.
  112. ;
  113. [RegisterDLLS]
  114. HKLM,"%KEY_RUNONCEEX%\upnp","000",,"%11%\upnp.dll|DllRegisterServer"
  115. HKLM,"%KEY_RUNONCEEX%\icsdclt","000",,"%11%\icsdclt.dll|DllRegisterServer"
  116. [RunHnetWizard]
  117. HKLM,"%KEY_RUNONCEEX%\upnp","999",,"%25%\rundll32.exe %11%\hnetwiz.dll,HomeNetWizardRunDll"
  118. [UnRegisterDLLs]
  119. HKLM,"%KEY_RUNONCEEX%\upnp","000",,"%11%\upnp.dll|DllUnregisterServer"
  120. HKLM,"%KEY_RUNONCEEX%\icsdclt","000",,"%11%\icsdclt.dll|DllUnregisterServer"
  121. ; for uninstallation
  122. ; - this tells setup to add a registry key that, after reboot, will run
  123. ; the exported 'InstallHInfSection' function from setupx.dll and tell
  124. ; it to load this .inf file again and process the section
  125. ; "MS_UPNP_Uninstall_Part2", which will delete the files.
  126. ; Wonderful.
  127. [BootstrapDeletion]
  128. HKLM,"%KEY_RUNONCEEX%\upnp","999",,"RUNDLL SETUPX.DLL,InstallHInfSection MS_UPNP_Uninstall_Part2 64 upnp.inf"
  129. ; This is a hack to remove the list of discovered devices when we're
  130. ; uninstalled.
  131. [RemoveDiscoveredDevices]
  132. HKLM,"%KEY_UPNPDATA%"
  133. ;
  134. ; Strings
  135. ;
  136. [Strings]
  137. ;Non-Localizable strings
  138. KEY_RUNONCEEX = "Software\Microsoft\Windows\CurrentVersion\RunOnceEx"
  139. KEY_OPTCOMPONENTS = "Software\Microsoft\Windows\CurrentVersion\Setup\OptionalComponents"
  140. KEY_RUNSERVICES = "Software\Microsoft\Windows\CurrentVersion\RunServices"
  141. KEY_RUN = "Software\Microsoft\Windows\CurrentVersion\Run"
  142. KEY_UPNPDATA = "Software\Microsoft\Windows\CurrentVersion\UPnP"
  143. KEY_ICSCLIENT = "Software\Microsoft\Windows\CurrentVersion\ICSClient"
  144. ;Localizable strings
  145. PKG_DESC = "Network Setup Wizard"
  146. 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."
  147. UPNP_Desc = "Universal Plug and Play"
  148. UPNP_Tip = "Universal Plug and Play enables seamless connectivity and communication between Windows and intelligent appliances."
  149. Comm_Desc = "Accessories\Communications"
  150. ICS_Desc = "Internet Gateway"