[Launch]
ProgramExecutable="P4PCAudioConverter\StartPanel.exe"
SingleAppInstance=true
WaitForProgram=true
WaitForExe1=AudioStartPanel.exe
WaitForExe2=AudioConverterPro.exe
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Registry=true

[RegistryValueWrite]
HKCU\Software\Program4Pc\Audio Converter Pro\Data=REG_SZ:Program4Pc

[RegistryKeys]
P4PCAudioConverter="HKCU\Software\Program4Pc"

[DirectoriesMove]
Local=%LOCALAPPDATA%\Program4PC
User=%APPDATA%\Program4PC

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

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

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