Relationship between UAC and Program Compatibility Assistant
Hi, We have an application, and after we install it, we try to do repair it through the program/feature list, a dialog box will be popped up after the installation is finished, and it says "This programmight not have uninstalled correctly". This seems to only happen when UAC is disabled and PCA is running. If I enable UAC, everything is fine. We have added manifest to setup.exe so that PCA should know that it is not an old version application. The manifest looks like <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2"> <ms_asmv2:security> <ms_asmv2:requestedPrivileges> <ms_asmv2:requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> </ms_asmv2:requestedPrivileges> </ms_asmv2:security> </ms_asmv2:trustInfo> <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> Could anybody give me any information how UAC and PCA are related? Do we always need to also turn off PCA when UAC is turned off? Or any other info that would help me get rid of the dialog when UAC is diabled? Thanks, jyu2010
August 31st, 2010 7:25pm

This dialog would still show even if UAC was turned on. The trigger for showing the "this program may not have installed correctly" prompt is not necessarily tied to the manifest. For example, if, through the installation process, your program tried to write a file to "c:\documents and settings\shawn\desktop", the file would in fact appear on your desktop, despite no such file path exists. Give it a try for yourself, open your own desktop folder using that (replace shawn with your real username). You'll be able to open the folder. Now trying going "up the chain" to the "documents and settings folder". You'll receive an error, because this folder doesn't exist on Windows 7. So if Windows detects that a program uses that (or any number of over 100 other variable possibilities, including registry and folder changes), it gives you that warning, because the program *might* not have installed correctly due to those workarounds. In most cases, the program really did install fine and you'll never need to worry. If this was helpful, please vote by clicking the green triangle. If it solves the issue, click Propose as Answer. Thanks!
Free Windows Admin Tool Kit Click here and download it now
September 1st, 2010 7:07am

But in our case, the dialog didn't show up if UAC is turned on.
September 1st, 2010 7:46pm

Hi, First, I would like to confirm the name of the application which encountered the problem. Also, please refer to the following links: Program Compatibility Assistant: frequently asked questions The Program Compatibility Assistant can resolve conflicts with User Account Control, a security feature in Windows that can help make your computer safer. The Program Compatibility Assistant - Part Two When developing applications, the best option to exclude a program from PCA is to include an application manifest with the run level (administrator or as limited user) marking for UAC. This means that the program is tested to work under UAC. PCA checks for this manifest and will exclude the program. Regards, Sabrina Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
September 2nd, 2010 12:17pm

Can you confirm then manifest will be ignored when UAC is disabled? Is that why PCA still pop up the dialog at the end when UAC is disabled?
September 8th, 2010 7:38pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics