home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 May / CHIPCD5_98.iso / software / pelne / outlook / msimpsc2.exe / RCDATA / CABINET / impsc2.inf < prev    next >
Windows Setup INFormation  |  1998-02-18  |  4KB  |  143 lines

  1. ; Installs impsc2 into Outlook bin directory.
  2. ; Assumes that Outlook has already been installed correctly.
  3.  
  4. [version]
  5. signature="$CHICAGO$"
  6. ;need to tell INFInstall to use ADVPACK.DLL-it implements CustomDestination
  7. AdvancedINF=2.5
  8.  
  9. [DestinationDirs] 
  10. ;>49000 indicates custom LDID
  11. contents=49002
  12. SysCopy=11   
  13. ;17 is Windows\INF directory
  14. INFCopy=17
  15. PNFCleanUp=17
  16.  
  17. ;begin install logic
  18.  
  19. [DefaultInstall] 
  20. ;Win95 entry point
  21. CustomDestination=FileDest
  22. CopyFiles=contents,INFCopy,SysCopy
  23. AddReg=GenUninstallKey,Win95UninstallKey,impsc2RegKey
  24. RegisterOCXs=RegisterOCXSection
  25.  
  26. [DefaultInstall.NT]
  27. ;NT 4 entry point
  28. CustomDestination=FileDest
  29. CopyFiles=contents,INFCopy,SysCopy
  30. AddReg=GenUninstallKey,NTUninstallKey,impsc2RegKey
  31. RegisterOCXs=RegisterOCXSection
  32.  
  33. [contents]
  34. impsc2.exe
  35.  
  36. [SysCopy]
  37. ;system files to copy over
  38. comctl32.ocx
  39. MSVBVM50.dll
  40. Ctl3d32.dll
  41. ComCat.dll
  42. AsycFilt.dll
  43. OlePro32.dll
  44. OleAut32.dll,,,8
  45. StdOLE2.tlb,,,8
  46.  
  47. [INFCopy]
  48. ;copy INF to Windows\INF for uninstall
  49. impsc2.inf
  50.  
  51. [FileDest]
  52. ;7 means return path in Reg key && fail with message if Reg key doesn't exist
  53. 49001=TemplPathKey,7
  54. 49002=BogusRegKey,5 
  55.  
  56. [TemplPathKey]
  57. "HKLM","SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE","Path","",""
  58. "","","","%FailMsg%",""
  59.  
  60. [BogusRegKey]
  61. "HKLM","SOFTWARE\BogusApp\BogusKey","","","%49001%"
  62.  
  63. [impsc2RegKey]
  64. ; register impsc2 as handler for SC2 files
  65. HKCR,"SC2",,,"%SC2Type%"
  66. ;HKCR,"SC2\Shell",,,"&Import"
  67. HKCR,"SC2\Shell\Open\Command",,,"%49002%\impsc2.exe "%1""
  68. ;HKCR,"SC2\Shell\Import\Command",,,"%49002%\impsc2.exe "%1""
  69. ;HKCR,"SC2\Shell\Open\Command",,,"notepad.exe "%1""
  70. HKCR,".sc2",,,"SC2"
  71.  
  72. [RegisterOCXSection]
  73. %11%\comctl32.ocx
  74.  
  75. [GenUninstallKey]
  76. ;Reg key that puts entry in Add/Remove files CPL applet dialog
  77. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\impsc2,"DisplayName",,"%PackageDesc%" 
  78.  
  79. [Win95UninstallKey]
  80. ;call ADVPACK uninstaller on Win95
  81. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\impsc2,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\impsc2.inf, Uninstall" 
  82.  
  83. [NTUninstallKey]
  84. ;call ADVPACK uninstaller on NT 4
  85. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\impsc2,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\impsc2.inf, Uninstall.NT" 
  86.  
  87. ; begin uninstall logic
  88.  
  89. [Uninstall]
  90. BeginPrompt=BeginPromptSection
  91. EndPrompt=EndPromptSection
  92. CustomDestination=FileDest
  93. Delfiles=contents,PNFCleanUp
  94. Deldirs=RemoveFolder
  95. ;clean up uninstall keys
  96. DelReg=DelUninstallKey,impsc2RegKey,DelRegKey
  97. UnRegisterOCXs=RegisterOCXSection
  98. Cleanup=1
  99.  
  100. [Uninstall.NT]
  101. BeginPrompt=BeginPromptSection
  102. EndPrompt=EndPromptSection
  103. CustomDestination=FileDest
  104. Delfiles=contents,PNFCleanUp
  105. Deldirs=RemoveFolder
  106. DelReg=DelUninstallKey,impsc2RegKey,DelRegKey
  107. UnRegisterOCXs=RegisterOCXSection
  108. Cleanup=1
  109.  
  110. [PNFCleanUp]
  111. "impsc2.pnf"
  112.  
  113. [BeginPromptSection]
  114. Prompt="%BeginPrompt%"
  115. ButtonType=YESNO
  116. Title=%PackageName%
  117.  
  118. [EndPromptSection]
  119. Prompt="%EndPrompt%"
  120.  
  121. [RemoveFolder]
  122. %49002%
  123.  
  124. [DelUninstallKey]
  125. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\impsc2
  126.  
  127. [DelRegKey]
  128. ; "HKCR","MIME\Database\Content Type\application/vcard"
  129.  
  130. [SourceDisksNames]
  131. 1 = "impsc2",,0
  132.  
  133. [Strings]
  134. SC2type="SC2 Data"
  135. ;vcardReyKey="MIME\Database\Content Type\application/vcard"
  136. PackageName="SC2 Importer for Microsoft Outlook"
  137. PackageDesc="SC2 Importer for Microsoft Outlook (Remove only)"
  138. FailMsg="You must have Microsoft Outlook installed to install SC2 Importer."
  139.  
  140. ;prompts
  141. BeginPrompt="Are you sure that you want to remove SC2 Importer for Microsoft Outlook?"
  142. EndPrompt="SC2 Importer for Microsoft Outlook was successfully removed."
  143.