[Launch]
ProgramExecutable=PChat\PChat.exe
CommandLineArguments=-d "%PAL:DataDir%\settings"
DirectoryMoveOK=yes
SupportsUNC=yes

[Environment]
LANG=%PortableApps.comLocaleglibc%
PATH=%PATH%;%PAL:AppDir%\perl\bin;%PAL:AppDir%\python\;%PAL:AppDir%\tcl\bin
XCHAT_WARNING_IGNORE=true

[Language]
Base=%PortableApps.comLocaleglibc%
CheckIfExists=%PAL:AppDir%\PChat\locale\%PAL:LanguageCustom%\LC_MESSAGES\pchat.mo
DefaultIfExists=en_GB

[FilesMove]
settings\pchat.conf=%PAL:DataDir%\settings

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\settings\pchat.conf
Find={INITIALDCCDOWNLOADDIR}
Replace=%DefaultDccDirectory%

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\settings\pchat.conf
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%
Replace=%PAL:Drive%%PAL:PackagePartialDir%

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\settings\pchat.conf
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\

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

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