[Launch]
ProgramExecutable=K-Meleon\k-meleon.exe
WorkingDirectory=%PAL:AppDir%\K-Meleon
DirectoryMoveOK=yes
SupportsUNC=yes

[DirectoriesCleanupIfEmpty]
1=%APPDATA%\Mozilla\Extensions
2=%APPDATA%\Mozilla

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\profile\prefs.js
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%\
Replace=%PAL:Drive%%PAL:PackagePartialDir%\

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\profile\prefs.js
Find=%PAL:LastPortableAppsBaseDir:QuadBackslash%\\\\
Replace=%PAL:PortableAppsBaseDir:QuadBackslash%\\\\

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\profile\prefs.js
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\profile\prefs.js
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\profile\extensions.ini
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%\
Replace=%PAL:Drive%%PAL:PackagePartialDir%\

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\profile\extensions.ini
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\

[FileWrite7]
Type=Replace
File=%PAL:DataDir%\profile\extensions.ini
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\

[FileWrite8]
Type=Replace
File=%PAL:DataDir%\profile\extensions.json
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%\
Replace=%PAL:Drive%%PAL:PackagePartialDir%\

[FileWrite9]
Type=Replace
File=%PAL:DataDir%\profile\extensions.json
Find=%PAL:LastPortableAppsBaseDir:DoubleBackslash%\\
Replace=%PAL:PortableAppsBaseDir:DoubleBackslash%\\

[FileWrite10]
Type=Replace
File=%PAL:DataDir%\profile\extensions.json
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\

[FileWrite11]
Type=Replace
File=%PAL:DataDir%\profile\extensions.json
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\

[FileWrite12]
Type=INI
File=%PAL:AppDir%\K-Meleon\profile.ini
Section=profile
Key=path
Value=..\..\Data

[FileWrite13]
Type=INI
File=%PAL:AppDir%\K-Meleon\profile.ini
Section=profile
Key=isRelative
Value=1
