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

[DirectoriesMove]
Components=%PAL:AppDir%\OpenMPT\Components
tunings=%PAL:AppDir%\OpenMPT\tunings

[FilesMove]
mptrack.ini=%PAL:AppDir%\OpenMPT
Keybindings.mkb=%PAL:AppDir%\OpenMPT
plugin.cache=%PAL:AppDir%\OpenMPT
SongSettings.ini=%PAL:AppDir%\OpenMPT

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

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

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