Hi Aaron,
Thanks for responses
In my case I dont want separate features. I modified the code. Plz have a
look and let me know
<?if $((VersionNT) AND (NOT VersionNT64)) ?>
<?define PrgFiles = "ProgramFiles64Folder" ?>
<?define Key="Software\Wow6432Node"?>
<?else?>
<?define PrgFiles = "ProgramFilesFolder" ?>
<?define Key="Software"?>
<?endif?>
<Directory Id="TARGETDIR" Name="SOURCEDIR">
<Directory Id="$(PrgFiles)" ShortSourceName="Progra~1" SourceName="Program
Files">
<Directory Id="INSTALLDIR" Name="Test">
<Component Id="Common.txt" Guid="{FC288E49-D459-4EE8-AC1F-375497A6E09B}">
<File Id="Common.txt" Name="Common.txt"KeyPath="yes" DiskId="1"
Source="SourceDir\File\Common.txt" />
<Registry Root="HKLM" Key="$(Key)\Test Program\" Name="InstallRoot"
Action="write" Type="expandable" Value="[INSTALLDIR]" />
<Registry Root="HKLM" Key="$(Key)\Test Program\Client\Diagnostic
Logging\Default" Name="Severity" Type="string" Value="ERROR" />
</Component>
<Component Id="_32bit.txt"
Guid="{E4D22ADB-9A91-4388-8F5E-391DB1CCB211}">
<Condition>(VersionNT) AND (NOT
VersionNT64)</Condition>
<File Id="_32bit.txt" Name="32bit.txt" KeyPath="yes"
DiskId="1" Source="SourceDir\File\_32bit.txt" />
</Component>
<Component Id="_64bit.txt"
Guid="{8EE8C9CE-2F2A-43B8-B6B6-AD8E01A4109F}" Win64="yes">
<Condition>(VersionNT64)</Condition>
<File Id="_64bit.txt" Name="64bit.txt" KeyPath="yes"
DiskId="1" Source="SourceDir\File\_64bit.txt" />
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="comm" AllowAdvertise="system" Display="expand" Level="3"
Title="commm">
<ComponentRef Id="_32bit.txt" />
<Condition Level="0">VersionNT64</Condition>
<ComponentRef Id="_64bit.txt" />
<Condition Level="0">VersionNT AND NOT
VersionNT64</Condition>
<ComponentRef Id="Common.txt" />
</Feature>
Aaron Shurts wrote:
>
> To further elaborate, consider the following snippet (I tested and it
> works):
> <Directory Id="TARGETDIR" Name="SOURCEDIR">
> <Directory Id="ProgramFilesFolder" ShortSourceName="Progra~1"
> SourceName="Program Files">
> <Directory Id="INSTALLDIR" Name="Test">
> <Component Id="Common.txt"
> Guid="{FC288E49-D459-4EE8-AC1F-375497A6E09B}">
> <File Id="Common.txt" Name="Common.txt"
> KeyPath="yes" DiskId="1" Source="SourceDir\File\Common.txt" />
> </Component>
> <Component Id="_32bit.txt"
> Guid="{E4D22ADB-9A91-4388-8F5E-391DB1CCB211}">
> <Condition>(VersionNT) AND (NOT
> VersionNT64)</Condition>
> <File Id="_32bit.txt" Name="32bit.txt"
> KeyPath="yes"
> DiskId="1" Source="SourceDir\File\_32bit.txt" />
> </Component>
> </Directory>
> </Directory>
> <Directory Id="ProgramFiles64Folder"
> ShortSourceName="PROGRA~1"
> SourceName="Program Files">
> <Directory Id="INSTALLDIR1" Name="Test">
> <Component Id="_64bit.txt"
> Guid="{8EE8C9CE-2F2A-43B8-B6B6-AD8E01A4109F}" Win64="yes">
> <Condition>(VersionNT64)</Condition>
> <File Id="_64bit.txt" Name="64bit.txt"
> KeyPath="yes"
> DiskId="1" Source="SourceDir\File\_64bit.txt" />
> </Component>
> </Directory>
> </Directory>
> </Directory>
>
> <Feature Id="32bit" AllowAdvertise="system" Display="expand"
> Level="3" Title="32bit">
> <ComponentRef Id="_32bit.txt" />
> <Condition Level="0">VersionNT64</Condition>
> </Feature>
> <Feature Id="64bit" AllowAdvertise="system" Display="expand"
> Level="3" Title="64bit">
> <ComponentRef Id="_64bit.txt" />
> <Condition Level="0">VersionNT AND NOT
> VersionNT64</Condition>
> </Feature>
> <Feature Id="Common" AllowAdvertise="system" Display="expand"
> Level="3" Title="Common">
> <ComponentRef Id="Common.txt" />
> </Feature>
>
> //aj
>
> On Jan 4, 2008 6:09 PM, Aaron Shurts <[EMAIL PROTECTED]> wrote:
>
>> I wouldn't think the package architecture would be terribly important. A
>> 32-bit package can be installed on either. I believe the key would be
>> marking the individual components as either 32-bit or 64-bit by setting
>> the
>> msidbComponentAttributes64bit attribute. You could even go so far as
>> separating them in two separate features and adding component conditions
>> to
>> ensure that 32-bit only components do not get installed on a 64-bit
>> system.
>>
>> The only question is would the Windows Installer service complain about a
>> package marked Intel in the Template Summary that contains 64-bit
>> components.
>>
>> //aj
>>
>>
>> On Jan 4, 2008 10:20 AM, Christopher Painter < [EMAIL PROTECTED]> wrote:
>>
>> > According to Stefan Krueger's blog Advanced Installer 6.1 supports the
>> > ability to build unified mixed 32/64 bit packages. I haven't looked to
>> see
>> > how they do it under the hood and I don't know if the technique is one
>> that
>> > WiX would support one day or not.
>> >
>> >
>> http://msmvps.com/blogs/installsite/archive/2007/12/20/advanced-installer-6-1-brings-unified-32-64-bit-installers-and-windows-firewall-support.aspx
>> >
>> >
>> >
>> > *Bob Arnson <[EMAIL PROTECTED]>* wrote:
>> >
>> > SaiTeja wrote:
>> > > 1) Is it possible to create one MSI for both 32bit and 64 bit OS
>> > >
>> >
>> > If you need to install 64-bit components, you must have a 64-bit
>> > package. If you have only 32-bit components, then a 32-bit package will
>> > install fine on an x64 OS.
>> >
>> > --
>> > sig://boB
>> > http://joyofsetup.com/
>> >
>> >
>> >
>> >
>> -------------------------------------------------------------------------
>> >
>> > This SF.net email is sponsored by: Microsoft
>> > Defy all challenges. Microsoft(R) Visual Studio 2005.
>> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> > _______________________________________________
>> > WiX-users mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/wix-users
>> >
>> >
>> > ------------------------------
>> > Looking for last minute shopping deals? Find them fast with Yahoo!
>> >
>> Search.<http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
>> >
>> >
>> >
>> -------------------------------------------------------------------------
>> > This SF.net email is sponsored by: Microsoft
>> > Defy all challenges. Microsoft(R) Visual Studio 2005.
>> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> > _______________________________________________
>> > WiX-users mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/wix-users
>> >
>> >
>>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
--
View this message in context:
http://www.nabble.com/32---64-bit-tp14611317p14659561.html
Sent from the wix-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users