【转】VS2012编译出来的程序,在XP上运行,出现“.exe 不是有效的 win32 应用程序” “not a valid win32 application”

原文网址:http://www.cnblogs.com/Dageking/archive/2013/05/15/3079394.html

VS2012编译出来的程序,在XP上运行,出现“.exe 不是有效的 win32 应用程序” “not a valid win32 application”

升级vs2010到vs2012,突然发现build出来的应用程序无法运行,提示“不是有效的 win32 应用程序” or “not a valid win32 application”。

参考CSDN论坛中的方法,找到下面这篇文章:

http://blogs.msdn.com/b/vsnetsetup/archive/2012/10/16/setup-exe-is-not-a-valid-win32-application.aspx

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

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.

文章提示,dev11 VC complier 已经不在支持XP,如果想要支持XP系统,需要更新至 VS2012 Update1,同时,在

Properties -> Configuration Properties -> General -> PlatForm ToolSet

选择

Visual Studio 2012 - windows XP (v110_xp)

这样compiler生成的exe文件方可在XP系统上运行。

VS2012 update1 下载参考

http://www.microsoft.com/visualstudio/eng/downloads#d-visual-studio-2012-update

时间: 2024-08-28 23:55:10

【转】VS2012编译出来的程序,在XP上运行,出现“.exe 不是有效的 win32 应用程序” “not a valid win32 application”的相关文章

VS2010 和VS2012 的程序在XP上运行的方法

问题表象: VS2012编译的程序不能再XP下运行 解决办法: 1.工程设置的方法 在vs2012里,右键 属性->配置属性-常规->平台工具集->选个VS2008什么的就ok了~ 2.程序降级的方法 .sln文件 使用记事本打开,把里面的 Microsoft Visual Studio Solution File, Format Version 12.00 Visual Studio 2012 改成 Microsoft Visual Studio Solution File, Form

vs2012+ winform+.net4.0发布如何在xp上运行

今天在英文版vs2013打包发布4.0(非4.0 client)的winform时,遇到了在xp上无法运行的情况,.net framework 4.0在xp上已安装.在打包前,winform工程,即菜单中的Project下的工程属性里,Application选项中的Target framework选择的是.NET Framework 4,整个工程运行之后,然后使用bin->DEBUG目录下的exe,使用setup factory打包成安装包,结果在xp在安装之后(.net framework在安

将java应用程序打包成独立运行的.exe方法

对于windows用户来说,将java应用程序打包成.exe最好不过了,现在我介绍两个方法. 1.用专业的应用程序打包工具InstallAnywhere,这个软件几乎能在所有平台上运行,当然你要下载到你需要的那个平台的啦!而且它也能打包成各个平台的安装程序(当然不是免费的).我下载的是7.1 企业版我只提供一些注册码,安装程序大家在网上找.InstallAnywhere7.1注册码使用方法参考:具体 2.用MINI的免费的工具javalunch,JavaLauncher的下载网址是:http:/

VS2012编译出来的程序,在XP上运行,出现“.exe 不是有效的 win32 应用程序” “not a valid win32 application”

升级vs2010到vs2012,突然发现build出来的应用程序无法运行,提示“不是有效的 win32 应用程序” or “not a valid win32 application”. 参考CSDN论坛中的方法,找到下面这篇文章: http://blogs.msdn.com/b/vsnetsetup/archive/2012/10/16/setup-exe-is-not-a-valid-win32-application.aspx You would receive the below err

用VS2012或VS2013在win7下编写的程序在XP下运行就出现“不是有效的win32应用程序

解决方法1: 链接器->系统->子系统->控制台或windows?后面的"最低版本"是5.01 解决办法2: 解决"不是有效的win32应用程序"问题 帅宏军 用VC2013编译了一个程序,在Windows 8.Windows 7(64位.32位)下都能正常运行.但在Win XP,Win2003下运行时,却报错不能运行,具体错误信息为"指定的可执行文件不是有效的 Win32 应用程序". ? ? ? ? ?一.问题分析 ? ?

VS2012 生成可以在XP下运行的exe文件

1. 在已安装VS2012条件下,安装update,作者已经安装了update3; 2. 相关设置: 设置“平台工具集”:在项目右击-属性-常规-在“平台工具集”下拉选择“…v110_xp”选项(如果没有安装update是没有这个选项的) 设置“运行库”: 设置“子系统”: 注意不要设置成“未设置”或留空,否则同样不能在XP下运行

vs2012-vs2013编译出来的程序不能在xp上运行解决方法

在链接标志中加入参数: /SUBSYSTEM:WINDOWS,"5.01" 在ide环境下: 项目属性-常规-平台工具集-Visual Studio 2013 - Windows XP (v120_xp) 参考: https://msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1&l=ZH-CN&k=k(VC.Project.VCLinkerTool.SubSystem)&rd=true http://dp

利用smba实现windows上写程序,linux上运行

1.在linux下载程序代码(确保获取正确的文件属性) 2.在windows编写代码,对于已有代码,不改变文件权限,如原先为755的,更改文件内容后依然是755的文件,如果要新建文件,默认为644,其它权限,需在linux中用chmod设置 3.更改完成直接在windows上传,上传到服务器的文件权限与linux上传相一致. 第1点没什么奇怪,windows上用git下载代码后会使得文件权限丢失 对于第2点,需要smba中进行设置,其中要把/etc/samba/smb.conf中这几行取消注释就

FFmpeg 官方 20160227 之后 追加 libmfx 无法在 xp 上运行的解决方法

修改三个地方 _wfopen_s _wfopen strncpy_s strncpy swscanf_s swscanf 下载 fixffmpeg.7z, fixff.cmd FixFFmpeg.exe 拷贝到 ffmpeg 执行文件所在的目录, 运行 fixff.cmd 自动修改全部. http://files.cnblogs.com/files/nlsoft/fixffmpeg.7z