[Launch]
ProgramExecutable=Mp3splt\mp3splt-gtk.exe
WorkingDirectory=%PAL:AppDir%\Mp3splt
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Registry=true

[Environment]
HOME=%PAL:DataDir%\Mp3spltsettings

[FilesMove]
settings\bookmarks=%APPDATA%\gtk-3.0

[DirectoriesCleanupIfEmpty]
1=%APPDATA%\gtk-3.0

[RegistryKeys]
GSettingsFileChooser=HKCU\Software\GSettings\org\gtk\settings\file-chooser

[RegistryCleanupIfEmpty]
1=HKCU\Software\GSettings\org\gtk\settings
2=HKCU\Software\GSettings\org\gtk
3=HKCU\Software\GSettings\org
4=HKCU\Software\GSettings

[Language]
Base=%PortableApps.comLanguageCode%
DefaultIfNotExists=en
CheckIfExists=%PAL:AppDir%\Mp3splt\translations\%PAL:LanguageCustom%\LC_MESSAGES\mp3splt.mo

[LanguageStrings]
fr=fr_FR
de=de_DE

[LanguageFile]
Type=INI
File=%PAL:DataDir%\Mp3spltsettings\.mp3splt-gtk\mp3splt-gtk_prefs
Section=general
Key=language

[FileWrite1]
Type=INI
File=%PAL:DataDir%\Mp3spltsettings\.mp3splt-gtk\mp3splt-gtk_prefs
Section=general
Key=language
Value=%PAL:LanguageCustom%

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\Mp3spltsettings\.mp3splt-gtk\mp3splt-gtk_prefs
Find=DEFAULTMP3SPLTSAVEPATH
Replace=%PortableApps.comMusic:DoubleBackslash%\\

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\Mp3spltsettings\.mp3splt-gtk\mp3splt-gtk_prefs
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%\\
Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%\\

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\Mp3spltsettings\.mp3splt-gtk\mp3splt-gtk_prefs
Find=%PAL:LastPortableAppsBaseDir:DoubleBackslash%\\
Replace=%PAL:PortableAppsBaseDir:DoubleBackslash%\\

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\Mp3spltsettings\.mp3splt-gtk\mp3splt-gtk_prefs
Find=%PAL:LastDrive%\\
Replace=%PAL:Drive%\\

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\Mp3spltsettings\.gtk-bookmarks
Find=%20
Replace=" "

[FileWrite7]
Type=Replace
File=%PAL:DataDir%\Mp3spltsettings\.gtk-bookmarks
Find=file:///%PAL:LastDrive%%PAL:LastPackagePartialDir:Forwardslash%/
Replace=file:///%PAL:Drive%%PAL:PackagePartialDir:Forwardslash%/

[FileWrite8]
Type=Replace
File=%PAL:DataDir%\Mp3spltsettings\.gtk-bookmarks
Find=file:///%PAL:LastPortableAppsBaseDir:Forwardslash%/
Replace=file:///%PAL:PortableAppsBaseDir:Forwardslash%/

[FileWrite9]
Type=Replace
File=%PAL:DataDir%\Mp3spltsettings\.gtk-bookmarks
Find=file:///%PAL:LastDrive%/
Replace=file:///%PAL:Drive%/

[FileWrite10]
Type=Replace
File=%PAL:DataDir%\Mp3spltsettings\.gtk-bookmarks
Find=" "
Replace=%20

[FileWrite11]
Type=Replace
File=%PAL:DataDir%\Mp3spltsettings\.mp3splt-gtk\splitpoints.cue
Find=FILE "%PAL:LastDrive%%PAL:LastPackagePartialDir%\
Replace=FILE "%PAL:Drive%%PAL:PackagePartialDir%\

[FileWrite12]
Type=Replace
File=%PAL:DataDir%\Mp3spltsettings\.mp3splt-gtk\splitpoints.cue
Find=FILE "%PAL:LastPortableAppsBaseDir%\
Replace=FILE "%PAL:PortableAppsBaseDir%\

[FileWrite13]
Type=Replace
File=%PAL:DataDir%\Mp3spltsettings\.mp3splt-gtk\splitpoints.cue
Find=FILE "%PAL:LastDrive%\
Replace=FILE "%PAL:Drive%\

[FileWrite14]
Type=Replace
File=%PAL:DataDir%\settings\GSettingsFileChooser.reg
Find=file:///%PAL:LastDrive%%PAL:LastPackagePartialDir:Forwardslash%/
Replace=file:///%PAL:Drive%%PAL:PackagePartialDir:Forwardslash%/

[FileWrite15]
Type=Replace
File=%PAL:DataDir%\settings\GSettingsFileChooser.reg
Find=file:///%PAL:LastPortableAppsBaseDir:Forwardslash%/
Replace=file:///%PAL:PortableAppsBaseDir:Forwardslash%/

[FileWrite16]
Type=Replace
File=%PAL:DataDir%\settings\GSettingsFileChooser.reg
Find=file:///%PAL:LastDrive%/
Replace=file:///%PAL:Drive%/