Background
--------------
A while ago I raised an issue to do with a warning being generated when using a 
variable for the Component Win64 attribute value.   Below you'll see the an 
excerpt of the logic I'm using so that in the case of all managed code 
deliverables I can create one set of wix sources that can produce x64 and x86 
specific build output by just switching the wixproj platform setting.    The 
issue I'm running into that was happening before is using a variable for 
Component Win64 attribute value generates a generic warning not uniquely 
suppressible in wixproj | build | suppress specific warnings field.

Question
-----------
Any insights on how I might still use a $(var.Platform) derived value for the 
Win64 attribute and also suppress the generic warning generated by every 
instance where I do this so that my project build doesn't break building when 
the treat warnings as errors quality assurance project setting is in place.

Warning
-----------
The 'Win64' attribute is invalid - The value '$(var.Win64)' is invalid 
according to its datatype 'http://schemas.microsoft.com/wix/2006/wi:YesNoType' 
- The '$' character, hexadecimal value 0x24, cannot be included in a name.

Sources
----------
<?if $(var.Platform) = "x64" ?>
    <?define Win64 = "yes" ?>
    <?define SystemFolder = "System64Folder" ?>
    <?define SystemFolderX86 = "SystemFolder" ?>
    <?define SoftwareKey = "Software" ?>
    <?define SoftwareKeyX86 = "Software\Wow6432Node" ?>
    <?define ProgramFilesFolder = "ProgramFiles64Folder" ?>
    <?define ProgramFilesFolderX86 = "ProgramFilesFolder" ?>
<?else?>
    <?define Win64 = "no" ?>
    <?define SystemFolder = "SystemFolder" ?>
    <?define SystemFolderX86 = "SystemFolder" ?>
    <?define SoftwareKey = "Software" ?>
    <?define SoftwareKeyX86 = "Software" ?>
    <?define ProgramFilesFolder = "ProgramFilesFolder" ?>
    <?define ProgramFilesFolderX86 = "ProgramFilesFolder" ?>
<?endif?>

<Component Id="SomeComponent1" Guid="PUT-GUID-HERE" Win64="$(var.Win64)">
    . . .
</Component>

<Component Id="SomeComponent2" Guid="PUT-GUID-HERE" Win64="$(var.Win64)">
    . . .
</Component>


/eom
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to