[Launch]
ProgramExecutable=PhotoDemon\PhotoDemon.exe
;WorkingDirectory=%PAL:AppDir%\AppName
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Registry=true

[RegistryCleanupIfEmpty]
1=HKCU\Software\Microsoft\Visual Basic\6.0
2=HKCU\Software\Microsoft\Visual Basic

[DirectoriesMove]
PhotoDemonData=%PAL:AppDir%\PhotoDemon\Data

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\PhotoDemonData\PhotoDemon_settings.xml
Find=$DEFAULTAPPDIRECTORY$
Replace=%PAL:AppDir%

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\PhotoDemonData\PhotoDemon_settings.xml
Find=$DEFAULTPICTURESDIRECTORY$
Replace=%PortableApps.comPictures%

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\PhotoDemonData\PhotoDemon_settings.xml
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%\
Replace=%PAL:Drive%%PAL:PackagePartialDir%\

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\PhotoDemonData\PhotoDemon_settings.xml
Find=%PAL:LastDrive%%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:Drive%%PAL:PortableAppsBaseDir%\

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\PhotoDemonData\PhotoDemon_settings.xml
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\
