[wix-users] question for Bootstrapper (burn)
Steve Ogilvie
SOGILVIE at msn.com
Sat Sep 1 17:45:19 PDT 2018
Hi all,
I am using WiX 3.11.1
I have a Bootstrapper which is checking to see if a “parent” installer is installed (will be a certain version and up, to check)
So I am using a check for .NET and my parent product:
<?define MyProductVersion = 2.10.119.0 ?>
<?define NetFx452MinRelease = 379893 ?>
<util:ProductSearch Id="ISMYPRODUCTINSTALLED" UpgradeCode="{<the Upgrade GUID of my parent Product>}" Result="version" Variable="ISMYPRODUCTINSTALLED" />
<util:RegistrySearchRef Id="NETFRAMEWORK45"/>
<!-- .NET 4.52 checks-->
<bal:Condition Message="Wrong version of .NET is installed.">
NETFRAMEWORK45 >= $(var.NetFx452MinRelease)
</bal:Condition>
<bal:Condition Message="You need to install MyProduct before proceeding with this installation.">
ISMYPRODUCTINSTALLED >= $(var.MyProductVersion)
</bal:Condition>
.Net works like a charm, the check for my product fails…
It reports:
Setting version variable 'ISMYPRODUCTINSTALLED ' to value '2.10.119.0'
Detected related package: {<the Upgrade GUID of my parent Product >}, scope: PerMachine, version: 2.10.119.0, language: 0 operation: MajorUpgrade
Error 0x8007000d: Failed to parse condition "ISMYPRODUCTINSTALLED >= 2.10.119.0". Unexpected character at position 30.
Error 0x8007000d: Failed to read next symbol.
Error 0x8007000d: Failed to parse value.
Error 0x8007000d: Failed to parse term.
Error 0x8007000d: Failed to parse boolean-factor.
Error 0x8007000d: Failed to parse boolean-term.
Error 0x8007000d: Failed to parse expression.
Error 0. Failed to parse condition ISMYPRODUCTINSTALLED >= 2.10.119.0. Unexpected symbol at position (null)
Error 0x8007000d: Failed to evaluate condition.
If I change the version to check to:
<?define MyProductVersion = 34209911 ?>
Which is the hex number in the registry:
I get:
Setting version variable 'ISMYPRODUCTINSTALLED ' to value '2.10.119.0'
Detected related package: {<the Upgrade GUID of my parent Product >}, scope: PerMachine, version: 2.10.119.0, language: 0 operation: MajorUpgrade
Condition 'ISMYPRODUCTINSTALLED >= 34209911' evaluates to false.
You need to install MyProduct before proceeding with this installation.
Error 0x81f40001: Bundle condition evaluated to false: ISMYPRODUCTINSTALLED >= 34209911
The product is installed, version 2.10.199.0 (in HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\GUID
Version REG_DWORD 0x020a0077 (34209911)
DisplayVersion is 2.10.199.0
Sigh, any idea what I can do to get this working?
Much thanks,
Steve
More information about the wix-users
mailing list