[Launch]
ProgramExecutable=LMMS\lmms.exe
WorkingDirectory=%PAL:AppDir%\LMMS
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Registry=true
XML=true

[QtKeysCleanup]
1=Qt\filedialog

[Environment]
LANG=%PAL:LanguageCustom%

[FilesMove]
.lmmsrc.xml=%USERPROFILE%
.lmmsrc.xml.bak=%USERPROFILE%

[DirectoriesMove]
lmms=%USERPROFILE%\lmms

[Language]
Base=%PortableApps.comLocaleglibc%
CheckIfExists=%PAL:AppDir%\LMMS\data\locale\%PAL:LanguageCustom%.qm
DefaultIfNotExists=en

[LanguageStrings]
ca=ca
cs=cs
de=de
en_US=en
es=es
fr=fr
fa=fa
it=it
ja=ja
ko=ko
nl=nl
pl=pl
pt_BR=pt_br
ru=ru
sv=sv

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

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

[FileWrite2]
Type=XML Attribute
File=%PAL:DataDir%\.lmmsrc.xml
XPath=/lmms/paths
Attribute=workingdir
Value=%PAL:DataDir%\lmms-settings

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\.lmmsrc.xml
Find=DEFAULTAPPDIRECTORY
Replace=%PAL:AppDir%

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

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

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