Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
617 views
in Technique[技术] by (71.8m points)

.net - How do I publish multiple applications / processes with one clickonce deployment?

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

you need to reference second (worker) project from the first (main) project - and then, if you go to first project properties -> Publish -> Application Files, you should see second EXE as a dependency already. If not - just set "Publish Status" dropdown to "Include".

also - I'm not sure what's your goal, but take a look at my post here: Forced the application to have the administrator privileges - very similar issue with calling an app with admin privileges from ClickOnce app. Might save you few minutes.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...