Skip to content

Commit

Permalink
Resolved a WIX compilation crash for 32/64 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vpereverzev committed Oct 6, 2020
1 parent f99dd7a commit daa5fb7
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions build/packaging/WIX.template.in
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,11 @@

<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\$(var.ShortProdName)\Capabilities\FileAssociations" Name=".mscz" Value="MuseScore.mscz" Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\$(var.ShortProdName)\Capabilities\FileAssociations" Name=".mscx" Value="MuseScore.mscx" Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\$(var.ShortProdName)\Capabilities\FileAssociations" Name=".mscz," Value="MuseScore.mscz," Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\$(var.ShortProdName)\Capabilities\FileAssociations" Name=".mscx," Value="MuseScore.mscx," Type="string" />

<!-- TODO add more types?-->

<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\$(var.ShortProdName)\Capabilities\MIMEAssociations" Name="application/x-musescore" Value="MuseScore.mscz" Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\$(var.ShortProdName)\Capabilities\MIMEAssociations" Name="application/x-musescore+xml" Value="MuseScore.mscx" Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\$(var.ShortProdName)\Capabilities\MIMEAssociations" Name="application/x-musescore" Value="MuseScore.mscz," Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\$(var.ShortProdName)\Capabilities\MIMEAssociations" Name="application/x-musescore+xml" Value="MuseScore.mscx," Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\$(var.ShortProdName)\Capabilities\shell\open\command" Value="&quot;[INSTALL_ROOT]bin\$(var.ExeName)&quot; &quot;%1&quot;" Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\RegisteredApplications" Name="$(var.ProdName)" Value="SOFTWARE\$(var.ShortProdName)\Capabilities" Type="string" />

Expand All @@ -96,8 +92,6 @@
<!-- Extend to the "open with" list + Win7 jump menu pinning -->
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\Classes\Applications\$(var.ExeKey)\SupportedTypes" Name=".mscz" Value="" Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\Classes\Applications\$(var.ExeKey)\SupportedTypes" Name=".mscx" Value="" Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\Classes\Applications\$(var.ExeKey)\SupportedTypes" Name=".mscz," Value="" Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\Classes\Applications\$(var.ExeKey)\SupportedTypes" Name=".mscx," Value="" Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\Classes\Applications\$(var.ExeKey)\SupportedTypes" Name=".xml" Value="" Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\Classes\Applications\$(var.ExeKey)\SupportedTypes" Name=".musicxml" Value="" Type="string" />
<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\Classes\Applications\$(var.ExeKey)\SupportedTypes" Name=".mxl" Value="" Type="string" />
Expand Down Expand Up @@ -141,23 +135,7 @@
<Verb Id="open" TargetFile="$(var.ExeId)" Command="Open" Argument="&quot;%1&quot;" />
<MIME Advertise="no" ContentType="application/x-musescore+xml" Default="no" />
</Extension>
</ProgId>

<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\Classes\MuseScore.mscz," Value="Compressed MuseScore Backup File" Type="string"/>
<ProgId Id="MuseScore.mscz," Description="Compressed Backup MuseScore File" Advertise="no" Icon="$(var.ExeId)" IconIndex="1">
<Extension Id="mscz," Advertise="no">
<Verb Id="open" TargetFile="$(var.ExeId)" Command="Open" Argument="&quot;%1&quot;" />
<MIME Advertise="no" ContentType="application/x-musescore" Default="yes" />
</Extension>
</ProgId>

<RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\Classes\MuseScore.mscx," Value="MuseScore Backup File" Type="string" />
<ProgId Id="MuseScore.mscx," Description="MuseScore Backup File" Advertise="no" Icon="$(var.ExeId)" IconIndex="1">
<Extension Id="mscx," Advertise="no">
<Verb Id="open" TargetFile="$(var.ExeId)" Command="Open" Argument="&quot;%1&quot;" />
<MIME Advertise="no" ContentType="application/x-musescore+xml" Default="no" />
</Extension>
</ProgId>
</ProgId>
</Component>

<FeatureRef Id="ProductFeature">
Expand Down

9 comments on commit daa5fb7

@Jojo-Schmitz
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz commented on daa5fb7 Oct 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reverts #6532, doesn't it?
But for Windows only, not for macOS and Linux.

@vpereverzev
Copy link
Member Author

@vpereverzev vpereverzev commented on daa5fb7 Oct 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reverts #6532, doesn't it?
But for Windows only, not for macOS and Linux.

Yep, only for Windows. It's turned out that WIX can't recognize ".mscz," and ".mscx," for some reason.

@igorkorsukov
Copy link
Contributor

@igorkorsukov igorkorsukov commented on daa5fb7 Oct 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

light.exe : error LGHT0001 : Item has already been added. Key in dictionary: 'regF633B657796BE3871D23C0AD04CBA1BA'  Key being added: 'regF633B657796BE3871D23C0AD04CBA1BA'

win32/WIX/main.wixobj

<field>RegisterTypes</field></row><row sourceLineNumber="D:\a\MuseScore\MuseScore\msvc.build_x86\_CPack_Packages\win32\WIX\main.wxs*85"><field>regF633B657796BE3871D23C0AD04CBA1BA</field>
...
<field>RegisterTypes</field></row><row sourceLineNumber="D:\a\MuseScore\MuseScore\msvc.build_x86\_CPack_Packages\win32\WIX\main.wxs*87"><field>regF633B657796BE3871D23C0AD04CBA1BA</field>

win32/WIX/main.wxs

85: <RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\$(var.ShortProdName)\Capabilities\MIMEAssociations" Name="application/x-musescore" Value="MuseScore.mscz" Type="string" />

87: <RegistryValue Root="$(var.RegistryRoot)" Key="SOFTWARE\$(var.ShortProdName)\Capabilities\MIMEAssociations" Name="application/x-musescore" Value="MuseScore.mscz," Type="string" />

@Jojo-Schmitz
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz commented on daa5fb7 Oct 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe those commas need to get escaped in some way?

@igorkorsukov
Copy link
Contributor

@igorkorsukov igorkorsukov commented on daa5fb7 Oct 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe thiose commas need to get escaped in some way?

I agree we need something different, maybe just like .mscxbac

@Jojo-Schmitz
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz commented on daa5fb7 Oct 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I do manually register ' *.mscz,' I get the following 8 registry keys (and it works too):

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.mscz,]
@="mscz,_auto_file"

[HKEY_CURRENT_USER\Software\Classes\.mscz,]
@="mscz,_auto_file"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mscz,]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mscz,\OpenWithList]
"a"="MuseScore3.exe"
"MRUList"="a"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mscz,\OpenWithProgids]
"mscz,_auto_file"=hex(0):

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.mscz,]
"0"=hex:45,00,75,00,70,00,68,00,6f,00,6e,00,69,00,63,00,5f,00,53,00,6f,00,75,\
  00,6e,00,64,00,73,00,2d,00,43,00,6c,00,61,00,72,00,69,00,6e,00,65,00,74,00,\
  20,00,43,00,68,00,6f,00,69,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,00,\
  00,b6,00,32,00,00,00,00,00,00,00,00,00,00,00,45,75,70,68,6f,6e,69,63,5f,53,\
  6f,75,6e,64,73,2d,43,6c,61,72,69,6e,65,74,20,43,68,6f,69,72,2e,6d,73,63,7a,\
  2c,2e,6c,6e,6b,00,00,7e,00,08,00,04,00,ef,be,00,00,00,00,00,00,00,00,2a,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,45,\
  00,75,00,70,00,68,00,6f,00,6e,00,69,00,63,00,5f,00,53,00,6f,00,75,00,6e,00,\
  64,00,73,00,2d,00,43,00,6c,00,61,00,72,00,69,00,6e,00,65,00,74,00,20,00,43,\
  00,68,00,6f,00,69,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,2e,00,6c,00,\
  6e,00,6b,00,00,00,38,00,00,00
"MRUListEx"=hex:03,00,00,00,02,00,00,00,01,00,00,00,00,00,00,00,ff,ff,ff,ff
"1"=hex:48,00,61,00,6c,00,6c,00,65,00,6c,00,75,00,6a,00,61,00,68,00,5f,00,43,\
  00,6f,00,68,00,65,00,6e,00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,00,00,8c,00,\
  32,00,00,00,00,00,00,00,00,00,00,00,48,61,6c,6c,65,6c,75,6a,61,68,5f,43,6f,\
  68,65,6e,2e,6d,73,63,7a,2c,2e,6c,6e,6b,00,00,62,00,08,00,04,00,ef,be,00,00,\
  00,00,00,00,00,00,2a,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,48,00,61,00,6c,00,6c,00,65,00,6c,00,75,00,6a,00,61,00,\
  68,00,5f,00,43,00,6f,00,68,00,65,00,6e,00,2e,00,6d,00,73,00,63,00,7a,00,2c,\
  00,2e,00,6c,00,6e,00,6b,00,00,00,2a,00,00,00
"2"=hex:53,00,79,00,6e,00,74,00,68,00,5f,00,42,00,61,00,74,00,74,00,6c,00,65,\
  00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,00,00,80,00,32,00,00,00,00,00,00,00,\
  00,00,00,00,53,79,6e,74,68,5f,42,61,74,74,6c,65,2e,6d,73,63,7a,2c,2e,6c,6e,\
  6b,00,00,5a,00,08,00,04,00,ef,be,00,00,00,00,00,00,00,00,2a,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,53,00,79,00,6e,\
  00,74,00,68,00,5f,00,42,00,61,00,74,00,74,00,6c,00,65,00,2e,00,6d,00,73,00,\
  63,00,7a,00,2c,00,2e,00,6c,00,6e,00,6b,00,00,00,26,00,00,00
"3"=hex:2e,00,57,00,61,00,74,00,65,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,\
  00,00,00,6e,00,32,00,00,00,00,00,00,00,00,00,00,00,2e,57,61,74,65,72,2e,6d,\
  73,63,7a,2c,2e,6c,6e,6b,00,00,4e,00,08,00,04,00,ef,be,00,00,00,00,00,00,00,\
  00,2a,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,2e,00,57,00,61,00,74,00,65,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,\
  00,2e,00,6c,00,6e,00,6b,00,00,00,20,00,00,00

[HKEY_USERS\S-1-5-21-3750713793-2990487066-405195722-1001\Software\Classes\.mscz,]
@="mscz,_auto_file"

[HKEY_USERS\S-1-5-21-3750713793-2990487066-405195722-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mscz,]

[HKEY_USERS\S-1-5-21-3750713793-2990487066-405195722-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mscz,\OpenWithList]
"a"="MuseScore3.exe"
"MRUList"="a"

[HKEY_USERS\S-1-5-21-3750713793-2990487066-405195722-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mscz,\OpenWithProgids]
"mscz,_auto_file"=hex(0):

[HKEY_USERS\S-1-5-21-3750713793-2990487066-405195722-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.mscz,]
"0"=hex:45,00,75,00,70,00,68,00,6f,00,6e,00,69,00,63,00,5f,00,53,00,6f,00,75,\
  00,6e,00,64,00,73,00,2d,00,43,00,6c,00,61,00,72,00,69,00,6e,00,65,00,74,00,\
  20,00,43,00,68,00,6f,00,69,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,00,\
  00,b6,00,32,00,00,00,00,00,00,00,00,00,00,00,45,75,70,68,6f,6e,69,63,5f,53,\
  6f,75,6e,64,73,2d,43,6c,61,72,69,6e,65,74,20,43,68,6f,69,72,2e,6d,73,63,7a,\
  2c,2e,6c,6e,6b,00,00,7e,00,08,00,04,00,ef,be,00,00,00,00,00,00,00,00,2a,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,45,\
  00,75,00,70,00,68,00,6f,00,6e,00,69,00,63,00,5f,00,53,00,6f,00,75,00,6e,00,\
  64,00,73,00,2d,00,43,00,6c,00,61,00,72,00,69,00,6e,00,65,00,74,00,20,00,43,\
  00,68,00,6f,00,69,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,2e,00,6c,00,\
  6e,00,6b,00,00,00,38,00,00,00
