; HotKey.INF  -- Windows Still Image Setup File for the DDK
; Copyright (c) 1997 Microsoft Corporation

; Leave thse lines as they are
[Version]
Signature="$CHICAGO$"
;;;Class=Image
;;;ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Msft%
LayoutFile=layout.inf, layout1.inf

[ControlFlags]
; remove comment from this line for PnP devices
; ExcludeFromSelect.WIN=*
ExcludeFromSelect=*

[SourceDisksNames]
2=%ProductDesc%,,,

[SourceDisksFiles]
Dummy.txt=2
RunDRV.DLL=2
RunDRV16.DLL=2
RunDRV95.DLL=2
RunDRV98.DLL=2
RunDRVNT.DLL=2
RunDRV2K.DLL=2
LFBMP90N.DLL=2
LFCMP90n.DLL=2
LTFIL90N.DLL=2
LTKRN90N.DLL=2

;Hotkey Button File
CloseHK.EXE=2
HKSrcCHS.ini=2
HK_CHS.inf=2
HK_CHS.ini=2
HK_CHS.reg=2
HK_CHS.Exe=2
CopyDi.bmp=2
CopyFo.bmp=2
CopySe.bmp=2
CopyUp.bmp=2
EmailDi.bmp=2
EmailFo.bmp=2
EmailSe.bmp=2
EmailUp.bmp=2
ScanDi.bmp=2
ScanFo.bmp=2
ScanSe.bmp=2
ScanUp.bmp=2

;Detector Help & Manual 
ROBOEX32.DLL=2
CHS.pdf=2
HK_CHS.CNT=2
HK_CHS.Hlp=2

[DestinationDirs]
DefaultDestDir=11               ; LDID_SYS that is, \windows\system
TwainTrunk.CopyFiles=10
CopyFiles.HotKey=10, Twain_32\%TwainDir%
CopyFiles.Inf=10, Twain_32\%TwainDir%
CopyFiles.CloseHK=10, Twain_32\%TwainDir%
CopyFiles.HotKey.REG= 10, Twain_32\%TwainDir%
CopyFiles.DummyFile= 10, Twain_32\%TwainDir%\Temp
CopyFiles.HKBMPFile= 10, Twain_32\%TwainDir%\Bitmap
CopyFiles.ProfilesFile=10,Twain_32\%TwainDir%\Profiles

[Manufacturer]
%Mfg%=Models

[DefaultInstall]
CopyFiles=CopyFiles.HotKey,CopyFiles.Inf,CopyFiles.CloseHK,CopyFiles.HotKey.REG,CopyFiles.DummyFile,CopyFiles.HKBMPFile,CopyFiles.ProfilesFile
Uninstall=DefaultUnInstall
UpdateInis=Group.Add.Ini
RunPreSetupCommands = PreSetupCommandSection
RunPostSetupCommands = PostSetupCommandsSection
AddReg=HotKey.Add.Reg

[DefaultInstall.NTX86]
CopyFiles=CopyFiles.HotKey,CopyFiles.Inf,CopyFiles.CloseHK,CopyFiles.HotKey.REG,CopyFiles.DummyFile,CopyFiles.HKBMPFile,CopyFiles.ProfilesFile
Uninstall=DefaultUnInstall.NTX86
UpdateInis=Group.Add.Ini
RunPreSetupCommands = PreSetupCommandSection
RunPostSetupCommands = PostSetupCommandsSection_NTX86
AddReg=HotKey.Add.Reg

[PreSetupCommandSection]
CloseHK.EXE

[PostSetupCommandsSection]
RegEdit.exe /s %10%\Twain_32\%TwainDir%\HotKey.Reg


[PostSetupCommandsSection_NTX86]
RegEdit.exe /s %10%\Twain_32\%TwainDir%\HotKey.Reg
Attrib.exe -R %10%\Twain_32\%TwainDir%\*.* /S



