>> adding a new solution platform type = "x64" Yes, that is the recommended approach. Use the VS Configuration Manager tool to add an x64 platform to the project, and optionally an x64 solution platform.
When using that method, if you need to check the current platform within the WiX source code, the corresponding variable that's autogenerated during the build is $(var.Platform). -Jason- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert O'Brien Sent: Monday, September 08, 2008 7:35 AM To: 'General discussion for Windows Installer XML toolset.' Subject: [WiX-users] using a Variable for Plaform setting causes undesired build warning When I use the current wix project templates by default it creates projects with Debug|x86 and Release|x86 configurations. I'm interpreting the bug closure details below to suggest that I no longer need to use <Package InstallerVersion="200" Compressed="yes" Platform="$(var.TargetPlatform)" /> to set the package platform type and can/should instead use <Package InstallerVersion="200" Compressed="yes" /> and let the build configuration manager | project | platform setting control whether I'm getting an x64 or x86 msi output. If that is correct then is it correct that users wanting x64 output are responsible for adding a new solution platform type = "x64" after the default new wix project wizard completes and select that as the platform type when the wix project gets built in order to product x64 msi output? -------------------------------------------------------------------------------- Date: 2008-09-07 12:40 Sender: barnson Logged In: YES user_id=26581 Originator: NO The message comes from VS trying to validate the source against the schema, which can't represent the preprocessor. Instead of using preprocessor variables, you can set the architecture in project properties and let it automatically set the package and component bitness. -------------------------------------------------------------------------------- Using a Variable for Plaform setting causes undesired build warning. <?ifndef TargetPlatform ?> <?define TargetPlatform = "x64" ?> <!--<?define TargetPlatform = "intel" ?>--> <!-- == x86 --> <?endif?> <Package InstallerVersion="200" Compressed="yes" Platform="$(var.TargetPlatform)" /> Warning 1 The 'Platform' attribute is invalid - The value '$(var.TargetPlatform)' is invalid according to its datatype 'NmToken' - The '$' character, hexadecimal value 0x24, cannot be included in a name. D:\tfswf\ws0\RXD_RXG_PTF\RXP Eventing\Main\Setup\Setup\Product.wxs 15 68 Setup (Setup\Setup) The reason I want to use a variable for Platform setting is so I can maintain wix sources that like the following for Components that reference "Any CPU" output. <Component Id="Counter" Guid="2A14A83A-F0F0-407D-8A4D-DA58242325C6" Win64="$(var.Win64)"> based on following variable settings <?if $(var.TargetPlatform) = "x64" ?> <?define ProcessorArchitecture = "amd64" ?> <?define ProcessorType = "x64" ?> <?define ProgramFilesFolder = "ProgramFiles64Folder" ?> <?define ProgramFilesFolderX86 = "ProgramFilesFolder" ?> <?define SystemFolder = "System64Folder" ?> <?define SystemFolderX86 = "SystemFolder" ?> <?define SoftwareKey = "Software" ?> <?define SoftwareKeyX86 = "Software\Wow6432Node" ?> <?define DotNetFramework20Folder = "[%SystemRoot]\Microsoft.NET\Framework64\v2.0.50727\" ?> <?define DotNetFramework35Folder = "[%SystemRoot]\Microsoft.NET\Framework64\v3.5\" ?> <?define Win64 = "yes" ?> <?else?> <?define ProcessorArchitecture = "x86" ?> <?define ProcessorType = "x86" ?> <?define ProgramFilesFolder = "ProgramFilesFolder" ?> <?define ProgramFilesFolderX86 = "ProgramFilesFolder" ?> <?define SystemFolder = "SystemFolder" ?> <?define SystemFolderX86 = "SystemFolder" ?> <?define DotNetFramework20Folder = "[%SystemRoot]\Microsoft.NET\Framework\v2.0.50727\" ?> <?define DotNetFramework35Folder = "[%SystemRoot]\Microsoft.NET\Framework\v3.5\" ?> <?define SoftwareKey = "Software" ?> <?define SoftwareKeyX86 = "Software" ?> <?define Win64 = "no" ?> <?endif?> ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- 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