Set the Platform attribute on your Package Element to "x64" rather than "x86" 
and/or create an "x64" platform build configuration in your .wixproj to build 
an x64 MSI. You need separate x64 & x86 MSI's if you want to target x64 
locations on x64 systems.

Palbinder Sandher 
Software Deployment Engineer
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 
0SP
Email Disclaimer

-----Original Message-----
From: Ravi Gupta [mailto:ravigupta...@gmail.com] 
Sent: 19 July 2011 11:36
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] Install Files in C:\Program Files\ folder in 64bit-Win7

I created a setup for 64 bit OS using wix, but when I try to install
in C:\Program Files\ instead it is installing in C:\Program Files(x86)\
folder.
how to rectify this.
my code goes something like below:

  <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="SharpFolder" Name="Sharp">
          <Directory Id="INSTALLDIR" Name="DCalibrate
$(var.ProductVersion)">

            <?if $(env.DriverPlatform)= "x64" ?>

            <Directory Id="i1Driver" Name="i1Driver">
              <Component Guid="2F23B4AF-5ED0-4F09-81DD-5FE4F29CA4A9"
Id="i1Driver" Feature="Complete">
                <File Source=".\i1Driver\i1_display.inf"
Name="i1_display.inf" DiskId="1" Id="i1_display.inf" KeyPath="yes"/>
                <File Source=".\i1Driver\i1display_x64.sys"
Name="i1display_x64.sys" DiskId="1" Id="i1display_x64.sys"/>
                <File Source=".\i1Driver\i1_driver.cat" Name="i1_driver.cat"
DiskId="1" Id="i1_driver.cat"/>
                <difx:Driver Legacy="yes" />
              </Component>
            </Directory>

when I'm changing ProgramFilesFolder to ProgramFiles64Folder is giving
errors where i'm creating msi in 32 bit OS.


-- 
*Regards
T.Ravi Gupta*
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to