"MRUListEx"=hex:03,00,00,00,02,00,00,00,01,00,00,00,00,00,00,00,ff,ff,ff,ff
"1"=hex:48,00,61,00,6c,00,6c,00,65,00,6c,00,75,00,6a,00,61,00,68,00,5f,00,43,\
  00,6f,00,68,00,65,00,6e,00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,00,00,8c,00,\
  32,00,00,00,00,00,00,00,00,00,00,00,48,61,6c,6c,65,6c,75,6a,61,68,5f,43,6f,\
  68,65,6e,2e,6d,73,63,7a,2c,2e,6c,6e,6b,00,00,62,00,08,00,04,00,ef,be,00,00,\
  00,00,00,00,00,00,2a,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,48,00,61,00,6c,00,6c,00,65,00,6c,00,75,00,6a,00,61,00,\
  68,00,5f,00,43,00,6f,00,68,00,65,00,6e,00,2e,00,6d,00,73,00,63,00,7a,00,2c,\
  00,2e,00,6c,00,6e,00,6b,00,00,00,2a,00,00,00
"2"=hex:53,00,79,00,6e,00,74,00,68,00,5f,00,42,00,61,00,74,00,74,00,6c,00,65,\
  00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,00,00,80,00,32,00,00,00,00,00,00,00,\
  00,00,00,00,53,79,6e,74,68,5f,42,61,74,74,6c,65,2e,6d,73,63,7a,2c,2e,6c,6e,\
  6b,00,00,5a,00,08,00,04,00,ef,be,00,00,00,00,00,00,00,00,2a,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,53,00,79,00,6e,\
  00,74,00,68,00,5f,00,42,00,61,00,74,00,74,00,6c,00,65,00,2e,00,6d,00,73,00,\
  63,00,7a,00,2c,00,2e,00,6c,00,6e,00,6b,00,00,00,26,00,00,00
"3"=hex:2e,00,57,00,61,00,74,00,65,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,\
  00,00,00,6e,00,32,00,00,00,00,00,00,00,00,00,00,00,2e,57,61,74,65,72,2e,6d,\
  73,63,7a,2c,2e,6c,6e,6b,00,00,4e,00,08,00,04,00,ef,be,00,00,00,00,00,00,00,\
  00,2a,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,2e,00,57,00,61,00,74,00,65,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,\
  00,2e,00,6c,00,6e,00,6b,00,00,00,20,00,00,00

[HKEY_USERS\S-1-5-21-3750713793-2990487066-405195722-1001_Classes\.mscz,]
@="mscz,_auto_file"

Maybe this gives a hint at how to properly add them?

@vpereverzev
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I do manually register ' *.mscz,' I get the following registry keys (and it works too):

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.mscz,]
@="mscz,_auto_file"

[HKEY_CURRENT_USER\Software\Classes\.mscz,]
@="mscz,_auto_file"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mscz,]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mscz,\OpenWithList]
"a"="MuseScore3.exe"
"MRUList"="a"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mscz,\OpenWithProgids]
"mscz,_auto_file"=hex(0):

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.mscz,]
"0"=hex:45,00,75,00,70,00,68,00,6f,00,6e,00,69,00,63,00,5f,00,53,00,6f,00,75,\
  00,6e,00,64,00,73,00,2d,00,43,00,6c,00,61,00,72,00,69,00,6e,00,65,00,74,00,\
  20,00,43,00,68,00,6f,00,69,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,00,\
  00,b6,00,32,00,00,00,00,00,00,00,00,00,00,00,45,75,70,68,6f,6e,69,63,5f,53,\
  6f,75,6e,64,73,2d,43,6c,61,72,69,6e,65,74,20,43,68,6f,69,72,2e,6d,73,63,7a,\
  2c,2e,6c,6e,6b,00,00,7e,00,08,00,04,00,ef,be,00,00,00,00,00,00,00,00,2a,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,45,\
  00,75,00,70,00,68,00,6f,00,6e,00,69,00,63,00,5f,00,53,00,6f,00,75,00,6e,00,\
  64,00,73,00,2d,00,43,00,6c,00,61,00,72,00,69,00,6e,00,65,00,74,00,20,00,43,\
  00,68,00,6f,00,69,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,2e,00,6c,00,\
  6e,00,6b,00,00,00,38,00,00,00
