[Launch]
ProgramExecutable=ExifToolGUI\ExifToolGUI.exe
ProgramExecutable64=ExifToolGUI64\ExifToolGui_X64.exe
CommandLineArguments=/IniPath="%PAL:DataDir%\ExifToolGuiConfig" /Lang=%PAL:LanguageCustom%
WorkingDirectory=%PAL:AppDir%\ExifToolGUI
DirectoryMoveOK=yes
SupportsUNC=yes

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\ExifToolGuiConfig\ExifToolGuiV6.ini
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%\
Replace=%PAL:Drive%%PAL:PackagePartialDir%\

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\ExifToolGuiConfig\ExifToolGuiV6.ini
Find=%PAL:LastDrive%%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:Drive%%PAL:PortableAppsBaseDir%\

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\ExifToolGuiConfig\ExifToolGuiV6.ini
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\ExifToolGuiConfig\ExifToolGuiV6.ini
Find=@PLACEHOLDER_PortableApps.comPictures@
Replace=%PortableApps.comPictures%

[FileWrite5]
Type=INI
File=%PAL:DataDir%\settings\ExifToolGUIPortableSettings.ini
Section=ExifToolGUIPortableSettings
Key=Language
Value=%PAL:LanguageCustom%

[Language]
Base=%PortableApps.comLocaleName%
CheckIfExists=%PAL:AppDir%\ExifToolGUI\ExifToolGui.%PAL:LanguageCustom%
DefaultIfNotExists=ENU

[LanguageStrings]
Dutch=NLD
English=ENU
EnglishGB=ENU
French=FRA
German=DEU
Italian=ITA
Portuguese=PTB
PortugueseBR=PTB
SimpChinese=CHS
Spanish=ESP
SpanishInternational=ESP

[LanguageFile]
Type=INI
File=%PAL:DataDir%\settings\ExifToolGUIPortableSettings.ini
Section=ExifToolGUIPortableSettings
Key=Language