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.

130 lines
4.8 KiB

  1. [Version]
  2. Signature="$CHICAGO$"
  3. ; Section called to setup when being installed on the machine
  4. ; note: DllRegisterServer calls the proxy to init the interfaces
  5. [Reg]
  6. AddReg=mobsync.Reg
  7. DelReg=mobsync.DeleteKeys
  8. ; Section called to setup when being uninstalled on the machine
  9. ; note : DllUnregisterServer calls proxy to remove the interfaces.
  10. [UnReg]
  11. DelReg=mobsync.DeleteKeys
  12. ; Section Sets up information for being run once for each time a new user
  13. ; logs on
  14. [SetupPerUserInstall]
  15. PerUserInstall=PUI
  16. ; Section Removes PerUserInstall information so no longer run each time
  17. ; a new user logs on.
  18. [RemovePerUserInstall]
  19. DelReg=RemovePerUserInstallKey
  20. PerUserInstall=PUU
  21. ; Section is Called when a New User or existing user logs on for first
  22. ; time after mobsync is installed on the machine; Currently
  23. ; only called on NT 4.0 to setup shortcut
  24. [PerUserInstall]
  25. UpdateInis = mobsyncInis
  26. ; Section called to add mobsync shortcut from start menu
  27. [RegShortcut]
  28. UpdateInis = mobsyncInis
  29. ; Section called to remove mobsync shortcut from start menu
  30. [UnRegShortcut]
  31. UpdateInis = mobsyncInis.remove
  32. ; in future should unreg some keys.
  33. ; header file for flags is in setupapi.h
  34. [mobsync.Reg] ;*************************************************
  35. ; don't localize any strings in this section.
  36. ; MODULEPATH is a variable passed in when we are invoked.
  37. ; register syncmgr proper information. (hivecls.inx) minus proxy registration
  38. HKCR,"CLSID\{6295DF27-35EE-11d1-8707-00C04FD93327}","",0x00000000,"MobSync Dll"
  39. HKCR,"CLSID\{6295DF27-35EE-11d1-8707-00C04FD93327}\InProcServer32","",0x00000000,%MODULEPATH%%mobsyncDLL%
  40. HKCR,"CLSID\{6295DF27-35EE-11d1-8707-00C04FD93327}\InProcServer32","ThreadingModel",0x00000000,"Apartment"
  41. HKCR,"CLSID\{6295DF2D-35EE-11d1-8707-00C04FD93327}","",0x00000000,"MobSync"
  42. HKCR,"CLSID\{6295DF2D-35EE-11d1-8707-00C04FD93327}","AppID",0x00000000,"{6295DF2D-35EE-11d1-8707-00C04FD93327}"
  43. HKCR,"CLSID\{6295DF2D-35EE-11d1-8707-00C04FD93327}\LocalServer32","",0x00000000,%MODULEPATH%%mobsyncEXE%
  44. HKCR,"CLSID\{6295DF2D-35EE-11d1-8707-00C04FD93327}\LocalServer32","ThreadingModel",0x00000000,"Apartment"
  45. ;dcom interactive user registration
  46. HKCR,"Appid\{6295DF2D-35EE-11d1-8707-00C04FD93327}","",0x00000000,"MobSync"
  47. HKCR,"Appid\{6295DF2D-35EE-11d1-8707-00C04FD93327}","RunAs",0x00000000,"Interactive User"
  48. ; register local machine key (hivesft.inx)
  49. ; installed key is DWORD of binary data sinc win95 .inf can't support dword
  50. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Syncmgr",,0x00000012
  51. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Syncmgr","Installed",0x00000003,1,0,0,0
  52. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Syncmgr\Handlers",,0x00000012
  53. ; register current user key (hivedef.inx)
  54. HKCU,"Software\Microsoft\Windows\CurrentVersion\Syncmgr",,0x00000012
  55. HKCU,"Software\Microsoft\Windows\CurrentVersion\Syncmgr\Handlers",,0x00000012
  56. [mobsync.DeleteKeys]
  57. ; we don't delete currentversion\syncmgr\handlers since don't want to remove existing registrations.
  58. HKCR,"CLSID\{6295DF27-35EE-11d1-8707-00C04FD93327}"
  59. HKCR,"CLSID\{6295DF2D-35EE-11d1-8707-00C04FD93327}"
  60. HKCR,"Appid\{6295DF2D-35EE-11d1-8707-00C04FD93327}"
  61. ; delete installed key
  62. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Syncmgr","Installed"
  63. ; delete the HKCU KEY
  64. HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\Syncmgr"
  65. ;Setup PerUser Install Information
  66. [PUI]
  67. DisplayName=%SYNCHRONIZE_PERUSERDISPLAYNAME%
  68. Version=1,0,0
  69. IsInstalled=1
  70. ComponentID=Synchronization_Manager
  71. GUID={6295DF27-35EE-11d1-8707-00C04FD93327}
  72. StubPath=rundll32.exe %MODULEPATH%%mobsyncDLL%,RunDllRegister /p
  73. ; update the perUser install information
  74. [PUU]
  75. DisplayName=%SYNCHRONIZE_PERUSERDISPLAYNAME%
  76. Version=1,0,0
  77. IsInstalled=0
  78. ComponentID=Synchronization_Manager
  79. GUID={6295DF27-35EE-11d1-8707-00C04FD93327}
  80. ; remove the StubPath Key for our component from ActiveSetup
  81. [RemovePerUserInstallKey]
  82. HKLM,"SOFTWARE\Microsoft\Active Setup\Installed Components\{6295DF27-35EE-11d1-8707-00C04FD93327}",StubPath
  83. [mobsync.Garbage] ;*************************************************
  84. [mobsyncInis]
  85. ; Adds Icon to Current Users group on NT
  86. ; ACCESSORIES_GROUP is defined by the caller.
  87. setup.ini, progman.groups,, "group4=%ACESSORIES_GROUP%" ;creates Accessories folder (if not already there
  88. setup.ini,group4,, """%SYNCHRONIZE_LINKNAME%"", ""%MODULEPATH%%mobsyncEXE%""" ;creates link in Accessories folder
  89. [mobsyncInis.remove]
  90. setup.ini, progman.groups,, "group4=%ACESSORIES_GROUP%" ;creates Accessories folder (if not already there
  91. setup.ini, group4,, """%SYNCHRONIZE_LINKNAME%""" ;deletes link
  92. [Strings] ;*************************************************
  93. ;Non-Localizable strings:
  94. KEY_mobsync = "SOFTWARE\Microsoft\Windows\syncmgr\handlers"
  95. mobsyncDLL = "mobsync.dll"
  96. mobsyncEXE = "mobsync.exe"
  97. ;Localize Strings
  98. LANGID = EN
  99. [End]