[version]
signature="$CHICAGO$"

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;  Install sections, these are the options
;  for building the installation file lists
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[DefaultInstall]

[ProductInstall]
CopyFiles=Product.copy.files
CopyFiles=Product.copy.activex.files
AddReg=Product.Add.Reg
UpdateInis=Product.links
;,del.links.old

;;;;;;;;;;
; Uninstall

[DefaultUninstall]
; be sure to remove everything
DelFiles=Product.del.dbv.files,
DelFiles=Product.del.files,
DelFiles=Product.del.activex.files,
DelReg=Product.Del.Reg
UpdateInis=del.links

[MyProgramUninstall]
; be sure to remove everything
DelFiles=Product.del.dbv.files,
DelFiles=Product.del.files,
DelFiles=Product.del.activex.files,
DelReg=Product.Del.Reg
UpdateInis=del.links

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;  Registry sections, used by different install
;  sections above
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[Product.Add.Reg]
;
; Product Registry entries here
; For compatibility you must specify 0,1,2,3 for the fourth
; parameter if you want to specify a value
;
HKLM,SOFTWARE\PotSoft\DiVent,"Version",0,"%VERSION%"
;
; for add/remove programs applet
;
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DiVent,"DisplayName",0,"DiVent %VERSION%"
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DiVent,"UninstallString",0,"%65600%"\uninstall.exe "%65600%"\divent.inf"

;;;;;;;;;
;
; registry delete works by pruning the tree,
; so if you have interdependent values, put thems in subkeys and
; not in values of the main key since when you prune all the values are lost
;

[Product.Del.Reg]
;
;Registry entries here
;

HKLM,SOFTWARE\PotSoft\DiVent,"Version"
HKLM,SOFTWARE\PotSoft\DiVent\UserInfo,"DestinationPath"
HKCU,SOFTWARE\PotSoft\DiVent\UserInfo
HKCU,SOFTWARE\PotSoft\DiVent
HKCU,SOFTWARE\PotSoft

;
; for add/remove programs applet
;

HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DiVent,"DisplayName",,
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DiVent,"UninstallString",,
HKCU,SoftWare\Microsoft\Windows\CurrentVersion\Uninstall\DiVent

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Disk lay out information, used by the CopyFiles lists
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; This is the source disk identifiers the number at the
; beginning maps to the SourceDisksFiles first parameter

[SourceDisksNames]
1="Instalační disk programu DiVent, %VERSION%","",1

;;;;;;;;;;;;;;;;;;
;
; SourceDisksFiles -
; this must have ALL file names in any copyfiles section
; so that the default copyfile error callback dialog (browse,skip)
; can use the SourceDisksNames strings above to help find the file
; -- this infomation can also be put in a layout.inf
;
; filename_on_source = diskid,subdir,size,checksum,spare,spare
; 

[SourceDisksFiles]
licence.txt = 1,\DiVent,,,,
divent.exe = 1,\DiVent,,,,
divent.inf = 1,\DiVent,,,,
divent.ini = 1,\DiVent,,,,
uninstall.exe = 1,\DiVent,,,,
DivB.dvd = 1,\DiVent,,,,
DivBW.dvd = 1,\DiVent,,,,
DiVLB.dvd = 1,\DiVent,,,,
DiVentD0.dll = 1,\DiVent,,,,
DiVentD1.dll = 1,\DiVent,,,,
DiVentD2.dll = 1,\DiVent,,,,
DiVentD3.dll = 1,\DiVent,,,,
media.dvd = 1,\DiVent,,,,
mediau.dvd = 1,\DiVent,,,,
potrubi.dvd = 1,\DiVent,,,,
units.dvd = 1,\DiVent,,,,
jednotky.dvd = 1,\DiVent,,,,
jednotky2.dvd = 1,\DiVent,,,,
specpoh.dvd = 1,\DiVent,,,,
specpoh06b.dvd = 1,\DiVent,,,,
specpoh06a.dvd = 1,\DiVent,,,,
specpoh07.dvd = 1,\DiVent,,,,
specpoh09.dvd = 1,\DiVent,,,,
specpoh10.dvd = 1,\DiVent,,,,
specpodm.dvd = 1,\DiVent,,,,
specprip.dvd = 1,\DiVent,,,,
specprisl.dvd = 1,\DiVent,,,,
update.exe = 1,\DiVent,,,,
whip4.exe = 1,\DiVent,,,,
msflxgrd.ocx=1,\ActiveX,,,,
mfc42.dll=1,\ActiveX,,,,
mfc42u.dll=1,\ActiveX,,,,
oleaut32.dll=1,\ActiveX,,,,
olepro32.dll=1,\ActiveX,,,,
msflxgrd.dep=1,\ActiveX,,,,

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Targetdirectories predefined for [DestinationDirs] section
;   parameter number one  
;     00 = null, use only the second parameter for a path
;     11 = windows system directory
;     ...
;

