[Launch]
ProgramExecutable=Solfege\bin\pythonwSolfegePortable.exe
CommandLineArguments='"%PAL:AppDir%\Solfege\bin\win32-start-solfege.pyw" --no-splash'
WorkingDirectory=%PAL:AppDir%\Solfege\bin
DirectoryMoveOK=yes
SupportsUNC=yes

[Environment]
PYTHONPATH=%PAL:AppDir%\Solfege\bin
PYTHONHOME=%PAL:AppDir%\Solfege\bin
HOME=%PAL:DataDir%

[DirectoriesMove]
SolfegeSettings=%APPDATA%\GNU Solfege
SolfegeDocuments=%DOCUMENTS%\GNU Solfege

[FileWrite1]
Type=INI
File=%PAL:DataDir%\SolfegeSettings\solfegerc
Section=programs
Key=csound
Value=%PAL:AppDir%\Csound\csound.exe

[FileWrite2]
Type=INI
File=%PAL:DataDir%\SolfegeSettings\solfegerc
Section=programs
Key=mma
Value=%PAL:AppDir%\WinMMA\mma.py

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\SolfegeSettings\solfegerc
Find=DEFAULTAPPDIRECTORYPLACEHOLDER
Replace=%PAL:AppDir%

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\SolfegeSettings\solfegerc
Find=DEFAULTPORTABLEAPPSPLACEHOLDER
Replace=%PAL:PortableAppsBaseDir%\PortableApps

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\SolfegeSettings\solfegerc
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%\
Replace=%PAL:Drive%%PAL:PackagePartialDir%\

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\SolfegeSettings\solfegerc
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\

[FileWrite7]
Type=Replace
File=%PAL:DataDir%\SolfegeSettings\solfegerc
Find=%PAL:LastDrive%\
Replace=%PAL:Drive%\
