【转】关于“这个程序可能安装不正确”的一种解释
2014-12-08 09:20
260 查看
转自:http://my.oschina.net/cardinallxx/blog/288654
做APKInstaller的这个东西,遇到的一个小问题:在win7下面最后关闭时会弹出恼人的“这个程序可能安装不正确”对话框,网上搜索到这篇文章,问题得以解决。
最近做一个程序自动安装的工具,在win8下面是没有问题的,但是在Win7下面就会被提示“这个程序可能安装不正确”,用管理员权限运行也不行。于是Google之,发现一段解释(来自于stackoverflow的一位ID是user876725的网友):
I ran into the same error message when running a new Qt based app I built. Same symptoms - would get this 'helpful' message after the .exe closed, no matter what the program did.
Now I have various qt app projects, all built the exactly the same way. And none of the others do this.
I finally figured out that this error was caused solely by the fact that I had named this particular project 'installer'. I had ended up with a binary 'installer.exe' and it would have no doubt had the project name built into it elsewhere (without delving into
the qmake generated project file, not exactly sure what).
The point of interest is that you can run into this problem simply by having a project called 'installer' and nothing else.
坑爹的windows有木有!仅仅因为我的程序里面有“installer”字段。确实我的VC工程名字叫PackageInstaller。OK,改吧,光改最后编译成的exe的文件名是不行的,要改工程中的资源文件中的version字段的内容,里面关于程序的描述,把Installer相关的字段都改掉,运行果然就OK了。
做APKInstaller的这个东西,遇到的一个小问题:在win7下面最后关闭时会弹出恼人的“这个程序可能安装不正确”对话框,网上搜索到这篇文章,问题得以解决。
最近做一个程序自动安装的工具,在win8下面是没有问题的,但是在Win7下面就会被提示“这个程序可能安装不正确”,用管理员权限运行也不行。于是Google之,发现一段解释(来自于stackoverflow的一位ID是user876725的网友):
I ran into the same error message when running a new Qt based app I built. Same symptoms - would get this 'helpful' message after the .exe closed, no matter what the program did.
Now I have various qt app projects, all built the exactly the same way. And none of the others do this.
I finally figured out that this error was caused solely by the fact that I had named this particular project 'installer'. I had ended up with a binary 'installer.exe' and it would have no doubt had the project name built into it elsewhere (without delving into
the qmake generated project file, not exactly sure what).
The point of interest is that you can run into this problem simply by having a project called 'installer' and nothing else.
坑爹的windows有木有!仅仅因为我的程序里面有“installer”字段。确实我的VC工程名字叫PackageInstaller。OK,改吧,光改最后编译成的exe的文件名是不行的,要改工程中的资源文件中的version字段的内容,里面关于程序的描述,把Installer相关的字段都改掉,运行果然就OK了。
相关文章推荐
- 关于“这个程序可能安装不正确”的一种解释
- 关于“这个程序可能安装不正确”的一种解释
- VC 这个程序可能安装不正确,和***不兼容,既,和windows兼容性设置
- win7程序关闭后弹出 程序兼容性助手 这个程序可能安装不正确 如果此程序没有正确安装,处理方式
- 关于使用ADODB.Connection (0x800A0E7A) 未找到提供程序。该程序可能未正确安装 错误的解决办法
- Windows7,程序兼容助手:这个程序可能安装不正确
- Win7 64Bit下打开自解压包提示这个程序安装可能不正确 解决方案
- 在Vista以上版本运行WTL程序,有时候会提示“这个程序可能安装补正确...”的错误
- Windows7,程序兼容助手:这个程序可能安装不正确(做注册表里设置白名单,软件自身的名字不能带setup)
- win7程序关闭后弹出 程序兼容性助手 这个程序可能安装不正确 如果此程序没有正确安装,处理方式
- windows7下调试ASP+ACCESS错误“未找到提供程序 该程序可能未正确安装”解决办法
- 【有关数据库的问题】运行时错误‘3706’:未找到提供程序。该程序可能未正确安装。
- ADODB.Connection (0x800A0E7A)未找到提供程序。该程序可能未正确安装。
- 关于vs2003调试时提示:试图运行项目时出错:无法启动调试 没有正确安装调试器。请运行安装程序安装
- Win7 ASP连接数据库“未找到提供程序.该程序可能未正确安装”问题
- win7 ”ADODB.Connection 错误 '800a0e7a' 未找到提供程序。该程序可能未正确安装。“的解决方案
- Windows IIS 调试ASP 错误号:3706 提示 “未找到提供程序 该程序可能未正确安装”解决办法
- 在VS2005下用C++写的程序,安装到另一台未安装VS2005的电脑上,结果出现如下的问题:““由于应用程序的配置不正确,应用程序未能启动,重新安装应用程序可能会纠正这个问题”。在我自己的机子上就能正常安装运行。查了一下网上的方法: 方法一: 在类似
- “Visual Studio .NET 无法创建或打开应用程序。问题很可能是因为本地WEB本地服务器上没有安装所需的组件。请运行Visual Studio .NET安装程序并添加WEB开发组件“的一种解决方案
- 关于vs2003调试时提示:试图运行项目时出错:无法启动调试 没有正确安装调试器。请运行安装程序安装