;-------------------------------------------------------
; FRITZ!Box
; Copyright 2005 AVM GmbH
;
;-------------------------------------------------------
[Version]
Signature= "$CHICAGO$"
Provider = "AVM GmbH"
Compatible=1

[Strings]
;
;40004 sollte 'c:\programme' sein
;40005 sollte '..Startmenue\programme' sein (für Current User)
;40006 sollte '..Startmenue\programme' sein (für All Users) - nicht in Win98!
;

DiskName      = "FRITZ!Box"
Uninstallname = "AVM FRITZ!Box Druckeranschluss"
UninstallPublisher = "AVM Berlin"
UninstallPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AVMFBoxPrinter"
PRODUCT_DESC  = "AVM FRITZ!Box Druckeranschluss"
ProgDir       = "FRITZ!BoxPrint"


[DefaultInstall.NT]
AddReg=Setup.Add.Reg
CopyFiles=Setup.Files,CopyDll,CopyPrinterDll.NT
PostStart="initprinter.exe avm: avmprmon.dll fritz.box"

[DefaultInstall]
AddReg=Setup.Add.Reg
CopyFiles=Setup.Files,CopyDll,CopyPrinterDll
PostStart="initprinter.exe avm: avmprmon.dll fritz.box"

[PreUninstall]
DelReg=PreUninstall.Del.Reg

[DefaultUninstall]
DelFiles=Setup.Files,Inst.DelFiles,DelPrinterDll
DelDir  = Setup.Files
DelReg=Setup.Del.Reg
PreStart="initprinter.exe avm: -d"

[DefaultUninstall.NT]
DelFiles=Setup.Files,Inst.DelFiles,DelPrinterDll
DelDir  = Setup.Files
DelReg=Setup.Del.Reg
UpdateInis=del.links.NT,del.links2
PreStart="initprinter.exe avm: -d"

[Setup.Add.Reg]
HKLM,%UninstallPath%,DisplayName,,%UninstallName%
HKLM,%UninstallPath%,DisplayIcon,,%40004%\%ProgDir%\drucker.ico
HKLM,%UninstallPath%,Publisher,,%UninstallPublisher%
HKLM,%UninstallPath%,UninstallString,,"%40004%\%ProgDir%\install.exe -d"

[PreUninstall.Del.Reg]
HKLM,%UninstallPath%

[Setup.Del.Reg]
HKLM,"Software\CAPI20","InstallDir"
HKLM,%UninstallPath%


[Setup.Files]
install.inf
install.exe
avmadd32.dll
initprinter.exe 
drucker.ico

[CopyDll]
avmadd32.dll,,,0x00000020

[CopyPrinterDll]
avmprmon.dll,avmprmon98.dll

[CopyPrinterDll.NT]
avmprmon.dll,avmprmon2k.dll

[DelPrinterDll]
avmprmon.dll

[Inst.DelFiles]
install.dex

[SourceDisksNames]
1 = %DiskName%,"","",

[SourceDisksFiles]
install.inf  = 1
install.exe    = 1
avmadd32.dll = 1
avmprmon98.dll = 1
avmprmon2k.dll = 1
initprinter.exe = 1
drucker.ico = 1

[DestinationDirs]
;DefaultDestDir = 16422
Setup.Files    = 40004,%ProgDir%
CopyDLL         = 11
Inst.DelFiles     = 10
CopyPrinterDll  = 11
CopyPrinterDll.NT = 11
DelPrinterDll   = 11