Hello,
since Bart.S can no more work on creating MuseScore 3.x PortableApp (because Windows XP support was dropped by the underlying Qt infrastructure), I tried to step in and automatize the creation of the PortableApp for MuseScore future releases.
I think I managed to find and modify all the parts in the code which lead to saving files in user or system data folders and redirect them to the PortableApp folder. However, I still have a problem with Qt registry keys.
In particular, I found that when opening the file dialog (for example with File->Open..), or when saving a custom color in the color selector dialog (for example, select a note or rest, click on the color selector in the inspector on the right and save a custom color in the color dialog), Qt is writing a couple of registry keys in HKCU. I tried to get rid of them by using the "Registry" option and backup-delete in the launcher ini file, but when I tested the resulting application in a vanilla Windows 7 virtual machine (I used one from here: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ ), those keys are still present after exiting the application (I checked they were not present before launching it).
Here are the keys:
HKU\S-1-5-21-1716914095-909560446-1177810406-1000\Software\QtProject\OrganizationDefaults\FileDialog
HKU\S-1-5-21-1716914095-909560446-1177810406-1000\Software\QtProject\OrganizationDefaults\Qt\customColors
while the launcher ini reads:
https://github.com/musescore/MuseScore/blob/0a75ff545cae18ef107c2633e892...
In case, you can try the application here: https://ci.appveyor.com/api/buildjobs/dl0m1cinnh3yxevo/artifacts/MuseSco...
Have I done something wrong in the above ini file? How should I modify it?
I think that after this problem is dealt with, the application should be ok as a PortableApp: should I submit it on this forum for review and approval?
Thank you for your help.
Ciao,
Antonio