[wix-users] conditional install of device driver using WIX and DIFXAPP because of new/stricter signing requirements in W10

Tobias S tobias.s1979 at gmail.com
Thu Jul 20 06:47:33 PDT 2017


Just some correction on my own stupidity (And for having a correct working
code fragment). For sure it must be distinguished between SHA1 for lower
than Win10 (VersionNT < 604) and EV for Win10 and higher (VersionNT > 603)
correct:

          <!--Drivers\amd64\: Windows lower than 10-->
<Component Id="USBDriver.dll.x64" Feature="USBDriver.x64"
Guid="{someGuid}">            <Condition>VersionNT <
604</Condition>            <File Id="USBDriver_x64.dll.x64"
Name="USBDriver_x64.dll"
Source="Sha1CrossSigned\amd64\USBDriver_x64.dll" KeyPath="yes" />
    </Component>

           <!--Drivers\amd64\: Windows 10 and higher-->
<Component Id="USBDriver_x64.dll.x64.w10" Feature="USBDriver.x64"
Guid="{AnotherGuid}" >            <Condition>VersionNT >
603</Condition>            <File Id="USBDriver_x64.dll.x64.w10"
Name="USBDriver_x64.dll" Source="EVSigned\amd64\USBDriver_x64.dll"
KeyPath="yes" />          </Component>

Interesting is the point of different VersionNT values for Win10
around. Some installation tool vendor define it as 1000 but Microsoft
defines it as 603!
http://www.advancedinstaller.com/user-guide/qa-OS-dependent-install.html
https://support.microsoft.com/en-us/help/3202260/versionnt-value-for-windows-10-and-windows-server-2016
(wrong definition!)


2017-07-13 14:26 GMT+02:00 Tobias S <tobias.s1979 at gmail.com>:

> just have something like that up and running by conditions on components.
> For now I can't think of any cons except the mentioned build warnings:
>
>           <!--Drivers\amd64\: Windows lower than 10-->          <Component Id="USBDriver.dll.x64" Feature="USBDriver.x64" Guid="{someGuid}">            <Condition>VersionNT < 603</Condition>            <File Id="USBDriver_x64.dll.x64" Name="USBDriver_x64.dll" Source="Sha1CrossSigned\amd64\USBDriver_x64.dll" KeyPath="yes" />          </Component>
>
>            <!--Drivers\amd64\: Windows 10 and higher-->          <Component Id="USBDriver_x64.dll.x64.w10" Feature="USBDriver.x64" Guid="{AnotherGuid}" >            <Condition>VersionNT > 602</Condition>            <File Id="USBDriver_x64.dll.x64.w10" Name="USBDriver_x64.dll" Source="EVSigned\amd64\USBDriver_x64.dll" KeyPath="yes" />          </Component>
>
>



More information about the wix-users mailing list