[DestinationDirs]
;
; a default if a particular copyfiles section
;
; DefaultDestDir=LDID[,subdir]  ; not used in this sample

Product.del.dbv.files=01,\dbv
Product.del.files=01      ; 01 is the source directory
Product.del.activex.files=11,\polna

;
; Run time defined strings, these are set with 
; SetupSetDirectoryId once this inf is openned
;

Product.copy.files=65600   ; 65600 is a random choice for a dirid
Product.copy.activex.files=11,\polna

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; These are the CopyFiles lists, here is where the files
; for each component are defined
; Note the last param (parm 4) is the CopyFlag for that
; File, for example 8 means copy on  restart--see the doc for more
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Product.copy.files]
licence.txt
divent.exe,,,
divent.inf,,,
divent.ini
uninstall.exe
DivB.dvd
DivBW.dvd
DiVLB.dvd
DiVentD0.dll
DiVentD1.dll
DiVentD2.dll
DiVentD3.dll
media.dvd
mediau.dvd
potrubi.dvd
units.dvd
jednotky.dvd
jednotky2.dvd
specpoh.dvd
specpoh06b.dvd
specpoh06a.dvd
specpoh07.dvd
specpoh09.dvd
specpoh10.dvd
specpodm.dvd
specprip.dvd
specprisl.dvd
update.exe,,,
whip4.exe,,,

[Product.copy.activex.files]
msflxgrd.ocx
mfc42.dll
mfc42u.dll
oleaut32.dll
olepro32.dll
msflxgrd.dep

[Product.del.files]
licence.txt
divent.exe,,,
divent.inf,,,
divent.ini
uninstall.exe
DivB.dvd
DivBW.dvd
DiVLB.dvd
DiVentD0.dll
DiVentD1.dll
DiVentD2.dll
DiVentD3.dll
media.dvd
mediau.dvd
potrubi.dvd
units.dvd
jednotky.dvd
jednotky2.dvd
specpoh.dvd
specpoh06b.dvd
specpoh06a.dvd
specpoh07.dvd
specpoh09.dvd
specpoh10.dvd
specpodm.dvd
specprip.dvd
specprisl.dvd
update.exe,,,
whip4.exe,,,

[Product.del.dbv.files]

[Product.del.activex.files]
msflxgrd.ocx
mfc42.dll
mfc42u.dll
oleaut32.dll
olepro32.dll
msflxgrd.dep


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; INI sections, used to create and delete icons 
;  other uses are possible
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Product.links]
;create folders
setup.ini, progman.groups,,"ProductGroup=%CORP%"     
; create links
; second param must match above and the linked to file must really exist
setup.ini, ProductGroup,,"""%PRODUCT_DESC% %VERSION%"",""%65600%\divent.exe""",,,"
setup.ini, ProductGroup,,"""Odinstalace %PRODUCT_DESC% %VERSION%"",""%65600%\uninstall.exe ""%65600%\divent.inf""",,,"
;Add desktop icons here

[del.links]
;remove folders
setup.ini, progman.groups,,"ProductGroup=%CORP%"     
; remove links
; second param must match above and last param is EXACT description name
setup.ini, ProductGroup,,"%PRODUCT_DESC% %VERSION%" 
setup.ini, ProductGroup,,"Odinstalace %PRODUCT_DESC% %VERSION%"
;remove desktop icons here

[del.links.old]
setup.ini, progman.groups,,"MyProductFolderOld=%DESC_OLD%"

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Strings replace variable in percents above
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Strings]
PRODUCT_DESC    = "DiVent"
VERSION		= "2.7"
CORP		= "Polna corp. s r.o."
DT_MESSAGES     = ""
DT_DESKTOP      = "Desktop"
DESC_OLD   = "Old Product"    ; removes old links

