Hi,
 
I am developing an MSI which should support deploying of files to “Program 
Files” folder  or any other selected folder on both 32-bit and 64-bit versions.
 
I have written two directory structures one for ProgramFilesFolder and other 
for ProgramFiles64Folder, added two features each for x32 and x64. 
I am using Condition element to enable/disable the feature based on the bit 
version as below:
 
    <!-- Defining Features -->
    <Feature Id="F_Test_Tool" Title="Test product" Level="1">
      
      <!-- Defining Features for x64 -->
      <Feature Id="F_Test_Tool64" Title="Test product" Level="1">
        <Condition Level="0"><![CDATA[VersionNT64)]]></Condition>
        <ComponentRef Id="C_Comp1" Primary="yes" />
        <ComponentRef Id="C_Comp1_DanishResource" Primary="yes" />
        <ComponentRef Id="C_Comp1_EnglishResource" Primary="yes" />
        <ComponentRef Id="C_Comp1_Default" Primary="yes" />
        <ComponentRef Id="C_Comp1_SrtCut" Primary="yes"/>
      </Feature>
 
      <!-- Defining Features for x86 -->
      <Feature Id="F_Test_Tool86" Title=" Test product " Level="1">
        <Condition Level="0"><![CDATA[Not VersionNT64]]></Condition>
        <ComponentRef Id="C_Comp2" Primary="yes" />
        <ComponentRef Id="C_Comp2_DanishResource" Primary="yes" />
        <ComponentRef Id="C_Comp2_EnglishResource" Primary="yes" />
        <ComponentRef Id="C_Comp2_Default" Primary="yes" />
        <ComponentRef Id="C_Comp2_SrtCut" Primary="yes" />
      </Feature>
      
    </Feature>
 
The problem is my installer is always installing the files to “Program Files 
(x86)” on x64 machines, even though the installation path is selected as 
“Program Files”. I want to install the application to “Program Files” folder on 
x64 servers.
 
Please help me this regard.
 
Thanks,
Sujanakar
_________________________________________________________________
Wish to Marry Now? Join MSN Matrimony FREE!
http://in.msn.com/matrimony
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to