Wix setup project exe "application cannot work on your PC"

In VS2012, I created a Wix3.6 installation project for an application. The installer output type is installed on the Executable package (.exe) on the Properties tab. The installation project compiles and creates the .exe as expected.

Double-clicking on .exe displays the message:

This application cannot run on your PC.

By executing .exe as an Administrator and providing an elevation, the machine says:

Windows cannot find "C: \ abc \ xyz.exe". Make sure you type the name correctly, and then try again.

Googling shows that the error message is probably related to architecture.

Facts:

  • The machine is Windows 8, 64-bit.
  • The installation project is installed on the x86 platform.
  • In the same installation project, a working x86.msi is created

Any ideas on the wrong settings, links, or configurations to look for?

+7
source share
1 answer

A little late, but I came across this myself, and this is my decision.

In principle, this script can be created by trying to change the WIX installation project from the "MSI" to "EXE" output in the project settings. A WIX installation project can only generate MSI from Product.wxs. The created WIX EXE is actually created using the bootstrapper project containing Bundle.wxs, which then, in turn, can merge your MSI internally into a bootable EXE.

So, to solve this, change the installation project to MSI output, then create an additional boot project (with EXE output) and add the output of the MSI assembly from the installation project in the "Chain packages" section of the Bundle XML code.

+7
source

All Articles