[izpack-user] "Run as administrator" shortcut property

210 views
Skip to first unread message

udun...@gmx.net

unread,
Mar 14, 2012, 6:29:39 PM3/14/12
to us...@izpack.codehaus.org
Hi there,
 
I’m using IzPack for my installers, too. Great work you guys do!
Scince Windows Vista was released, it happens that some customers have trouble validating my application after installation. That means, a dialog is coming up and they have to enter their name and a key to activate the application. Then, my app writes a file. But the great Win Vista or Win 7 introduced the great UAC that prevents the application from writing files even though the user might be admin.
The solution I always tell the customer is to check the “run as administrator” option in the properties of the shortcut of the application on the desktop or in the start menu. Then it works.
My question: Is there a way of setting that option already on installation? That’d be great. Or do I really have to save user files in the OS user dir (common shared files directory)?
 
Thanx in advance for any answer.
 
Greetz
Stan

Tim Anderson

unread,
Mar 14, 2012, 7:22:36 PM3/14/12
to us...@izpack.codehaus.org
This is not supported at present.
If you're feeling keen, you need to change ShellLink.dll to support it i.e. change ShellLink.cxx to use IShellLinkDataList.
Discussions on how to use IShellLinkDataList for this can be found here: http://social.msdn.microsoft.com/forums/en-US/windowssecurity/thread/a55aa70e-ae4d-4bf6-b179-2e3df3668989/

-Tim
Reply all
Reply to author
Forward
0 new messages