[wix-users] question for Bootstrapper (burn)

Edwin Castro egcastr at gmail.com
Sat Sep 1 18:37:22 PDT 2018


Burn is failing to parse your version literal. Change it to v2.10.119.0.

--
Edwin G. Castro

On Sat, Sep 1, 2018, 17:45 Steve Ogilvie via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> 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
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list