[Launch]
AppName=Psiphon3Portable
ProgramExecutable=Psiphon3\psiphon3.exe
WorkingDirectory=%PAL:AppDir%\Psiphon3
RunAsAdmin:none
CleanTemp=true
SinglePortableAppInstance=true
SingleAppInstance=false
SplashTime=1500
LaunchAfterSplashScreen=true
WaitForProgram=true
WaitForOtherInstances=true

[Activate]
Registry=true

[RegistryKeys]
Psiphon3Portable=HKCU\Software\Psiphon3
Psiphon3PortableHKLM=HKLM\SOFTWARE\Wow6432Node\Microsoft\Tracing\psiphon3_RASAPI32

[RegistryCleanupIfEmpty]
1=HKCU\Software\Psiphon3

[RegistryCleanupForce]
1=HKCU\Software\Psiphon3

[RegistryValueBackupDelete]
1=HKCU\Software\Psiphon3

[FilesMove]
Settings\file.txt=%PAL:AppDir%\Psiphon3

[DirectoriesMove]
Psiphon3=%APPDATA%\Psiphon3

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\settings\Psiphon3Portable.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
