UAC prompts on any program with the word "patch" or "update" in its name

I write small utility programs.  Once I moved to Windows 7, I noticed that my MP3PATCH, WAVPATCH, and EXEPATCH programs now cause the UAC to display the "Do you want the following program..." message.  I can rename the executable to something else, and it runs fine.  Can the UAC really get triggered just by a certain word in the executable's name?  Seems a bit much.  Any workaround (instead of disabling the UAC)?  What other keywords will cause the UAC to trigger?

 

Want to try it yourself?  Create a small app that just displays "Hello World".  Test it.  Rename it to HelloPatch.exe and it will cause the UAC to display its prompt.

 

Answer
Answer
Adding a manifest file is the solution. And MSFT emplyee's great explanation is below:

<quote>

Due to the Installer Detection Technology of UAC, a UAC shield icon will be displayed on your 32-bit executable file with no requestedExecutionLevel in the manifest, but with keywords like “install”, “setup”, “update” etc in the filename.  With the UAC shield icon, if we launch the executable file, the UAC elevation dialog will pop up. 

 

This feature is started from Windows Vista.  Windows 7 has similar Installer Detection Technology. 

For additional information, please see the Installer Detection Technology section inhttp://technet.microsoft.com/en-us/library/cc709628(WS.10).aspx, and

http://blogs.msdn.com/sajoshi/archive/2007/02/22/uac-five-most-common-install-failure-scenarios-and-workarounds.aspx.


</quote>


REF:

Windows 7, trigger uac depends on application name?

http://social.msdn.microsoft.com/Forums/en-US/ac54ad81-e243-48df-ab70-5892fa380a25/windows-7-trigger-uac-depends-on-application-name

______________________________________________________________________________________________________
Ramesh, Windows Shell MVP 2003-2012.
If this post resolves your issue, pls mark it as an Answer.

2 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated March 27, 2023 Views 2,059 Applies to: