[Setup]
HasSerial=False
SerialType=0
LocalGroup=True
DefaultGrp="SATO Label Gallery Free"
UninstIcon="Setup"
InstVer=3.6
AppVer=1.6.5
Setup=SetupN
RunAtEnd=NiceAppFiles,lgfree.exe
WEB=http://www.satoworldwide.com
MSG_OLEAUT_UPDATE="This operating system does not meet the minimum requirements regarding Automation."
MSG_HTMLHELP_UPDATE="This operating system does not meet the minimum requirements regarding HTML Help."
MSG_MDAC_UPDATE="This operating system does not meet the minimum requirements regarding MDAC."
MSG_JET_UPDATE="This operating system does not meet the minimum requirements regarding JET."
AddSize=50000
MAXDISK=1
ExpressMode=1
AddRemType=arBsi
AppDataDir="Sato\GalleryFree"
AppDataDir9x="bin"
MainRegPath=Software\Sato\GalleryFree\3.0
SetupInMenu=Utilities

;IMPORTANT: Languages must follow the order of ID's for BARSERVER (Languages section and RegWrite... actions)
[Languages]
ENG=1
GER=4
SCH=23

[Printer]
RunAtEnd=\Drivers\PrnInst.Exe

[PreferredLanguage]
Language=ENG

[ENG]
Title=SATO Label Gallery Free Install
ReadMe=readme.txt
License=Licence.txt
ENG=English
GER=German
SCH=Chinese (Simplified)
DlgName=SATO Label Gallery Free
NiceDLL=rlgfEng3.dll

[GER]
Title=SATO Label Gallery Free Install
ReadMe=readme.txt
License=Licence.txt
ENG=English
GER=German
SCH=Chinese (Simplified)
DlgName=SATO Label Gallery Free
NiceDLL=rlgfGer3.dll

[SCH]
Title=SATO Label Gallery Free Install
ReadMe=CHS-readme.txt
License=CHS-Licence.txt
ENG=English
GER=German
SCH=Chinese (Simplified)
DlgName=SATO Label Gallery Free
NiceDLL=rlgfSch3.dll


[Default settings]
DiskNumber=0
Compress=True
Attributes=None
VersionChk=Version
OverWrite=Older
Backup=False
Decompress=True
Platform=Win3x;Win95;WinNT

[Main]    
;Main is required group name. User never sees it.
NOItems=1
Item1=NiceLabel
NOActions=5
Action1="ForceUninstall [HKEY_LOCAL_MACHINE\SOFTWARE\Sato\GalleryFree]"
Action2="FirstInstall [HKEY_LOCAL_MACHINE\SOFTWARE\Sato\GalleryFree\3.0]"
Action3="VersionCheck [FILE][*WINSYSDIR*][OLEAUT32.DLL][2.20.4049][MSG_OLEAUT_UPDATE][WARNING][\UPDATES\OLEAUTO\OADIST2.EXE /r:n /q:1][RESTART][]"
Action4="ModuleCheck [Label Gallery Free][Label Gallery Easy][Label Gallery Plus;Label Gallery][GalleryForm;LGFORM][GalleryData;LGDATA][GalleryMemMaster;LGMEMMASTR][GalleryWatch;LGWATCH]"
Action5="RegUninstall [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NiceSE3][SATO Label Gallery Free]"
DestPath="*PRGFILES*\Sato\Gallery Free"
CompressPath="Compress"
DistribPath="Distrib"
SourcePath="\"

;-------------NiceLabel------------
[NiceLabel]
ShowMode=0
Typical=1
NOItems=4
Item1=NiceAppFiles
Item2=NiceHelpFiles
Item3=NiceSamples
Item4=NiceFontSamples
NOActions=2
Action1="RegInstallTest [HKEY_LOCAL_MACHINE\SOFTWARE\Sato\GalleryFree\3.0]"
Action2="RegLog [HKEY_CURRENT_USER\SOFTWARE\Sato\GalleryFree\3.0]"
DestPath="*PRGFILES*\Sato\Gallery Free"
LayoutPath="layout"
CompressPath="Compress"
NameENG=Label Gallery Free
DescENG=Label Gallery Free
NameGER=Label Gallery Free
DescGER=Label Gallery Free
NameSCH=Label Gallery Free
DescSCH=Label Gallery Free

[NiceAppFiles]
Required="[NiceAppCommon][NiceAppL*]"
DestPath="Bin"
ShowMode=0
NOActions=5
Action1="RegExecDelete [lgfree.exe /u]"
Action2="RegisterOCX [FNiceShared][nicelib.dll][0]"
Action3="RegisterOCX [FNiceShared][epds2.DLL][0]"
Action4="RegisterOCX [FNiceShared][d2hpopup.ocx][0]"
Action5="RegisterOCX [FNiceShared][midas.dll][0]"
NOItems=4
Item1=NiceAppCommon
Item2=NiceAppLang
Item3=NiceCommonDLLs
Item4=NiceSharedFiles

