
[Version]
Signature = "$CHICAGO$"
  
[DefaultInstall] 
CopyFiles  = CopyFiles.DLL ,CopyFiles.Prog,CopyFiles.Doc,CopyFiles.example,CopyFiles.Dbf,CopyFiles.Sp,CopyFiles.lmk
AddReg     = AddReg.WIN 
MediaType  = Software 
UpdateInis=Product.links
  
[DefaultInstall.NT] 
CopyFiles  = CopyFiles.DLL ,CopyFiles.Prog,CopyFiles.Doc,CopyFiles.example,CopyFiles.Dbf,CopyFiles.Sp,CopyFiles.lmk
AddReg     = AddReg.WIN 
MediaType  = Software 

[DefaultUnInstall]
DelFiles  = CopyFiles.DLL ,CopyFiles.Prog,CopyFiles.Doc,CopyFiles.example,CopyFiles.Dbf,CopyFiles.Sp,CopyFiles.lmk
DelReg    = AddReg.WIN
UpdateInis=del.links
  
[DestinationDirs] 
CopyFiles.DLL        = 11  
CopyFiles.Prog       = 24,"%PROG_FILE%"
CopyFiles.Doc        = 24,"%PROG_FILE%\doc"
CopyFiles.example    = 24,"%PROG_FILE%\example"
CopyFiles.Dbf        = 24,"%PROG_FILE%\sab\dbf"
CopyFiles.Sp         = 24,"%PROG_FILE%\sab\sp"
CopyFiles.lmk        = 24,"%PROG_FILE%\sab\lmk"
  
[AddReg.WIN] 
HKCR,".sab",,,"Word.RTF.8"
HKCR,".sab","Content Type",,"application/msword"
HKCR,".sab\ShellNew","Data",,"{\\rtf1}"
HKCR,"GenRep\DefaultIcon",,,"%11%\genrep.dll,0"
HKLM,"Software\GenRep\IsPath",,,"1"
HKLM,"Software\GenRep\FileName",,,"%24%\%PROG_FILE%\sab\dbf\plat.sab"
HKLM,"Software\GenRep\PathName",,,"%24%\%PROG_FILE%\sab\dbf"
HKLM,SOFTWARE\GenRep,"Version",0,"1.01"
HKLM,SOFTWARE\GenRep,"Number",1,0x1

HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Genrep,"DisplayName",0,"Gen Report DLL library"
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Genrep,"UninstallString",0,"Rundll32.exe setupapi.dll,InstallHinfSection DefaultUninstall 132 "%24%\%PROG_FILE%\genrep.inf"


  
[SourceDisksNames] 
1 = "Gen Report DLL library installer",, 1
  
[SourceDisksFiles] 
genrep.dll=1
dorep.exe=1
whatnew.rtf=1
License.rtf=1
genrep.INF=1
msword.reg=1
openoffice.reg=1
readme.txt=1
Format.rtf=1,doc
genrep.cnt=1,doc
GENREP.HLP=1,doc
readme.rtf=1,doc
format.dbf=1,sab
formats.sab=1,sab
anl_obor.sab=1,sab\dbf
balans.dbf=1,sab\dbf
balans.FPT=1,sab\dbf
balans.sab=1,sab\dbf
entry.dbf=1,sab\dbf
NAKLAD.dbf=1,sab\dbf
order.dbf=1,sab\dbf
order.sab=1,sab\dbf
OST_QQ.DBF=1,sab\dbf
plat.dbf=1,sab\dbf
plat.sab=1,sab\dbf
sch_f.sab=1,sab\dbf
sch_f2.sab=1,sab\dbf
SFACTURA.dbf=1,sab\dbf
solution.dbf=1,sab\dbf
solution.fpt=1,sab\dbf
solution.sab=1,sab\dbf
sprav.dbf=1,sab\dbf
sprav.sab=1,sab\dbf
table.sab=1,sab\dbf
table1.dbf=1,sab\dbf
zapros.sab=1,sab\dbf
ZAPROS.U=1,sab\dbf
inv.sab=1,sab\dbf
Invoice.DBF=1,sab\dbf
lmk.sab=1,sab\lmk
total.lmk=1,sab\lmk
data.lmk=1,sab\lmk
PERSONAL.SP=1,sab\sp
person.sab=1,sab\sp
person2.sab=1,sab\sp
person3.sab=1,sab\sp
dorep.prg=1,example
order.sab=1,example
sprav.dbf=1,example
sprav.sab=1,example
entry.dbf=1,example
order.dbf=1,example
  

