Win7提示:这个程序可能安装不正确

程序开发者角度:

在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.

仅仅因为程序里面有“installer”字段。确实VC工程名字叫PackageInstaller。光改最后编译成的exe的文件名是不行的,要改工程中的资源文件中的version字段的内容,里面关于程序的描述,把Installer相关的字段都改掉,运行果然就OK了。

另外exe和资源文件等可静态获取的字段字符包含“installer“、”setup”等都会被windows系统视为未知三方安装包进行校验,弹窗提示该程序可能安装不正确或者兼容性未知

使用者角度:

Win7系统打开程序提示“这个程序可能安装不正确”的解决方法。

Win7系统打开程序提示“这个程序可能安装不正确”的解决方法

1、点击开始菜单,在“计算机上”单击右键,选择“管理”;

Win7系统打开程序提示“这个程序可能安装不正确”的解决方法

2、在管理界面展开“服务和应用程序”;

Win7系统打开程序提示“这个程序可能安装不正确”的解决方法
3、在服务窗口右侧找到“Program Compatibility Assistant Service”并且双击打开;

Win7系统打开程序提示“这个程序可能安装不正确”的解决方法
4、在该服务属性界面将启动类型修改为“禁用”,然后点击“停用”,最后点击应用并确定即可。

Win7系统打开程序提示“这个程序可能安装不正确”的解决方法

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值