C# setup project output automatically start with administrative rights

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-05-05T15:37:36Z Indexed on 2010/05/05 16:08 UTC
Read the original article Hit count: 334

Filed under:
|
|
|

Hi,

i've created an setup project for a .net-application which works fine. The problem is, that the application begins to write log-files after startup and this requires administrative rights on windows vista and windows 7. I know there are some folders which i could use to write into without administrative rights. When i start the application as administrator, everything works fine.

I asked myself, if it's possible to change the setup project in visual studio in a way that the installed application automatically owns administrative rights on the target system?

Thanks for every help in advance!

Alex

© Stack Overflow or respective owner

Related posts about c#

Related posts about setup