[Launch]
ProgramExecutable=freac\freac.exe
DirectoryMoveOK=yes
SupportsUNC=yes

[FilesMove]
freac.xml=%PAL:AppDir%\freac

[DirectoriesMove]
cddb=%PAL:AppDir%\freac\cddb

[Language]
Base=%PortableApps.comLocaleglibc%
CheckIfExists=%PAL:AppDir%\freac\lang\freac_%PAL:LanguageCustom%.xml
DefaultIfNotExists=internal

[LanguageFile]
Type=ConfigRead
File=%PAL:DataDir%\freac.xml
Entry='   <value name="Language">freac_'
TrimRight=.xml</value>
CaseSensitive=true

[FileWrite1]
Type=ConfigWrite
File=%PAL:DataDir%\freac.xml
Entry='   <value name="Language">'
CaseSensitive=true
Value=freac_%PAL:LanguageCustom%.xml</value>

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\freac.xml
Find={INITIALMUSICDIR}
Replace=%PortableApps.comMusic%

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\freac.xml
Find=freac_internal.xml
Replace=internal

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\freac.xml
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\freac.xml
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%\
Replace=%PAL:Drive%%PAL:PackagePartialDir%\

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\freac.xml
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\
