Hey Russell,

Have you tried putting brackets around the GUID?

http://msdn.microsoft.com/en-us/library/aa368767(VS.85).aspx

Thanks,

Brian Rogers
"Intelligence removes complexity." - Me
http://blogs.msdn.com/icumove <-- NEW


On Wed, Jul 15, 2009 at 6:31 AM, <rh_maill...@mac.com> wrote:

> I'm trying to put a GUID in to a wix variable but can't seem to make it
> work.  I've successfully put the same GUID in to a pre-processor define and
> it works correctly.  Is this a bug in Wix 3 or am I trying to use wix
> variables incorrectly.
>
> I've declared the define like this:
>
> <?define UPGRADE_ID = "5FC4DAE6-D1B9-42D6-BF3A-6DA600FB8A3F"?>
>
> And was accessing it like this:
>
>  <Upgrade Id="$(var.UPGRADE_ID)">
>
> Which worked fine.
>
> I've then tried to declare this as a wix variable so it can go in a library
> project like this:
>
> <WixVariable Id="UpgradeID" Value="5FC4DAE6-D1B9-42D6-BF3A-6DA600FB8A3F" />
>
> But if I then try and use this variable in an upgrade section:
>
>  <Upgrade Id="!(wix.UpgradeID)">
>
> I get the following 2 errors:
>
> Error   1       ICE03: Invalid GUID string (Be sure GUID is all UPPER
> case); Table: Upgrade, Column: UpgradeCode, Key(s):
> 5FC4DAE6-D1B9-42D6-BF3A-6DA600FB8A3F..0.2.0..256
>  C:\russell\ServerTools\trunk.wix\IssueChooserWix\Common.wxi     7       1
>     IssueChooserWix
> Error   2       ICE61: In Upgrade table UpgradeCode
> 5FC4DAE6-D1B9-42D6-BF3A-6DA600FB8A3F is not a valid GUID
>  C:\russell\ServerTools\trunk.wix\IssueChooserWix\Common.wxi     7       1
>     IssueChooserWix
>
> Is this the correct syntax to use wix variables?
>
> Thanks
>
> Russell
>
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to