[Launch]
AppName=AnyVideoConverterUltimatePortable
ProgramExecutable=Any Video Converter Ultimate\AVCUltimate.exe
WorkingDirectory=%PAL:AppDir%\Any Video Converter Ultimate
RunAsAdmin:force
CleanTemp=false
SinglePortableAppInstance=true
SingleAppInstance=false
SplashTime=1500
LaunchAfterSplashScreen=true
WaitForProgram=true
WaitForOtherInstances=true

[Activate]
Registry=true

[RegistryKeys]
AnyVideoConverterUltimatePortable=HKEY_CURRENT_USER\Software\AnvSoft\Any Video Converter Ultimate

[RegistryCleanupIfEmpty]
1=HKEY_CURRENT_USER\Software\AnvSoft\Any Video Converter Ultimate
2=HKEY_CURRENT_USER\Software\AnvSoft

[RegistryCleanupForce]
1=HKEY_CURRENT_USER\Software\AnvSoft\Any Video Converter Ultimate
2=HKEY_CURRENT_USER\Software\AnvSoft

[RegistryValueBackupDelete]
1=HKEY_CURRENT_USER\Software\AnvSoft\Any Video Converter Ultimate

[FilesMove]
Settings\file.txt=%PAL:AppDir%\Any Video Converter Ultimate

[DirectoriesMove]
Profiles=%APPDATA%\AnvSoft\Any Video Converter Ultimate

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

[FileWrite2]
Type=INI
File=%PAL:DataDir%\settings\data.conf
Section=Paths
Key=home_directory
Value=%PAL:DocumentsDir%

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\settings\data.conf
Find=%PAL:LastDrive%\
Replace=%PAL:CurrentDrive%\

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\settings\data.conf
Find=file:///%PAL:LastDrive%/
Replace=file:///%PAL:CurrentDrive%/

[Environment]
PATH=%PAL:AppDir%\AppName;{&}
HOME=%PAL:DataDir%\settings