[Launch]
ProgramExecutable="DataRecovery\Aiseesoft Data Recovery.exe"
ProgramExecutable64="DataRecovery64\Aiseesoft Data Recovery.exe"
SingleAppInstance=true
WaitForProgram=true
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Registry=true

[RegistryValueWrite]
HKCU\Software\Aiseesoft Studio\Aiseesoft Data Recovery\Update\AutoEnabled=REG_SZ:false

[RegistryKeys]
DataRecovery="HKCU\Software\Aiseesoft Studio"
-=HKCU\Software\Classes\CLSID\{E67DD0BA-233F-4EA9-B010-9B0A3D58F690}
-=HKCU\Software\QtProject
-=HKCU\Software\Microsoft\Direct3D\MostRecentApplication
-=HKCU\Software\Microsoft\IntelliPoint\AppSpecific\Aiseesoft Data Recovery.exe
-=HKCU\Software\Microsoft\IntelliPoint\AppSpecific\splashScreen.exe
-=HKCU\Software\Microsoft\IntelliType Pro\AppSpecific\Aiseesoft Data Recovery.exe
-=HKCU\Software\Microsoft\IntelliType Pro\AppSpecific\splashScreen.exe

[DirectoriesCleanupIfEmpty]
1=%ALLUSERSAPPDATA%\Aiseesoft Studio\Aiseesoft Data Recovery
2=%ALLUSERSAPPDATA%\Aiseesoft Studio
3=%DOCUMENTS%\Aiseesoft Studio\Aiseesoft Data Recovery
4=%DOCUMENTS%\Aiseesoft Studio

[DirectoriesMove]
DataRecovery=%LOCALAPPDATA%\Aiseesoft Studio\Aiseesoft Data Recovery
Docs=%DOCUMENTS%\Aiseesoft Studio\Aiseesoft Data Recovery

[DirectoriesCleanupIfEmpty]
1=%ALLUSERSAPPDATA%\Aiseesoft Studio
2=%LOCALAPPDATA%\Aiseesoft Studio

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\settings\DataRecovery.reg
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%\\
Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%\\

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\settings\DataRecovery.reg
Find=%PAL:LastPortableAppsBaseDir:DoubleBackslash%\\
Replace=%PAL:PortableAppsBaseDir:DoubleBackslash%\\

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\settings\DataRecovery.reg
Find=%PAL:LastDrive%\\
Replace=%PAL:Drive%\\