Missing UAC shield overlay on desktop shortcut icon when created by msi created from VS 2008
- by Alain Hogue
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!