[NiceAppCommon]
Minimum=1
SerialType=0
NOActions=14
Action1="RegWriteNice [HKEY_LOCAL_MACHINE\SOFTWARE\Sato\GalleryFree\3.0][ENG,GER,SCH]"
Action2="RegWrite [HKEY_LOCAL_MACHINE\SOFTWARE\Sato\GalleryFree\3.0][Version][3.0]"
Action3="AddDesktopIcon [lgfree.exe][NiceAppCommon][0][SATO Label Gallery Free]"
Action4="LogFileItem [FL][FNiceSysCommon][defver.dv][4][][REMOVEALL]"
Action5="LogFileItem [FL][FNiceSysCommon][dr.dob][][][REMOVEALL]"
Action6="LogFileItem [FL][FNiceSysCommon][db.dob][][][REMOVEALL]"
Action7="LogFileItem [FL][FNiceSysCommon][dt.dob][][][REMOVEALL]"
Action8="LogFileItem [FL][FNiceSysCommon][dg.dob][][][REMOVEALL]"
Action9="LogFileItem [FL][FNiceSysCommon][dp.dob][][][REMOVEALL]"
Action10="LogFileItem [FL][FNiceSysCommon][dl.dob][][][REMOVEALL]"
Action11="LogFileItem [FL][FNiceSysCommon][di.dob][][][REMOVEALL]"
Action12="LogFileItem [FL][FNiceSysCommon][xprint.inf][][][REMOVEALL]"
Action13="LogFileItem [FL][FNiceSysCommon][uaelog.txt][][][REMOVEALL]"
Action24="WriteSystemDir [FNiceSysCommon][HKEY_LOCAL_MACHINE][SOFTWARE\Sato\GalleryFree\3.0\DESKTOP]"
NOFiles=3
Files1=FNiceAppCommon
Files2=FNiceSysCommon
Files3=FNiceWinSys   

[NiceAppLang]
Minimum=1
NOFiles=1
Files1=FNiceAppLang

[NiceCommonDLLs]
Minimum=1
NOFiles=2
Files1=FCommonDLLs
Files2=FNiceLangDLLs
LayoutPath="..\..\..\CommonFiles\CommonDLLs"
CompressPath="..\..\..\..\CommonFiles\Compress\CommonDLLs"

[NiceSharedFiles]
Minimum=1
NOFiles=1
Files1=FNiceShared
LayoutPath="..\..\..\CommonFiles\Shared"
CompressPath="..\..\..\..\CommonFiles\Compress\Shared"

[NiceHelpFiles]
NameENG=Help
DescENG=Help files
NameGER=Help
DescGER=Help files
NameSCH=Help
DescSCH=Help files

DestPath="Bin"
NOFiles=1
Files1=FNiceHelp

[NiceSamples]
NameENG=Samples
DescENG=Sample files
NameGER=Samples
DescGER=Sample files
NameSCH=Samples
DescSCH=Sample files

NOItems=1
Item1=NiceSamplesLa

[NiceSamplesLa]
NameENG=Sample labels
DescENG=Sample labels
NameGER=Sample labels
DescGER=Sample labels
NameSCH=Sample labels
DescSCH=Sample labels

NoActions=4
Action1="RegWrite [HKEY_CURRENT_USER\SOFTWARE\Sato\GalleryFree\3.0\MRU][Count][3]"
Action2="RegPathWrite [HKEY_CURRENT_USER\SOFTWARE\Sato\GalleryFree\3.0\MRU][MRU0][NiceSamplesLa][samples\labels\sample1.lbl]"
Action3="RegPathWrite [HKEY_CURRENT_USER\SOFTWARE\Sato\GalleryFree\3.0\MRU][MRU1][NiceSamplesLa][samples\labels\sample2.lbl]"
Action4="RegPathWrite [HKEY_CURRENT_USER\SOFTWARE\Sato\GalleryFree\3.0\MRU][MRU2][NiceSamplesLa][samples\labels\sample3.lbl]"
NOFiles=3
Files1=FNiceSamples
Files2=FNiceSampleGr
Files3=FNiceSampleDb

;-------------FILES-----------------
[FNiceAppCommon]
FILE=Nice
LayoutPath=App

[FNiceSysCommon]
FILE=Nice
LayoutPath=App\NiceSys
DestPath="*APPDATA*\System"

[FNiceWinSys]
CheckWFP=1
FILE=Nice
LayoutPath=System
DestPath="*WINSYSDIR*"

[FNiceAppLang]
FILE=Nice
LayoutPath=App\Res

[FCommonDLLs]
FILE=Nice

[FNiceLangDLLs]
FILE=Nice
LayoutPath="LangDLLs"
CompressPath="LangDLLs"

[FNiceShared]
FILE=Nice
DestPath="*COMMONFILES*\EuroPlus Shared"

[FNiceHelp]
FILE=Nice
LayoutPath=Help

[FNiceSamples]
FILE=Nice
LayoutPath=Samples\Labels
DestPath="Samples\Labels"

[FNiceSampleGr]
FILE=Nice
LayoutPath=Samples\Graphics
DestPath="Samples\Graphics"
[FNiceSampleDb]
FILE=Nice
LayoutPath=Samples\Database
DestPath="Samples\Database"
[FNiceFontSamples]
FILE=Nice
