home *** CD-ROM | disk | FTP | other *** search
/ PC World Plus! (NZ) 2001 November / PCW1101.ISO / Browsers / IE6 / FLAT / WIN32 / EN / MOBILE95.CAB / mobsync.dll / REGINST / REGINST
Windows Setup INFormation  |  2001-08-17  |  5KB  |  131 lines

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