views:

16

answers:

1

Our company uses ClickOnce to internally deploy our main application (AppA). I'm in the process of writing a helper application (AppB) that, ideally, would be started via AppA. We were planning on including AppB in AppA's solution, then adding a reference to AppB.

Is there any way to actually do something like Process.Start by calling AppB.Program.Main()?

Then, to add a level of complexity, how does this factor in with the ClickOnce deployment of AppA?

Any insight to point me in the correct direction would be greatly appreciated.

Thanks.

+2  A: 

yes, It can be done. We have a click once application that calls an exe. Here is the code

        System.Diagnostics.Process Proc = new System.Diagnostics.Process();
        Proc.StartInfo.FileName = "Resources\\des.exe";
        Proc.StartInfo.Arguments = "-D -u -k \"6AAAAA(!\" " + encryptedFileName + " " + newFileName;
        Proc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
        Proc.StartInfo.CreateNoWindow = true;
        Proc.Start();
        Proc.WaitForExit();

When we deploy it we need to deploy the des.exe in the Resources folder. Also, we deploye it as full trust.

mikemurf22