Windows 7 程序兼容性助手出现在我的应用程序中.为什么? [英] Windows 7 Program Compatibility Assistant appeared for my app. Why?

查看:35
本文介绍了Windows 7 程序兼容性助手出现在我的应用程序中.为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个本机应用程序.它在 Win XP 和 Win Vista 下毫无问题地工作.在 Win 7 下,我的应用程序安装得很好.我跑了.它正常工作,直到我从菜单中选择退出".退出时出现程序兼容性助手"窗口,告诉我我的应用程序与 Windows 7 不兼容,并且应用了一些兼容性设置.

I have created a native application. It works without questions under Win XP and Win Vista. Under Win 7 my application installed fine. I ran it. It worked normally until i selected 'Exit' from menu. On exit "Program Compatibility Assistant" window appeared telling me my application is incompatible with Windows 7 and some compatibility settings was applied.

我的问题是:

  1. 我如何知道我的应用程序做了什么来触发程序兼容性助手?有没有做和不做的清单?
  2. 在哪里可以找到适用于我的应用程序的兼容性设置?

推荐答案

不要专门查看退出代码.PCA 在您的应用程序完成后运行.对我来说触发它的一件事是你的应用程序没有做太多.例如,如果您将某个hello world"应用程序重命名为 setup.exe 并运行它,它会提升,但它实际上不会像真正的安装应用程序那样更改您计算机上的任何内容.您的注册表、程序文件目录等都是相同的.所以 PCA 说嗯,也许有一些访问被拒绝或其他什么,这似乎不起作用,你的设置可能不正确."换句话说,这可能是无害的.但是,我确实发现它可以让应用程序在不需要时每次都要求提升,因此值得您花时间调查一下.

Don't look in your exit code specifically. The PCA runs after your app finishes. One thing that triggers it for me is your app not doing much. For example if you rename some "hello world" app into setup.exe and run it, it will elevate, but then it won't actually change anything on your machine the way a true setup app does. Your registry, program files directory etc are all the same. So the PCA says "hm, maybe there were some access denied or whatever, seems like this didn't work, your settings might not be right." In other words this might be harmless. However I do find it can leave apps demanding to elevate every time when they don't really need to, so it's worth your time investigating a little.

更改存储在组策略下.

这篇关于Windows 7 程序兼容性助手出现在我的应用程序中.为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