;
; Common Variables
; * Directories *
;     <MainTarget>      = main target directory of the main installer
;     <MainLink>        = main link directory
;     <ProgramFiles>    = program files folder (ex. c:\Program Files)
;     <WindowsDir>      = Windows folder (ex. c:\Winnt)
;     <SystemDir>       = Windows System folder (ex. c:\Windows\system for Win9x, c:\Windows\system32 for NT platform)
;     <ColorDir>        = Windows ICM folder (ex. c:\Windows\system\Color for 9x, c:\Windows\system32\spool\drivers\Color for 2K/XP)
;     <TempDir>         = System Temporary folder
;     <CurrentDir>      = Current folder
;     <Desktop>         = Windows desktop folder
;     <StartMenu>       = Windows Start->Program Menu folder
;     <StartUp>         = Startup folder under Windows Start Menu folder
;     <DefaultTarget>   = Default target folder in this package installer
;     <WinSetupPath>    = Windows Setup Source Path (ex. c:\Windows\Options\Win98) usually Win9x only
;     <BootDisk>        = Root directory of the boot disk (ex. "c:")
;     <ModelKey>        = Model specific key (ex. FS-1010, KM-1820, FS-1118MFP, etc.)
;     <UserStartMenu>	= User's Start->Program menu folder
;
; * Install Section *
;   [Install] is the default install section
;   [Install.<MODEL_KEY>] is the install section of the specific model
;                 ex. [FS-1010,FS-1118MFP] <- This section will be a install section for FS-1010 and FS-1118MFP
;   [Remove] is the default uninstall section. Only needed when any additional remove commands exist.
;
; * OS decoration
;   .9x         = Win9x
;   .nt         = NT platform
;   .nt4        = NT 4.0
;   .nt5        = 2K or later
;   .ntamd64    = AMD 64 machine (XP or later)
;   .ntia64     = IA 64 machine (XP or later)
;

[Version]
Provider = Kyocera
Version  = 03/07/2016,3.0.5107

[Information]
Default = .
TargetPath = <MainTarget>

[SourcePath]
MAINDIR = FileManagementUtility\FMU.zip
SAVE_LOG = <MainTarget>\FMU\log
LOG_RESTORE = <TempDir>\FMU\log
SAVE_DATA = <MainTarget>\FMU\bin\data
DATA_RESTORE = <TempDir>\FMU\bin\data
BMP = Files

[TargetPath]
MAINDIR = <MainTarget>\FMU
SAVE_LOG = <TempDir>\FMU\log
LOG_RESTORE = <MainTarget>\FMU\log
SAVE_DATA = <TempDir>\FMU\bin\data
DATA_RESTORE = <MainTarget>\FMU\bin\data
BMP = <MainTarget>\Files

;INSTALL =========================================================================
[Install]
CopyDirs = MAINDIR
CopyFiles = SEC1,BMP
AddLinks = LINK1
AddItemARP = ARP
;ExecFiles = AppInstall

[Upgrade]
CopyDirs = SAVE_LOG
CopyDirs = SAVE_DATA
;CopyFiles = SAVE_LOG
DelLinks = LINK1
DelItemARP = ARP
DelDirs = DIRS2
DelFiles = SEC1,BMP
DelFiles = PNF
CopyDirs = MAINDIR
CopyFiles = SEC1,BMP
AddLinks = LINK1
AddItemARP = ARP
;CopyFiles = LOG_RESTORE
CopyDirs = LOG_RESTORE
CopyDirs = DATA_RESTORE
;DelFiles = SAVE_LOG
DelDirs = SAVE_LOG
DelDirs = SAVE_DATA

[Remove]
ExecFiles = AppRemove
DelLinks = LINK1
DelItemARP = ARP
DelDirs = DIRS
DelFiles = SEC1,BMP
DelFiles = PNF
DelDirs = DIR1
DelDirs = CLEAN_KYO_LINK
DelDirs = CLEAN_KYO_FOLDER

[Verify]
VerifyApps = verApp

[verApp]
;CompareVersion = VERIFY_FILE,"FileManagementUtility\bin\FileManagementUtility.exe","<MainTarget>\FileManagementUtility\bin\FileManagementUtility.exe",PRODUCTVERSION
CompareVersion = VERIFY_FILE,"FileManagementUtility\FMU.zip|bin/FileManagementUtility.exe","<MainTarget>\FMU\bin\FileManagementUtility.exe",PRODUCTVERSION

[MAINDIR]
;*.*,true
*.*

[BMP]
kxLogo.png
wizardbitmap.bmp

[PNF]
FMUtil.pnf
;dotnet20.pnf

[SEC1]
Setup.exe
KmInst32.exe
KmInst64.exe
KmInstall.ini
lang.dat

[AppInstall]

[AppRemove]

[DIRS]
<MainTarget>\FMU,REMOVE_ALL
;<UserAppData>\FMU,REMOVE_ALL
<MainLink>

[DIRS2]
<MainTarget>\FMU,REMOVE_ALL
<MainLink>

[DIR1]
<MainTarget>

[LINK1]
%UNINSTALL_NAME% = "<MainTarget>\setup.exe","<MainLink>","<MainTarget>\setup.exe","Uninstall File Management Utility"
%PRODUCT_NAME% = "<MainTarget>\FMU\bin\FileManagementUtility.exe","<MainLink>","<MainTarget>\FMU\bin\FileManagementUtility.exe","File Management Utility"

[ARP]
%DISPLAY_NAME%,%DISPLAY_NAME%,<MainTarget>\Setup.exe -ck Kyocera,KYOCERA Document Solutions Inc.,<MainTarget>,<MainTarget>\Setup.exe


[CLEAN_KYO_LINK]
<StartMenu>\Kyocera

[CLEAN_KYO_FOLDER]
<ProgramFiles>\Kyocera

[SAVE_LOG]
*.*

[LOG_RESTORE]
*.*

[SAVE_DATA]
*.*

[DATA_RESTORE]
*.*

; Strings
;================================================================================================================
[Strings]
DISPLAY_NAME = "File Management Utility"
PRODUCT_NAME = "File Management Utility"
DISPLAY_NAME_OEM = "File Management Utility"
PRODUCT_NAME_OEM = "File Management Utility"

UNINSTALL_NAME = "Uninstall File Management Utility"
