[Launch]
ProgramExecutable=Capture2Text\Capture2Text.exe
ProgramExecutable64=Capture2Text64\Capture2Text.exe
CommandLineArguments=--portable
WorkingDirectory=%FullAppDir%
DirectoryMoveOK=yes
SupportsUNC=yes

[DirectoriesMove]
Capture2TextConfig=%FullAppDir%\Capture2Text

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\Capture2TextConfig\Capture2Text.ini
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:Forwardslash%/
Replace=%PAL:Drive%%PAL:PackagePartialDir:Forwardslash%/

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\Capture2TextConfig\Capture2Text.ini
Find=%PAL:LastDrive%%PAL:LastPortableAppsBaseDir:Forwardslash%/
Replace=%PAL:Drive%%PAL:PortableAppsBaseDir:Forwardslash%/

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