Program Files folder instead of program files (x86) installation path in wix

I am making a Windows Installer and I am using the following directory structure for the install path:

<Directory Id="ProgramFilesFolder">
   <Directory Id="Company" Name="CompanyName">
      <Directory Id="INSTALLFOLDER" Name="ProductName" />
   </Directory>
</Directory>

      

The above code snippet will install my application to the "Program Files (x86)" folder. My application only works on 64-bit Windows, so I would like to install it in the Program Files folder. How can i do this?

+4


source to share


1 answer


Use ProgramFiles64Folder

instead ProgramFilesFolder

.

Also, install:

Product/Package/@Platform="x64"

Product/Package/@InstallerVersion

not less than 200



Component/@Win64="yes"

For a .NET assembly:

File/@ProcessorArchitecture="x64"

+10


source







All Articles