[Launch]
ProgramExecutable=4KVideoDownloader32\4kvideodownloader.exe
ProgramExecutable64=4KVideoDownloader64\4kvideodownloader.exe
SinglePortableAppInstance=false
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Registry=true

[RegistryKeys]
4K=HKCU\Software\4kdownload.com
-=HKCU\Software\QtProject
-=HKCU\Software\Microsoft\Direct3D\MostRecentApplication

[RegistryValueWrite]
HKCU\Software\4kdownload.com\4K Video Downloader\Notification\runCount=REG_DWORD:1
HKCU\Software\4kdownload.com\4K Video Downloader\Notification\lastVersion=REG_SZ:4.17.1.4410

[DirectoriesMove]
4kdownload=%LocalAppData%\4kdownload.com
;Videos=%UserProfile%\Videos\4K Video Downloader

[DirectoriesCleanupIfEmpty]
1=%UserProfile%\Videos\4K Video Downloader

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

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

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