[Launch]
ProgramExecutable=PeaZip\peazip.exe
ProgramExecutable64=PeaZip64\peazip.exe
CleanTemp=false
WaitForProgram=true
SingleAppInstance=true
DirectoryMoveOK=yes
SupportsUNC=yes

[DirectoriesMove]
conf=%FullAppDir%\res\conf

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

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\conf\conf.txt
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\

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

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\conf\custedit.txt
Find=%PAL:LastDrive%%LastPackagePartialDir%\
Replace=%PAL:Drive%%PackagePartialDir%\

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\conf\custedit.txt
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\conf\custedit.txt
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\

[FileWrite7]
Type=Replace
File=%PAL:DataDir%\conf\bookmarks.txt
Find=%PAL:LastDrive%%LastPackagePartialDir%\
Replace=%PAL:Drive%%PackagePartialDir%\

[FileWrite8]
Type=Replace
File=%PAL:DataDir%\conf\bookmarks.txt
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\

[FileWrite9]
Type=Replace
File=%PAL:DataDir%\conf\bookmarks.txt
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\
