home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 May
/
CHIPCD5_98.iso
/
software
/
pelne
/
outlook
/
msimpsc2.exe
/
RCDATA
/
CABINET
/
impsc2.inf
< prev
next >
Wrap
Windows Setup INFormation
|
1998-02-18
|
4KB
|
143 lines
; Installs impsc2 into Outlook bin directory.
; Assumes that Outlook has already been installed correctly.
[version]
signature="$CHICAGO$"
;need to tell INFInstall to use ADVPACK.DLL-it implements CustomDestination
AdvancedINF=2.5
[DestinationDirs]
;>49000 indicates custom LDID
contents=49002
SysCopy=11
;17 is Windows\INF directory
INFCopy=17
PNFCleanUp=17
;begin install logic
[DefaultInstall]
;Win95 entry point
CustomDestination=FileDest
CopyFiles=contents,INFCopy,SysCopy
AddReg=GenUninstallKey,Win95UninstallKey,impsc2RegKey
RegisterOCXs=RegisterOCXSection
[DefaultInstall.NT]
;NT 4 entry point
CustomDestination=FileDest
CopyFiles=contents,INFCopy,SysCopy
AddReg=GenUninstallKey,NTUninstallKey,impsc2RegKey
RegisterOCXs=RegisterOCXSection
[contents]
impsc2.exe
[SysCopy]
;system files to copy over
comctl32.ocx
MSVBVM50.dll
Ctl3d32.dll
ComCat.dll
AsycFilt.dll
OlePro32.dll
OleAut32.dll,,,8
StdOLE2.tlb,,,8
[INFCopy]
;copy INF to Windows\INF for uninstall
impsc2.inf
[FileDest]
;7 means return path in Reg key && fail with message if Reg key doesn't exist
49001=TemplPathKey,7
49002=BogusRegKey,5
[TemplPathKey]
"HKLM","SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE","Path","",""
"","","","%FailMsg%",""
[BogusRegKey]
"HKLM","SOFTWARE\BogusApp\BogusKey","","","%49001%"
[impsc2RegKey]
; register impsc2 as handler for SC2 files
HKCR,"SC2",,,"%SC2Type%"
;HKCR,"SC2\Shell",,,"&Import"
HKCR,"SC2\Shell\Open\Command",,,"%49002%\impsc2.exe "%1""
;HKCR,"SC2\Shell\Import\Command",,,"%49002%\impsc2.exe "%1""
;HKCR,"SC2\Shell\Open\Command",,,"notepad.exe "%1""
HKCR,".sc2",,,"SC2"
[RegisterOCXSection]
%11%\comctl32.ocx
[GenUninstallKey]
;Reg key that puts entry in Add/Remove files CPL applet dialog
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\impsc2,"DisplayName",,"%PackageDesc%"
[Win95UninstallKey]
;call ADVPACK uninstaller on Win95
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\impsc2,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\impsc2.inf, Uninstall"
[NTUninstallKey]
;call ADVPACK uninstaller on NT 4
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\impsc2,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\impsc2.inf, Uninstall.NT"
; begin uninstall logic
[Uninstall]
BeginPrompt=BeginPromptSection
EndPrompt=EndPromptSection
CustomDestination=FileDest
Delfiles=contents,PNFCleanUp
Deldirs=RemoveFolder
;clean up uninstall keys
DelReg=DelUninstallKey,impsc2RegKey,DelRegKey
UnRegisterOCXs=RegisterOCXSection
Cleanup=1
[Uninstall.NT]
BeginPrompt=BeginPromptSection
EndPrompt=EndPromptSection
CustomDestination=FileDest
Delfiles=contents,PNFCleanUp
Deldirs=RemoveFolder
DelReg=DelUninstallKey,impsc2RegKey,DelRegKey
UnRegisterOCXs=RegisterOCXSection
Cleanup=1
[PNFCleanUp]
"impsc2.pnf"
[BeginPromptSection]
Prompt="%BeginPrompt%"
ButtonType=YESNO
Title=%PackageName%
[EndPromptSection]
Prompt="%EndPrompt%"
[RemoveFolder]
%49002%
[DelUninstallKey]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\impsc2
[DelRegKey]
; "HKCR","MIME\Database\Content Type\application/vcard"
[SourceDisksNames]
1 = "impsc2",,0
[Strings]
SC2type="SC2 Data"
;vcardReyKey="MIME\Database\Content Type\application/vcard"
PackageName="SC2 Importer for Microsoft Outlook"
PackageDesc="SC2 Importer for Microsoft Outlook (Remove only)"
FailMsg="You must have Microsoft Outlook installed to install SC2 Importer."
;prompts
BeginPrompt="Are you sure that you want to remove SC2 Importer for Microsoft Outlook?"
EndPrompt="SC2 Importer for Microsoft Outlook was successfully removed."