I need a process with administrator privileges. From this question and answers it seems that there is no better way than to launch a separate process. Since I would rather have a process dedicated to that instead of just launching my original application in a second process just for this one method – I thought I would simply create two projects in one solution in VS2010. However – when trying to deploy it – it seems that I can only publish one of them at a time. That wouldn't do, because I don't want a client to have to install more than one – and then there would also be the problem of figuring out the relative paths etc.
I don't want both processes as startup applications. I want one to be the startup application, which calls (if needed) the second one for just one method.
So how do I have two processes with one clickonce install?
See Question&Answers more detail:os