[Launch]
ProgramExecutable="WatermarkRemover\Apowersoft Watermark Remover.exe"
SingleAppInstance=true
WaitForProgram=true
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Registry=true

[RegistryKeys]
AWatermarkRemover="HKCU\Software\Apowersoft"

[RegistryCleanupForce]
1=HKLM\SOFTWARE\Microsoft\Tracing\Apowersoft Watermark Remover_RASAPI32
2=HKLM\SOFTWARE\Microsoft\Tracing\Apowersoft Watermark Remover_RASMANCS
-=HKCU\Software\Microsoft\Direct3D\MostRecentApplication

[DirectoriesMove]
AWatermarkRemover=%USERPROFILE%\AppData\Roaming\Apowersoft\Apowersoft Watermark Remover

[DirectoriesCleanupIfEmpty]
1=%USERPROFILE%\AppData\Roaming\Apowersoft

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

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

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