"MRUListEx"=hex:03,00,00,00,02,00,00,00,01,00,00,00,00,00,00,00,ff,ff,ff,ff
"1"=hex:48,00,61,00,6c,00,6c,00,65,00,6c,00,75,00,6a,00,61,00,68,00,5f,00,43,\
  00,6f,00,68,00,65,00,6e,00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,00,00,8c,00,\
  32,00,00,00,00,00,00,00,00,00,00,00,48,61,6c,6c,65,6c,75,6a,61,68,5f,43,6f,\
  68,65,6e,2e,6d,73,63,7a,2c,2e,6c,6e,6b,00,00,62,00,08,00,04,00,ef,be,00,00,\
  00,00,00,00,00,00,2a,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,48,00,61,00,6c,00,6c,00,65,00,6c,00,75,00,6a,00,61,00,\
  68,00,5f,00,43,00,6f,00,68,00,65,00,6e,00,2e,00,6d,00,73,00,63,00,7a,00,2c,\
  00,2e,00,6c,00,6e,00,6b,00,00,00,2a,00,00,00
"2"=hex:53,00,79,00,6e,00,74,00,68,00,5f,00,42,00,61,00,74,00,74,00,6c,00,65,\
  00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,00,00,80,00,32,00,00,00,00,00,00,00,\
  00,00,00,00,53,79,6e,74,68,5f,42,61,74,74,6c,65,2e,6d,73,63,7a,2c,2e,6c,6e,\
  6b,00,00,5a,00,08,00,04,00,ef,be,00,00,00,00,00,00,00,00,2a,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,53,00,79,00,6e,\
  00,74,00,68,00,5f,00,42,00,61,00,74,00,74,00,6c,00,65,00,2e,00,6d,00,73,00,\
  63,00,7a,00,2c,00,2e,00,6c,00,6e,00,6b,00,00,00,26,00,00,00
"3"=hex:2e,00,57,00,61,00,74,00,65,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,\
  00,00,00,6e,00,32,00,00,00,00,00,00,00,00,00,00,00,2e,57,61,74,65,72,2e,6d,\
  73,63,7a,2c,2e,6c,6e,6b,00,00,4e,00,08,00,04,00,ef,be,00,00,00,00,00,00,00,\
  00,2a,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,2e,00,57,00,61,00,74,00,65,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,\
  00,2e,00,6c,00,6e,00,6b,00,00,00,20,00,00,00

[HKEY_USERS\S-1-5-21-3750713793-2990487066-405195722-1001\Software\Classes\.mscz,]
@="mscz,_auto_file"

[HKEY_USERS\S-1-5-21-3750713793-2990487066-405195722-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mscz,]

[HKEY_USERS\S-1-5-21-3750713793-2990487066-405195722-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mscz,\OpenWithList]
"a"="MuseScore3.exe"
"MRUList"="a"

[HKEY_USERS\S-1-5-21-3750713793-2990487066-405195722-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mscz,\OpenWithProgids]
"mscz,_auto_file"=hex(0):

