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.

132 lines
4.6 KiB

  1. ;
  2. ; Control registration and DLL installation
  3. ;
  4. ; Note the AddReg and DelReg keys have a maximum length of 255 characters.
  5. ; Only one AddReg and DelReg key per header section.
  6. ;
  7. ; Because of the length limitations, we use shorthand names for the
  8. ; sections.
  9. ;
  10. ; RegItems with %11% or %25% are substituted on NT with
  11. ; %SystemRoot%\whatever. But this needs to be REGEXSZ! Use the
  12. ; token %REGEXSZ% (0x20000).
  13. ;
  14. ; Any entries that go into the registry that contain
  15. ; %_SYS_MOD_PATH%, %11%, %25% MUST have this flag set. (w95 ignores it).
  16. [Version]
  17. Signature="$CHICAGO$"
  18. [RegDll]
  19. ComponentName=Shell.AppMgr
  20. ComponentVersion=5.0
  21. AdvOptions=36
  22. AddReg=RegAppMgr,!RegRollbackAppMgr
  23. DelReg=DelRegAppMgr
  24. BackupReg=RegBackupSettings
  25. RequiredEngine=SETUPAPI,%ERR_NOSETUPAPI%
  26. [UnregDll]
  27. ComponentName=Shell.AppMgr
  28. AdvOptions=260
  29. RequiredEngine=SETUPAPI,%ERR_NOSETUPAPI%
  30. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  31. ; General Unregistration
  32. ;
  33. ; This section will be applied with the component's uninstall.
  34. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  35. [DelRegAppMgr]
  36. ;;;;;;; Register myself as an Inproc CPL
  37. HKLM,"%SMWCCIA%","%DESC_CPLModule%",,""
  38. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  39. ; Rollback Registration
  40. ;
  41. ; These registry keys will kick off the RollBack during uninstall.
  42. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  43. [!RegRollbackAppMgr]
  44. HKLM,"Software\Microsoft\Advanced INF Setup\IE CompList","Shell.AppMgr",0,""
  45. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  46. ; General Registration
  47. ;
  48. ; This section will be applied with the component's installtion and any existing
  49. ; settings will be backed up. These backed up settings will be restored
  50. ; on uninstall.
  51. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  52. [RegAppMgr]
  53. ;;;;;;; App Manager
  54. ; In: Shell5
  55. HKCR,"CLSID\%CLSID_ShellAppManager%",,,"%DESC_ShellAppManager%"
  56. HKCR,"CLSID\%CLSID_ShellAppManager%\%IPS%",,%REGEXSZ%,"%_SYS_MOD_PATH%"
  57. HKCR,"CLSID\%CLSID_ShellAppManager%\%IPS%","ThreadingModel",,"Apartment"
  58. HKLM,"%SMWCVSEA%","%CLSID_ShellAppManager%",,"%DESC_ShellAppManager%"
  59. ;;;;;;; Installed App Enumerator
  60. ; In: Shell5
  61. HKCR,"CLSID\%CLSID_EnumInstalledApps%",,,"%DESC_EnumInstalledApps%"
  62. HKCR,"CLSID\%CLSID_EnumInstalledApps%\%IPS%",,%REGEXSZ%,"%_SYS_MOD_PATH%"
  63. HKCR,"CLSID\%CLSID_EnumInstalledApps%\%IPS%","ThreadingModel",,"Apartment"
  64. HKLM,"%SMWCVSEA%","%CLSID_EnumInstalledApps%",,"%DESC_EnumInstalledApps%"
  65. ;;;;;;; Darwin App Publisher
  66. ; In: Shell5
  67. HKCR,"CLSID\%CLSID_DarwinAppPublisher%",,,"%DESC_DarwinAppPub%"
  68. HKCR,"CLSID\%CLSID_DarwinAppPublisher%\%IPS%",,%REGEXSZ%,"%_SYS_MOD_PATH%"
  69. HKCR,"CLSID\%CLSID_DarwinAppPublisher%\%IPS%","ThreadingModel",,"Apartment"
  70. HKLM,"%SMWCA%\%DESC_DarwinAppPub%","",2,"%CLSID_DarwinAppPublisher%"
  71. HKLM,"%SMWCVSEA%","%CLSID_DarwinAppPublisher%",,"%DESC_DarwinAppPub%"
  72. ;;;;;;; Register Icon Hints
  73. HKLM,"%SMWCAI%","Microsoft Office",,"msoffice.exe"
  74. HKLM,"%SMWCAI%","Lotus Notes",,"notes.exe"
  75. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  76. ; Backup Settings
  77. ;
  78. ; This section will force several keys to be backed up so they can be
  79. ; restored on uninstall. This will only work for the user that
  80. ; installs and uninstalls, but that is acceptable for now.
  81. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  82. [RegBackupSettings]
  83. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  84. ; Tokenized strings
  85. ;
  86. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  87. [Strings]
  88. IPS="InProcServer32"
  89. ; (REG_EXPAND_SZ << 16)
  90. REGEXSZ=0x00020000
  91. ; (REG_DWORD << 16)
  92. REGDW=0x00010001
  93. SMWCA = "Software\Microsoft\Windows\CurrentVersion\App Management\Publishers"
  94. SMWCAI = "Software\Microsoft\Windows\CurrentVersion\App Management\Icon Hints"
  95. SMWCVSEA = "Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved"
  96. SMWCCIA = "Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\InProcCPLs"
  97. DESC_ShellAppManager = "Shell Application Manager"
  98. DESC_EnumInstalledApps = "Installed Apps Enumerator"
  99. DESC_DarwinAppPub = "Darwin App Publisher"
  100. DESC_CPLModule = "appwiz.cpl"
  101. ; CLSIDs
  102. CLSID_ShellAppManager = "{352EC2B7-8B9A-11D1-B8AE-006008059382}"
  103. CLSID_EnumInstalledApps = "{0B124F8F-91F0-11D1-B8B5-006008059382}"
  104. CLSID_DarwinAppPublisher = "{CFCCC7A0-A282-11D1-9082-006008059382}"
  105. ERR_NOSETUPAPI="Can not register APPMGR.DLL because SETUPAPI.DLL is missing."