码迷,mamicode.com
首页 > 其他好文 > 详细

关于“这个程序可能安装不正确”的一种解释

时间:2014-07-21 10:35:01      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:style   color   os   文件   io   art   

最近做一个程序自动安装的工具,在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了。


关于“这个程序可能安装不正确”的一种解释,布布扣,bubuko.com

关于“这个程序可能安装不正确”的一种解释

标签:style   color   os   文件   io   art   

原文地址:http://my.oschina.net/cardinallxx/blog/288654

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!