Remove win7 compatibility Assistant dialog box

Source: Internet
Author: User

After an EXE application is run in Vista/win7, the compatibility Assistant dialog box appears frequently. This is very annoying,
Full Screen is used to modify system group policies (essentially to modify the registry). However, as a commercial product, some users do not agree that you can modify their systems at will,
It won't work even if your installer secretly changes it. This solution should not be the preferred solution for developers.


In fact, Microsoft has added a new <compatibility> section to the menifest file of the application.
It is used to specify the compatible operating system of your application. The following is an example on msdn:
<? XML version = "1.0" encoding = "UTF-8" standalone = "yes"?>
<Assembly xmlns = "urn: Schemas-Microsoft-com: ASM. V1" manifestversion = "1.0">
<Compatibility xmlns = "urn: Schemas-Microsoft-com: Compatibility. V1">
<Application>
<! -- The ID below indicates application support for Windows Vista -->
<Supportedos id = "{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<! -- The ID below indicates application support for Windows 7 -->
<Supportedos id = "{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
</Application>
</Compatibility>
</Assembly>
If your application is currently using a manifest file, add the corresponding <compatibility> node to your menifest file.
After modifying the manifest file, you need to recompile your program to make it work (I don't know why ).
In addition, earlier operating systems such as Windows XP will ignore this node, so the data on this node is backward compatible.

Some people may not upload an .exe file with a. manifest file. In this way, it is troublesome to copy back and forth.
You can use the mt.exe tool for processing. However, you must disable the incremental build option during project compilation.
MT-nologo-manifest vs2003style.exe. manifest-outputresource: vs2003style.exe; 1
(Note: 1 -- indicates EXE; 2 -- indicates DLL)
In this case, the manifestfile is merged into the. exe file. No longer requires a small tail.

Windows 7 program compatibility assistant is basically useless. Most of the software in China prompts incompatibility, but it is actually compatible. This is just a waste of time.
This section describes four methods to disable the service:

1. Open the run (hot key: Win + r) and enter gpedit. MSC to open the user configuration → manage the template → Windows Components → application compatibility → close the program compatibility assistant and set it to "enabled"

Ii. Computer → management → service → Disable Program compatibility assistant service

3. Click Start, enter services. MSC in the search box, and press Enter. Click "programcompatibility assistant service" in the scroll bar and click "stop.

   Or execute:

           SC stop pcssvc

           SC config pcssvc start = disabled

4. to disable the program compatibility assistant warning, use the test computer to determine whether to create a registry key. You can use these registry items to disable the program compatibility assistant to warn other computers. To do this, follow these steps:

Run the affected program on the test computer.
When receiving the program compatibility assistant warning message, click to select the check box that does not show this message again.

Note that this operation creates a registry key in the following registry subkeys:
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows NT \ CurrentVersion \ appcompatflags
The item name represents the guid in the appcompat database of the program item. The entry type is DWORD, and the value of this entry is 0x77.

Note that the program compatibility assistant only prompts a warning when running programs that are not blocked.
Exit the program.
Note the registry key created in step 3.
The installation script contains the steps to add the registry key before the installation starts.
Again, we do not recommend disabling PCA for home users because this will cause system instability. Then, as a senior user and administrator, disabling PCA can save time and avoid annoyance.

From: http://zhidao.baidu.com/question/229487829.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.