[Launch]
ProgramExecutable=Shotcut\shotcut.exe
CommandLineArguments=--noupgrade --appdata "%PAL:DataDir%"
DirectoryMoveOK=yes
SupportsUNC=yes
MinOS=Vista

[Activate]
Registry=true

[RegistryKeys]
Shotcut=HKCU\Software\Meltytech\Shotcut

[RegistryCleanupIfEmpty]
1=HKCU\Software\Meltytech

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\shotcut.ini
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%/
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%/

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\shotcut.ini
Find=%PAL:LastDrive%%PAL:LastPortableAppsBaseDir:ForwardSlash%/
Replace=%PAL:Drive%%PAL:PortableAppsBaseDir:ForwardSlash%/

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\shotcut.ini
Find=%PAL:LastDrive%/
Replace=%PAL:Drive%/

[FileWrite4]
Type=INI
File=%PAL:DataDir%\shotcut.ini
Section=General
Key=language
Value=%PAL:LanguageCustom%

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\shotcut.ini
Find=DEFAULTVIDEOFOLDER
Replace=%CustomPortableApps.comVideosForwardSlash%

[Language]
Base=%PortableApps.comLocaleglibc%
CheckIfExists=%PAL:AppDir%\Shotcut\share\translations\shotcut_%PAL:LanguageCustom%.qm
DefaultIfNotExists=en

[LanguageStrings]
en_US=en
pt=pt_PT

[LanguageFile]
Type=INI
File=%PAL:DataDir%\shotcut.ini
Section=General
Key=language
