Missing UAC shield overlay on desktop shortcut icon when created by msi created from VS 2008

Posted by Alain Hogue on Stack Overflow See other posts from Stack Overflow or by Alain Hogue
Published on 2010-04-11T08:51:42Z Indexed on 2010/04/11 8:53 UTC
Read the original article Hit count: 385

Filed under:
|
|
|
|

I created a setup program to deploy my VBNet program using Visual Studio 2008. Inside this setup program I created a shortcut to the "primary output" to be installed on the user desktop.

Now, everything is working correctly. The program is installed under "C:\Program Files" and the shortcut is created on the desktop. Also, when I use this shortcut I am prompted by UAC to autorize running this program as administrator. So far, so good...

But! My desktop icon does not have the UAC shield overlay even if the program is compiled with the manifest stating that it must run as administrator. Also, if I manually create a new shortcut on the desktop to the same executable after the installation, this new shortcut WILL have the shield overlay!

I have tried to reboot and delete the iconCache.db file but it did not work.

So my question is: How can I have my desktop shortcut appear WITH the UAC shield overlay when installed initially.

Thanks!

© Stack Overflow or respective owner

Related posts about setup

Related posts about shortcut