[Launch]
ProgramExecutable=VeraCrypt\VeraCrypt.exe
ProgramExecutable64=VeraCrypt\VeraCrypt-x64.exe
WaitForEXE1=VeraCrypt Format.exe
WaitForEXE2=VeraCrypt Format-x64.exe
WaitForEXE3=VeraCryptExpander.exe
WaitForEXE4=VeraCryptExpander-x64.exe
WaitForEXE5=VeraCrypt-x64.exe
WaitForEXE6=VeraCrypt.exe
DirectoryMoveOK=yes
SupportsUNC=yes
RunAsAdmin=compile-force

[FilesMove]
Configuration.xml=%PAL:AppDir%\VeraCrypt
Default Keyfiles.xml=%PAL:AppDir%\VeraCrypt
Favorite Volumes.xml=%PAL:AppDir%\VeraCrypt
History.xml=%PAL:AppDir%\VeraCrypt

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

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

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

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

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

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

[FileWrite7]
Type=Replace
File=%PAL:DataDir%\Favorite Volumes.xml
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%\
Replace=%PAL:Drive%%PAL:PackagePartialDir%\

[FileWrite8]
Type=Replace
File=%PAL:DataDir%\Favorite Volumes.xml
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\

[FileWrite9]
Type=Replace
File=%PAL:DataDir%\Favorite Volumes.xml
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\