[Launch]
ProgramExecutable=PDFEditor\icepdfeditor.exe
SinglePortableAppInstance=True
DirectoryMoveOK=yes

[Activate]
Registry=true

[RegistryKeys]
PDFEditor=HKCU\Software\Icecream\Icecream PDF Editor
-=HKCU\Software\QtProject\OrganizationDefaults

[RegistryValueWrite]
HKLM\Software\Icecream\Icecream PDF Editor\DisplayVersion=REG_SZ:v. 2.53
HKLM\Software\Icecream\Icecream PDF Editor\CurrentVersion=REG_SZ:2.53
HKCU\Software\Icecream\Icecream PDF Editor\SendData=REG_DWORD:0
HKCU\Software\Icecream\Icecream PDF Editor\uex=REG_DWORD:0

[RegistryCleanupForce]
1=HKCU\Software\Icecream\Icecream PDF Editor
2=HKCU\Software\QtProject\OrganizationDefaults
3=HKCU\Software\QtProject

[RegistryCleanupIfEmpty] 
1=HKCU\Software\Icecream
2=HKCU\Software\QtProject

[DirectoriesMove]
PDFEditor=%LOCALAPPDATA%\Icecream\Icecream PDF Editor

[DirectoriesCleanupForce]
1=%LOCALAPPDATA%\Icecream\Icecream PDF Editor
2=%APPDATA%\Icecream\Icecream PDF Editor
3=%USERPROFILE%\.Icecream PDF Editor\log
4=%USERPROFILE%\.Icecream PDF Editor

[DirectoriesCleanupIfEmpty]
1=%LOCALAPPDATA%\Icecream
2=%APPDATA%\Icecream

[FileWrite1]
Type=Replace
File=%pal:DataDir%\Settings\PDFEditor.reg
Find=%USERPROFILE%\AppData\Roaming
Replace=%pal:DataDir:doublebackslash%

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

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