; Author: GeorgeP.
; modified by t-ashm

[version]
signature="$CHICAGO$"
SetupClass=BASE

[DefaultInstall]
CopyFiles=ThisDll.sys.install
AddReg=ThisDll.Add.Reg,ThisDll.Uninst.Reg

[TargetInstall]
CopyFiles=ThisDll.sys.install
AddReg=ThisDll.Add.Reg,ThisDll.Uninst.Reg

[DefaultUninstall]
DelFiles=ThisDll.sys.install
DelReg=ThisDll.Add.Reg,ThisDll.Uninst.Reg

[ThisDll.Add.Reg]
HKCR,CLSID\{90A756E0-AFCF-11CE-927B-0800095AE340},,,"%TargetDESC%"

HKCR,CLSID\{90A756E0-AFCF-11CE-927B-0800095AE340}\InProcServer32,,,"%11%\%SubDir%\%ThisDll%"
HKCR,CLSID\{90A756E0-AFCF-11CE-927B-0800095AE340}\InProcServer32,ThreadingModel,,"Apartment"

HKCR,lnkfile\ShellEx\ContextMenuHandlers\TargetContext,,,"{90A756E0-AFCF-11CE-927B-0800095AE340}"
HKCR,piffile\ShellEx\ContextMenuHandlers\TargetContext,,,"{90A756E0-AFCF-11CE-927B-0800095AE340}"

[ThisDll.Uninst.Reg]
HKLM,SoftWare\Microsoft\Windows\CurrentVersion\Uninstall\MSTargetContextSubmenu,,,
HKLM,SoftWare\Microsoft\Windows\CurrentVersion\Uninstall\MSTargetContextSubmenu,"DisplayName",,"Target Context Submenu"
HKLM,SoftWare\Microsoft\Windows\CurrentVersion\Uninstall\MSTargetContextSubmenu,"UninstallString",,"rundll32.exe %11%\%SubDir%\%ThisDll%,Uninstall %11%\%SubDir%\target.inf"

[ThisDll.sys.install]
Target.dll
Target.inf

[DestinationDirs]
ThisDll.sys.install=11,%SubDir% ; to System\%SubDir%

[SourceDisksNames]
55="Target Context 1.0.","",1

[SourceDisksFiles]
%ThisDll%=55

[Strings]
Target_DESC = "Shorcut Target Context Menu"
SubDir = "ShellExt"
ThisDll = "target.dll"
