Installing service programatically on Vista not working if UAC enabled?

  • Thread starter Thread starter JamesB
  • Start date Start date
J

JamesB

Hi all.

I have a Winforms app that installs a service programatically (as opposed to
using InstallUtil).

If UAC on Vista is disabled, it works fine. Likewise, if the program is
started by right-clicking and picking "Run as Administrator" it works (if
UAC is enabled), but neither option is ideal. I suppose really I want UAC to
pop up it's "do you want to allow this to happen" box when my code does its
thing. Can anyone point me in the direction of how to achieve this?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top