<ExePackage InstallCommand='/q /action=UPGRADE /HIDECONSOLE /IACCEPTSQLSERVERLICENSETERMS=1 /INSTANCENAME=ABC' InstallCondition="SqlVersion32 < v10.50.1600.1 AND SqlEdition32 = 'Express Edition'"/>
I am using the above code. In install condition I want to check if SqlEdition32
(its value is provided by a registry search) is Express edition but I am having error saying:
Error 0x8007000d: Failed to parse condition "SqlVersion32 < v10.50.1600.1 AND SqlEdition32='Express Edition'". Unexpected character at position 46.
Position 46 is where I am comparing SqlEdition32
string variable to string 'Express Edition'
I want to know how to compare strings in WiX?
Use double quotes around strings, not single quotes.
You have two solutions:
InstallCondition='SqlVersion32 < v10.50.1600.1 AND SqlEdition32 = "Express Edition"'
InstallCondition="SqlVersion32 < v10.50.1600.1 AND SqlEdition32 = "Express Edition""
User contributions licensed under CC BY-SA 3.0