;-------------------------------------------------------
; 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 Dokumentation"
UninstallPublisher = "AVM Berlin"
UninstallPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AVMFBox"
PRODUCT_DESC  = "FRITZ!Box Handbuch"
README_DESC   = "FRITZ!Box Readme"
SWITCH_DESC   = "FRITZ!Box Service-Portal"
USERSURFACE_DESC = "FRITZ!Box Benutzeroberfläche"
ProgGroup     = "FRITZ!Box"
ProgDir       = "FRITZ!Box"


[DefaultInstall.NT]
AddReg=Setup.Add.Reg
CopyFiles=Setup.Files,CopyDll,CopyPrinterDll.NT
ProfileItems=StartMenu.Handbuch,StartMenu.Readme,StartMenu.service,StartMenu.beo

[DefaultInstall]
AddReg=Setup.Add.Reg
CopyFiles=Setup.Files,CopyDll
UpdateInis=Product.links,Product.links2

[PreUninstall]
DelReg=PreUninstall.Del.Reg

[DefaultUninstall]
DelFiles=Setup.Files,Inst.DelFiles
DelDir  = Setup.Files
DelReg=Setup.Del.Reg
UpdateInis=del.links,del.links2

[DefaultUninstall.NT]
DelFiles=Setup.Files,Inst.DelFiles
DelDir  = Setup.Files
DelReg=Setup.Del.Reg
;ProfileItems=DelStartMenu.Group
ProfileItems=StartMenu.Del.Handbuch,StartMenu.Del.Readme,StartMenu.Del.service,StartMenu.Del.beo
;UpdateInis=del.links.NT,del.links2


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

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

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

[Product.links.NT]
setup.ini, progman.groups,,"ProductGroup=%40006%\%ProgGroup%"
setup.ini, ProductGroup,,"""%PRODUCT_DESC%"",""""""%40004%\%ProgDir%\handbuch.pdf"""""",,,,""%40004%\%ProgDir%"""
setup.ini, ProductGroup,,"""%README_DESC%"",""""""%40004%\%ProgDir%\readme.htm"""""",,,,""%40004%\%ProgDir%"""
setup.ini, ProductGroup,,"""%SWITCH_DESC%"",""""""%40004%\%ProgDir%\fbox.url"""""",,,,""%40004%\%ProgDir%"""
setup.ini, ProductGroup,,"""%USERSURFACE_DESC%"",""""""%40004%\%ProgDir%\fbox_beo.url"""""",,,,""%40004%\%ProgDir%"""

[Product.links]
setup.ini, progman.groups,,"ProductGroup=%40005%\%ProgGroup%"
setup.ini, ProductGroup,,"""%PRODUCT_DESC%"",""""""%40004%\%ProgDir%\handbuch.pdf"""""",,,,""%40004%\%ProgDir%"""
setup.ini, ProductGroup,,"""%README_DESC%"",""""""%40004%\%ProgDir%\readme.htm"""""",,,,""%40004%\%ProgDir%"""
setup.ini, ProductGroup,,"""%SWITCH_DESC%"",""""""%40004%\%ProgDir%\fbox.url"""""",,,,""%40004%\%ProgDir%"""
setup.ini, ProductGroup,,"""%USERSURFACE_DESC%"",""""""%40004%\%ProgDir%\fbox_beo.url"""""",,,,""%40004%\%ProgDir%"""

[del.links]
setup.ini, progman.groups,,"ProductGroup=%40005%\%ProgGroup%"
setup.ini, ProductGroup,,"%PRODUCT_DESC%"
setup.ini, ProductGroup,,"%README_DESC%"
setup.ini, ProductGroup,,"%SWITCH_DESC%"
setup.ini, ProductGroup,,"%USERSURFACE_DESC%"

[del.links.NT]
setup.ini, progman.groups,,"ProductGroup=%40006%\%ProgGroup%"
setup.ini, ProductGroup,,"%PRODUCT_DESC%"
setup.ini, ProductGroup,,"%README_DESC%"
setup.ini, ProductGroup,,"%SWITCH_DESC%"
setup.ini, ProductGroup,,"%USERSURFACE_DESC%"

;

[StartMenu.Handbuch]
Name=%PRODUCT_DESC%
CmdLine=40004,%ProgDir%,handbuch.pdf
SubDir=%ProgGroup%

[StartMenu.Readme]
Name=%README_DESC%
CmdLine=40004,%ProgDir%,readme.htm
SubDir=%ProgGroup%

[StartMenu.service]
Name=%SWITCH_DESC%
CmdLine=40004,%ProgDir%,fbox.url
SubDir=%ProgGroup%

[StartMenu.beo]
Name=%USERSURFACE_DESC%
CmdLine=40004,%ProgDir%,fbox_beo.url
SubDir=%ProgGroup%

[StartMenu.Del.Handbuch]
Name=%PRODUCT_DESC%,0x00000002
;CmdLine=%40004%\%ProgDir%\handbuch.pdf
SubDir=%ProgGroup%

[StartMenu.Del.Readme]
Name=%README_DESC%,0x00000002
;CmdLine=%40004%\%ProgDir%\readme.htm
SubDir=%ProgGroup%

[StartMenu.Del.service]
Name=%SWITCH_DESC%,0x00000002
;CmdLine=%40004%\%ProgDir%\fbox.url
SubDir=%ProgGroup%

; Lösche die ganze Programmgruppe 
[DelStartMenu.Group]
Name=%ProgGroup%,0x00000006
;CmdLine=,,,

[StartMenu.del.beo]
Name=%USERSURFACE_DESC%,0x00000002
;CmdLine=%40004%\%ProgDir%\fbox_beo.url
SubDir=%ProgGroup%

[Setup.Files]
handbuch.pdf
readme.htm
fbox.url
fbox_beo.url
install.inf
install.exe
avmadd32.dll

[CopyDll]
avmadd32.dll,,,0x00000020

[Inst.DelFiles]
install.dex

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

[SourceDisksFiles]
install.inf  = 1
readme.htm   = 1
handbuch.pdf = 1
fbox.url     = 1
fbox_beo.url = 1
install.exe  = 1
avmadd32.dll = 1

[DestinationDirs]
Setup.Files    = 40004,%ProgDir%
CopyDLL        = 11
Inst.DelFiles  = 10
