Setup.exe is not a valid Win32 application


You would receive the below error message while running a ClickOnce bootstrapper created using Visual Studio 2012 on Windows XP systems.

 

 

 

 

Untitled1 

Clickonce bootstrapper engine (setup.exe) that was shipped with Visual Studio 2012 is NOT compatible with any OS below Windows Vista.  So, the above error message is expected and by design. The reason for this behavior is because the bootstrapper is compiled using the VC compiler and the Dev11 VC compiler does not support Windows XP.  

 

 

So the workaround is to install all the prerequisites manually and launch the ClickOnce application directly from deployment manifest file (.application). Another workaround would be to create a sample ClickOnce application using Visual Studio 2010 OR Visual Studio 2008 with the same name as mentioned in Visual Studio 2012 and publish it. From the published location take the setup.exe bootstrapper and replace the existing setup.exe bootstrapper created using Visual Studio 2012

 

 

Microsoft VC development team has done work to make VC compilers work on Windows XP in Visual Studio 2012 Update 1 CTP 3 http://www.microsoft.com/en-us/download/details.aspx?id=34818 This Visual Studio 2012 Update 1 CTP 3 patch provides an opportunity to users in building VS2012 C++ project for Win XP OS. For the users who want to develop their applications using Dev11 VC compiler (v110) for Windows XP OS, would need to install Visual Studio 2012 Update 1 CTP 3 patch.

 

 

Untitled

 

 The above issue was resolved in the recent release of CTP 4. Please install the latest patch Visual Studio 2012 Update 1 CTP 4 http://download.microsoft.com/download/1/D/4/1D49D964-DCEC-4BCA-941A-68C6614E9613/vsupdate_KB2707250.exe This would allow ClickOnce bootstrapper to run on Windows XP systems.


Comments (12)

  1. ChrisTorng says:

    My project is not a VC project, will installing Visual Studio 2012 Update 1 CTP 3 solves the ClickOnce setup.exe on XP problem?

  2. smondal says:

    This issue is already resolved. Please install the latest patch Visual Studio 2012 Update 1 CTP 4 download.microsoft.com/…/vsupdate_KB2707250.exe

  3. SVB says:

    How can this problem be overcome for a solution created in VB?

  4. SVB says:

    Does anyone know how this issue can be solved when a project is created using VB in VS12? ive done the CTP 4 update and rebuild the solution, but still no go…am i doing something wrong?

  5. smondal says:

    This issue was already resolved in Visual Studio 2012 Update 1 CTP 4 patch. You may have a different issue. Try executing the same setup.exe on another Windows XP system.

  6. Mike says:

    Does it only work for c++? The application I want to run on XP is C#. Thank you

  7. smondal says:

    The above scenario doesn't impact managed applications. So your C# application would work on WIndows XP till .Net Framework 4.0. The .Net Framework 4.5 is NOT supported on Windows XP.

  8. Ace Supriatna says:

    Dear Writer,

    How to access the displayed picture? My VS2012 is up to date. I could not just figure out how to change platform toolset.

    Thanks

  9. smondal says:

    Go to project properties page of C++ project in Visual Studio ( By Right Clicking on project properties from Solution Explorer). Then look at  under "Configuration Properties"  dialog.

  10. Simon says:

    I have a vb.net app that I need to deploy on windows XP machines, I can't find the Configuration properties in the properties dialog box.

    Where is it?

  11. smondal says:

    The above scenario doesn't impact managed applications. So your VB.Net application would work on WIndows XP till .Net Framework 4.0. The .Net Framework 4.5 is NOT supported on Windows XP.

  12. abdu says:

    when i am starting my computer it is not opening properly and it says not system device change it so , what should i do?