[HKEY_USERS\S-1-5-21-3750713793-2990487066-405195722-1001\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.mscz,]
"0"=hex:45,00,75,00,70,00,68,00,6f,00,6e,00,69,00,63,00,5f,00,53,00,6f,00,75,\
  00,6e,00,64,00,73,00,2d,00,43,00,6c,00,61,00,72,00,69,00,6e,00,65,00,74,00,\
  20,00,43,00,68,00,6f,00,69,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,00,\
  00,b6,00,32,00,00,00,00,00,00,00,00,00,00,00,45,75,70,68,6f,6e,69,63,5f,53,\
  6f,75,6e,64,73,2d,43,6c,61,72,69,6e,65,74,20,43,68,6f,69,72,2e,6d,73,63,7a,\
  2c,2e,6c,6e,6b,00,00,7e,00,08,00,04,00,ef,be,00,00,00,00,00,00,00,00,2a,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,45,\
  00,75,00,70,00,68,00,6f,00,6e,00,69,00,63,00,5f,00,53,00,6f,00,75,00,6e,00,\
  64,00,73,00,2d,00,43,00,6c,00,61,00,72,00,69,00,6e,00,65,00,74,00,20,00,43,\
  00,68,00,6f,00,69,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,2e,00,6c,00,\
  6e,00,6b,00,00,00,38,00,00,00
"MRUListEx"=hex:03,00,00,00,02,00,00,00,01,00,00,00,00,00,00,00,ff,ff,ff,ff
"1"=hex:48,00,61,00,6c,00,6c,00,65,00,6c,00,75,00,6a,00,61,00,68,00,5f,00,43,\
  00,6f,00,68,00,65,00,6e,00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,00,00,8c,00,\
  32,00,00,00,00,00,00,00,00,00,00,00,48,61,6c,6c,65,6c,75,6a,61,68,5f,43,6f,\
  68,65,6e,2e,6d,73,63,7a,2c,2e,6c,6e,6b,00,00,62,00,08,00,04,00,ef,be,00,00,\
  00,00,00,00,00,00,2a,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,48,00,61,00,6c,00,6c,00,65,00,6c,00,75,00,6a,00,61,00,\
  68,00,5f,00,43,00,6f,00,68,00,65,00,6e,00,2e,00,6d,00,73,00,63,00,7a,00,2c,\
  00,2e,00,6c,00,6e,00,6b,00,00,00,2a,00,00,00
"2"=hex:53,00,79,00,6e,00,74,00,68,00,5f,00,42,00,61,00,74,00,74,00,6c,00,65,\
  00,2e,00,6d,00,73,00,63,00,7a,00,2c,00,00,00,80,00,32,00,00,00,00,00,00,00,\
  00,00,00,00,53,79,6e,74,68,5f,42,61,74,74,6c,65,2e,6d,73,63,7a,2c,2e,6c,6e,\
  6b,00,00,5a,00,08,00,04,00,ef,be,00,00,00,00,00,00,00,00,2a,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,53,00,79,00,6e,\
  00,74,00,68,00,5f,00,42,00,61,00,74,00,74,00,6c,00,65,00,2e,00,6d,00,73,00,\
  63,00,7a,00,2c,00,2e,00,6c,00,6e,00,6b,00,00,00,26,00,00,00
"3"=hex:2e,00,57,00,61,00,74,00,65,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,\
  00,00,00,6e,00,32,00,00,00,00,00,00,00,00,00,00,00,2e,57,61,74,65,72,2e,6d,\
  73,63,7a,2c,2e,6c,6e,6b,00,00,4e,00,08,00,04,00,ef,be,00,00,00,00,00,00,00,\
  00,2a,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,2e,00,57,00,61,00,74,00,65,00,72,00,2e,00,6d,00,73,00,63,00,7a,00,2c,\
  00,2e,00,6c,00,6e,00,6b,00,00,00,20,00,00,00

[HKEY_USERS\S-1-5-21-3750713793-2990487066-405195722-1001_Classes\.mscz,]
@="mscz,_auto_file"

Yes, it could work if you write it manually. There is only problem with WIX parser, for some reason it can't recognize the difference between "mscz" and "mscz," and this issue leads to crash during the build

@Jojo-Schmitz
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz commented on daa5fb7 Oct 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess it that is used the comma as a field separator in its syntax. And maybe there is a way to hide it from that, via single ticks or backslash for example?

@Jojo-Schmitz
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz commented on daa5fb7 Oct 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whatever we do with it, we'd need to do it to the 3.x branch too (I'll amend my corresponding PR for master accordingly)

Please sign in to comment.