I already know how to create shortcuts programmatically from my C# applications using IWshRuntimeLibrary
and WshShellClass
. Or I could use IShellLink
.
Now, if the user's PC is running Windows Vista or Windows 7, I would like to be able to set the "Run as administrator" property of that shortcut programmactically as well.
Is that possible? If so, how?