[Launch]
ProgramExecutable=MuseScore\bin\MuseScore3.exe
WaitForProgram=true
DirectoryMoveOK=yes

[Activate]
Registry=true

[RegistryKeys]
qtfiledialog=HKCU\Software\QtProject\OrganizationDefaults\FileDialog
qtcustomcolors=HKCU\Software\QtProject\OrganizationDefaults\Qt\customColors

[RegistryCleanupIfEmpty]
1=HKCU\Software\QtProject\OrganizationDefaults\FileDialog
2=HKCU\Software\QtProject\OrganizationDefaults\Qt\customColors
3=HKCU\Software\QtProject\OrganizationDefaults\Qt
4=HKCU\Software\QtProject\OrganizationDefaults
5=HKCU\Software\QtProject

[FileWrite1]
Type=replace
File=%PAL:DataDir%\settings\MuseScore\MuseScore*.ini
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%/
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%/

[FileWrite2]
Type=replace
File=%PAL:DataDir%\settings\plugins.xml
Find=<path>%PAL:LastDrive%
Replace=<path>%PAL:Drive%

[FileWrite3]
Type=replace
File=%PAL:DataDir%\settings\plugins.xml
Find=%PAL:LastPackagePartialDir:ForwardSlash%/
Replace=%PAL:PackagePartialDir:ForwardSlash%/

[FileWrite4]
Type=replace
File=%PAL:DataDir%\settings\session
Find=<path>%PAL:LastDrive%
Replace=<path>%PAL:Drive%

[FileWrite5]
Type=replace
File=%PAL:DataDir%\settings\session
Find=%PAL:LastPackagePartialDir:ForwardSlash%/
Replace=%PAL:PackagePartialDir:ForwardSlash%/

[FileWrite6]
Type=replace
File=%PAL:DataDir%\settings\qtfiledialog.reg
Find=file:///%PAL:LastDrive%
Replace=file:///%PAL:Drive%

[FileWrite7]
Type=replace
File=%PAL:DataDir%\settings\qtfiledialog.reg
Find=%PAL:LastPackagePartialDir:ForwardSlash%/
Replace=%PAL:PackagePartialDir:ForwardSlash%/
