diff deploy/win64/sonic-visualiser.wxs.in @ 2576:1799e90689b5

Avoid WinRT dependency when packaging for Win7
author Chris Cannam
date Tue, 21 Jul 2020 14:03:23 +0100
parents 119588c42772
children
line wrap: on
line diff
--- a/deploy/win64/sonic-visualiser.wxs.in	Fri Jun 26 09:46:17 2020 +0100
+++ b/deploy/win64/sonic-visualiser.wxs.in	Tue Jul 21 14:03:23 2020 +0100
@@ -174,6 +174,30 @@
           </Component>
 
           <Component Win64="yes"
+                     Id="OSWin10"
+                     Transitive="yes"
+                     Guid="7b9ce14e-62ba-446e-ad45-9642b3bc4188">
+            <Condition>VersionNT64 &gt;= 603</Condition>
+            <File
+                Id="os_win10"
+                Name="os.dll"
+                Source="release\os.dll"
+                KeyPath="yes"/>
+          </Component>
+
+          <Component Win64="yes"
+                     Id="OSOther"
+                     Transitive="yes"
+                     Guid="4419cc33-2a69-437e-8466-98f9104d01e9">
+            <Condition>NOT (VersionNT64 &gt;= 603)</Condition>
+            <File
+                Id="os_other"
+                Name="os.dll"
+                Source="release\os_other.dll"
+                KeyPath="yes"/>
+          </Component>
+
+          <Component Win64="yes"
                Id="VCRuntime"
                Guid="251D9513-BBD2-47CF-BE78-EF79446F7683">
 
@@ -349,6 +373,8 @@
       <ComponentRef Id="SVFileAssociation"/>
       <ComponentRef Id="Sndfile"/>
       <ComponentRef Id="OpenSSL"/>
+      <ComponentRef Id="OSWin10"/>
+      <ComponentRef Id="OSOther"/>
       <ComponentRef Id="Qt5"/>
       <ComponentRef Id="VCRuntime"/>
       <ComponentRef Id="Qt5PlatformPlugins"/>