[CopyFiles.Dbf]
anl_obor.sab
balans.dbf
balans.FPT
balans.sab
entry.dbf
NAKLAD.dbf
order.dbf
order.sab
OST_QQ.DBF
plat.dbf
plat.sab
sch_f.sab
sch_f2.sab
SFACTURA.dbf
solution.dbf
solution.fpt
solution.sab
sprav.dbf
sprav.sab
table.sab
table1.dbf
zapros.sab
ZAPROS.U
inv.sab
Invoice.DBF
format.dbf
formats.sab

[CopyFiles.Doc]
Format.rtf
genrep.cnt
GENREP.HLP
readme.rtf


[CopyFiles.example]
dorep.prg
order.sab
sprav.dbf
sprav.sab
entry.dbf
order.dbf


[CopyFiles.Prog]
genrep.dll,,,33
dorep.exe,,,33
whatnew.rtf,,,33
License.rtf,,,33
genrep.INF,,,33
msword.reg,,,33
openoffice.reg,,,33
readme.txt,,,33


[CopyFiles.Sp]
PERSONAL.SP
person.sab
person2.sab
person3.sab

[CopyFiles.lmk]
lmk.sab
total.lmk
data.lmk

[CopyFiles.DLL] 
genrep.dll,,,33 

[PWLEDIT.Inis]
setup.ini, progman.groups,, "group11=%SYSTOOLS_DESC%"         ;creates folder
setup.ini, group11,, """%Pwledit_Desc%"", PWLEDIT.EXE,,, pwledit"       ;creates link


[Product.links]
;create folders
setup.ini, progman.groups,,"ProductGroup=Gen Report DLL library"     
; create links
; second param must match above and the linked to file must really exist
setup.ini, ProductGroup,,"%PRODUCT_DESC%,%24%\%PROG_FILE%\dorep.exe,,,dorep"
setup.ini, ProductGroup,,"%HELP_FILE%,%24%\%PROG_FILE%\doc\genrep.hlp,,, help"
setup.ini, ProductGroup,,"%README_DESC%,%24%\%PROG_FILE%\doc\readme.rtf,,, readme"
setup.ini, ProductGroup,,"%NEWS%,%24%\%PROG_FILE%\whatnew.rtf,,, whatnew"
setup.ini, ProductGroup,,"%EXAM%,%24%\%PROG_FILE%\example\dorep.prg,%24%\%PROG_FILE%\example,%24%\%PROG_FILE%\example, prg"
;Add desktop icons here

[del.links]
;remove folders
setup.ini, progman.groups,,"ProductGroup=Gen Report DLL library"     
; remove links
; second param must match above and last param is EXACT description name
setup.ini, ProductGroup,,"%PRODUCT_DESC%" 
setup.ini, ProductGroup,,"%README_DESC%" 
setup.ini, ProductGroup,,"%HELP_FILE%
setup.ini, ProductGroup,,"%NEWS%
setup.ini, ProductGroup,,"%EXAM%
;remove desktop icons here


[Strings] 
PROG_FILE       = "genrep"
HELP_FILE       = "Справка"
PRODUCT_DESC    = "Генератор DoRep"
README_DESC     = "Описание"
NEWS            = "Что нового"
EXAM            = "Пример использования в Visual FoxPro"