[Launch]
ProgramExecutable=Audacity\audacity.exe
DirectoryMoveOK=yes
SupportsUNC=yes
SinglePortableAppInstance=true
SingleAppInstance=false
WaitForProgram=true
WaitForOtherInstances=true

[Environment]
VST_PATH=%PAL:AppDir%\VSTPlugins

[Language]
Base=%PortableApps.comLocaleglibc%
DefaultIfNotExists=en
CheckIfExists=%PAL:AppDir%\Audacity\Languages\%PAL:LanguageCustom%\Audacity.mo

[LanguageStrings]
en_US=en

[LanguageFile]
Type=INI
File=%PAL:DataDir%\Portable Settings\audacity.cfg
Section=Locale
Key=Language

[DirectoriesMove]
Portable Settings=%PAL:AppDir%\Audacity\Portable Settings

[FileWrite1]
Type=INI
File=%PAL:DataDir%\Portable Settings\audacity.cfg
Section=Directories
Key=PresetsDir
Value=%PAL:AppDir:DoubleBackslash%\\Audacity\\Portable Settings\\presets

[FileWrite2]
Type=INI
File=%PAL:DataDir%\settings\AudacityPortableSettings.ini
Section=AudacityInternalPaths
Key=TempDir
Value=%TEMP:DoubleBackslash%

[FileWrite3]
Type=INI
File=%PAL:DataDir%\Portable Settings\audacity.cfg
Section=MP3
Key=MP3LibPath
Value=%PAL:AppDir:DoubleBackslash%\\LAME\\lame_enc.dll

[FileWrite4]
Type=INI
File=%PAL:DataDir%\Portable Settings\audacity.cfg
Section=FFmpeg
Key=FFmpegLibPath
Value=%PAL:AppDir:DoubleBackslash%\\FFMpeg\\avformat-52.dll

[FileWrite5]
Type=INI
File=%PAL:DataDir%\Portable Settings\audacity.cfg
Section=Locale
Key=Language
Value=%PAL:LanguageCustom%

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\Portable Settings\plugins.cfg
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%\\
Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%\\

[FileWrite7]
Type=Replace
File=%PAL:DataDir%\Portable Settings\plugins.cfg
Find=%PAL:LastPortableAppsBaseDir:DoubleBackslash%\\
Replace=%PAL:PortableAppsBaseDir:DoubleBackslash%\\

[FileWrite8]
Type=Replace
File=%PAL:DataDir%\Portable Settings\plugins.cfg
Find=%PAL:LastDrive%\\
Replace=%PAL:Drive%\\

[FileWrite9]
Type=Replace
File=%PAL:DataDir%\Portable Settings\Locale.cfg
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%\\
Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%\\

[FileWrite10]
Type=Replace
File=%PAL:DataDir%\Portable Settings\Locale.cfg
Find=%PAL:LastPortableAppsBaseDir:DoubleBackslash%\\
Replace=%PAL:PortableAppsBaseDir:DoubleBackslash%\\

[FileWrite11]
Type=Replace
File=%PAL:DataDir%\Portable Settings\Locale.cfg
Find==%PAL:LastDrive%\\
Replace==%PAL:Drive%\\
