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

Anthony LaMark anthony at squadratechnologies.com
Thu Jul 13 09:26:09 PDT 2017


First, thanks Nir, Tom and Tobias for the inputs and suggestions...you got my brain looking at different concepts and I really appreciate it.

I have taken all your input and have done some new experimenting (I "was" running out of ideas) and have narrowed it down to the fact that the conditional logic I am using is flawed (shocker! 😊).  

I ended up on this page: https://www.firegiant.com/wix/tutorial/com-expression-syntax-miscellanea/expression-syntax/
>From the text on that page:
	PROPERTY This will evaluate to true if the property has been set and has any value, even if this value is false or 0.
	NOT PROPERTY This will evaluate to true if the property has not been set at all.

Therefore, I have modified the customaction dll to either create a private property named DriverCondition if it is W10 or not create a private property named DriverCondition when it is not W10.

Then, the conditions on the two Components look like:
 	<![CDATA[NOT DriverCondition]]> <==This is not a W10 computer
 	<![CDATA[DriverCondition]]> <==This is a W10 computer

But, ideally, I would like to do a comparison of the private property's value (DriverCondition) to a value (preparing for other curve balls that MS comes up with).
The current approach above is really just a boolean (2 states).
What I would really like is:
If (DriverCondition == 0) <== OS less than W10
If (DriverCondition == 1) <== OS is W10
if (DriverCondition == 2) <== This is the next Windows OS after 10 😊
How do you do this with a property and does anyone know where this documentation resides?
The comparison logic seems really sensitive 

Some questions in my head are:
For the comparison constant, do you put no quotes, single quotes, double quotes, what if it is a numeric?, is everything treated like a string? Can you apply xslt transforms on it to make it numeric, etc.
For the property, do you just reference the variable as x, $x, var.x, etc.?

Thanks again for all the great help!

Anthony LaMark
squadra technologies
http://www.squadratechnologies.com
562.221.3079

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Tobias S
Sent: Thursday, July 13, 2017 5:32 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] conditional install of device driver using WIX and DIFXAPP because of new/stricter signing requirements in W10

@Anthony: ok... just read same guids for mutually excluding components.
Assume this will in your case cause trouble with the wrong installed files

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/






More information about the wix-users mailing list