[CopyFiles.HKBMPFile]
Dummy.txt
CopyDi.bmp
CopyFo.bmp
CopySe.bmp
CopyUp.bmp
EmailDi.bmp
EmailFo.bmp
EmailSe.bmp
EmailUp.bmp
ScanDi.bmp
ScanFo.bmp
ScanSe.bmp
ScanUp.bmp

[CopyFiles.HotKey]
LFBMP90N.DLL
LFCMP90n.DLL
LTFIL90N.DLL
LTKRN90N.DLL

;Hotkey Button File
HotKey.Exe,HK_CHS.Exe
source.ini,HKSrcCHS.ini
HotKey.ini,HK_CHS.ini

;Detector Help & Manual 
HotKey.CNT,HK_CHS.CNT
HotKey.Hlp,HK_CHS.Hlp
ROBOEX32.DLL
Manual.PDF,CHS.PDF
nta.dll


[CopyFiles.ProfilesFile]
Dummy.txt
P90_48r.lut
Pmx9000n.lut
Pmx9000r.lut
Pmx9000t.lut


[CopyFiles.CloseHK]
CloseHK.EXE

[CopyFiles.Inf]
HotKey.inf,HK_CHS.inf

[CopyFiles.HotKey.REG]
HotKey.Reg,HK_CHS.reg
RunDRV.DLL
RunDRV16.DLL
RunDRV95.DLL
RunDRV98.DLL
RunDRVNT.DLL
RunDRV2K.DLL

[CopyFiles.DummyFile]
Dummy.txt

[DefaultUnInstall.NTX86]
DelFiles=CopyFiles.HotKey,CopyFiles.CloseHK,CopyFiles.HotKey.REG,CopyFiles.Inf,CopyFiles.DummyFile,CopyFiles.HKBMPFile,CopyFiles.ProfilesFile
UpdateInis=Group.Del.Ini
DelReg=HotKey.Add.Reg
RunPreSetupCommands = Uninstall.PreSetupCommand

[DefaultUnInstall]
DelFiles=CopyFiles.HotKey,CopyFiles.CloseHK,CopyFiles.HotKey.REG,CopyFiles.Inf,CopyFiles.DummyFile,CopyFiles.HKBMPFile,CopyFiles.ProfilesFile
UpdateInis=Group.Del.Ini
DelReg=HotKey.Add.Reg
RunPreSetupCommands = Uninstall.PreSetupCommand

[Uninstall.PreSetupCommand]
%10%\Twain_32\%TwainDir%\CloseHK.EXE

[Group.Add.Ini]
setup.ini, progman.groups,, "group1=""%HotKeyGroup%"""
setup.ini, group1,, """%Utility%"",""""""%10%\Twain_32\%TwainDir%\HotKey.exe"""""",,,,""%10%\Twain_32\%TwainDir%"",""HotKey.exe"""
setup.ini, group1,, """%Manual%"",""""""%10%\twain_32\%TwainDir%\Manual.pdf"""""",,,,""%10%\twain_32\%TwainDir%"",""Manual.pdf"""

[Group.Del.Ini]
setup.ini, progman.groups,, "group1=""%HotKeyGroup%"""
setup.ini, group1,, """%Utility%"""
setup.ini, group1,, """%Manual%"""

[HotKey.Add.Reg]
HKLM,"Software\Microsoft\Windows\CurrentVersion\Run","HotKey",,%10%\Twain_32\%TwainDir%\HotKey.exe
HKCU,"Software\OneTouchHotKey"
HKCU,"Software\OneTouchHotKey","InstallRoot",,"%10%\Twain_32\%TwainDir%"
HKCU,"Software\OneTouchHotKey","TempFolder",,"%10%\Twain_32\%TwainDir%\Temp"


[Strings]
HotKeyGroup= "Uniscan e46"
Msft=Scanner
Mfg=Scanner

Utility="Uniscan e46 Utility"
TwainUIName="Uniscan e46" 
Product="Uniscan e46"
ProductDesc="Uniscan e46"
TwainDir="Th7100" 
Manual= "Manual"