[Launch]
ProgramExecutable="InfixPDFEditor\Infix.exe"
DirectoryMoveOk=yes

[DirectoriesMove]
ProgramDataIceni=%PROGRAMDATA%\Iceni
ProgramDataAspell=%PROGRAMDATA%\Aspell
AppDataLocalIceni=%USERPROFILE%\AppData\Local\Iceni
AppDataLocalAspell=%USERPROFILE%\AppData\Local\Aspell

[Activate]
Registry=true

[RegistryKeys]
InfixPDFEditor="HKCU\Software\Iceni Technology Limited"
Infix="HKLM\Software\Infix PDF"
Iceni="HKLM\Software\Iceni Technology Limited"
ActMask="HKLM\Software\ActMask Virtual Printer SDK"

[FileWrite1]
Type=Replace
File=%pal:DataDir%\Settings\InfixPDFEditor.reg
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%

[FileWrite2]
Type=Replace
File=%pal:DataDir%\Settings\InfixPDFEditor.reg
Find=%PAL:LastPortableAppsBaseDir:ForwardSlash%
Replace=%PAL:PortableAppsBaseDir:ForwardSlash%

[FileWrite3]
Type=Replace
File=%pal:DataDir%\Settings\InfixPDFEditor.reg
Find=%PAL:LastDrive%
Replace=%PAL:Drive%

[FileWrite4]
Type=Replace
File=%pal:DataDir%\Settings\Infix.reg
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%

[FileWrite5]
Type=Replace
File=%pal:DataDir%\Settings\Infix.reg
Find=%PAL:LastPortableAppsBaseDir:ForwardSlash%
Replace=%PAL:PortableAppsBaseDir:ForwardSlash%

[FileWrite6]
Type=Replace
File=%pal:DataDir%\Settings\Infix.reg
Find=%PAL:LastDrive%
Replace=%PAL:Drive%

[FileWrite7]
Type=Replace
File=%pal:DataDir%\Settings\Iceni.reg
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%

[FileWrite8]
Type=Replace
File=%pal:DataDir%\Settings\Iceni.reg
Find=%PAL:LastPortableAppsBaseDir:ForwardSlash%
Replace=%PAL:PortableAppsBaseDir:ForwardSlash%

[FileWrite9]
Type=Replace
File=%pal:DataDir%\Settings\Iceni.reg
Find=%PAL:LastDrive%
Replace=%PAL:Drive%

[FileWrite10]
Type=Replace
File=%pal:DataDir%\Settings\ActMask.reg
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%

[FileWrite11]
Type=Replace
File=%pal:DataDir%\Settings\ActMask.reg
Find=%PAL:LastPortableAppsBaseDir:ForwardSlash%
Replace=%PAL:PortableAppsBaseDir:ForwardSlash%

[FileWrite12]
Type=Replace
File=%pal:DataDir%\Settings\ActMask.reg
Find=%PAL:LastDrive%
Replace=%PAL:Drive%