This will allow you to have one installer definition, but not a single
installer.  You will still need to build for 32-bit and 64-bit version of
the MSI.   To the OP...  Why not just make a 32 bit installer, and not
restrict it if you don't care which platform you're installing to.  a 32 bit
installer should work just fine on a 64 bit system.

Chris

On Fri, Sep 12, 2008 at 2:35 AM, Robert O'Brien <[EMAIL PROTECTED]
> wrote:

> Since I know that everything I'm installing is managed code anyCpu build
> output I enabled this with my service deliverable wix sources using the
> following syntax.
>
>    <?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" ?>
>        <?define DotNetFramework35Folder =
> "[%SystemRoot]\Microsoft.NET\Framework64\v3.5\" ?>
>        <?define DotNetFramework20Folder =
> "[%SystemRoot]\Microsoft.NET\Framework64\v2.0.50727\" ?>
>    <?else?>
>        <?define Win64 = "no" ?>
>        <?define SystemFolder = "SystemFolder" ?>
>        <?define SystemFolderX86 = "SystemFolder" ?>
>        <?define SoftwareKey = "Software" ?>
>        <?define SoftwareKeyX86 = "Software" ?>
>        <?define ProgramFilesFolder = "ProgramFilesFolder" ?>
>        <?define ProgramFilesFolderX86 = "ProgramFilesFolder" ?>
>        <?define DotNetFramework35Folder =
> "[%SystemRoot]\Microsoft.NET\Framework\v3.5\" ?>
>        <?define DotNetFramework20Folder =
> "[%SystemRoot]\Microsoft.NET\Framework\v2.0.50727\" ?>
>    <?endif?>
>
>    <Directory Id="DotNetFramework20Folder"></Directory>
>
>    <Directory Id="DotNetFramework35Folder"></Directory>
>
>    <Directory Id="TARGETDIR" Name="SourceDir">
>        <Directory Id="$(var.ProgramFilesFolder)">
>            <Directory Id="INSTALLDIR" Name="!(loc.ProductDir)">
>                        <Directory Id="MyComponent1Dir" Name="MyComponent1">
>                  </Directory>
>                </Directory>
>         </Directory>
>    </Directory>
>
>    <DirectoryRef Id="MyComponent1Dir">
>       <Component Id="MyComponent1Name" Guid="<yourguidhere>"
> Win64="$(var.Win64)">
>       </Component>
>    </DirectoryRef>
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] On Behalf Of Sandeep Gautam (HCL
> Technologies Ltd)
> Sent: Thursday, September 11, 2008 7:39 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] How to create only installer for 32 Bit and 64 bit OS
>
> Hi,
>
> I want to create one common installer that will work for 32 Bit and 64 bit
> OS.
> How can I do this?
>
>
> Regards
> Sandeep
>
> -------------------------------------------------------------------------
> 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
>
-------------------------------------------------------------------------
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