博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
关于“这个程序可能安装不正确”的一种解释
阅读量:7147 次
发布时间:2019-06-29

本文共 1057 字,大约阅读时间需要 3 分钟。

hot3.png

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

转载于:https://my.oschina.net/cardinallxx/blog/288654

你可能感兴趣的文章
PHP传值与传址(引用)
查看>>
JSP简单练习-数组应用实例
查看>>
Directx11学习笔记【四】 封装一个简单的Dx11DemoBase
查看>>
DMA(STM32)
查看>>
最简单的基于FFMPEG的音频编码器(PCM编码为AAC)
查看>>
Boost.Asio基础(三)
查看>>
【转载】学习新东西的唯一方法
查看>>
[转]Android dex分包方案
查看>>
关于Redis的启动过程
查看>>
Android 按二次后退键退出应用程序
查看>>
Springboot监控之一:SpringBoot四大神器之Actuator之2--springboot健康检查
查看>>
[唐诗]秋夜喜遇王处士-王绩
查看>>
一个简单多任务内核实例的分析【转】
查看>>
WPF 3D 小小小小引擎 - ·WPF 3D变换应用
查看>>
又一道简单题&&Ladygod(两道思维水题)
查看>>
golang笔记——函数与方法
查看>>
Linux LVM硬盘管理及LVM扩容
查看>>
针对某个数据库error做systemstate dump
查看>>
iOS开发--SWRevealViewController
查看>>
JSP--百度百科
查看>>