views:

208

answers:

2

I have an win-forms application that takes an existing exe which we do not have the source code for. We do, however, develop several Dlls that plug-in to the application to provide the core back-end functionality.

I'd like to be able to configure ClickOnce to deploy this app, but I'm not sure if this is possible given that the main exe isn't built from source code.

One possibility would be to develop a simple wrapper exe that calls the main exe, but I don't care for that solution; it seems like a bit of a hack.

Are there any alternatives?

A: 

Couldn't you just reference the exe in your project? That would cause it to be copied to the bin folder along with your dlls at compile time. ClickOnce grabs everything in the bin folder, so you should be OK.

jrummell
That's the first thing that I thought of, until I tried it. Unless I'm missing something, for existing exe included in the project and dll projects, there is no option to publish them.I suppose it's another question of how to setup ClickOnce without going through VS's publish dialog, but it's not immediately obvious.
16bytes
+1  A: 

Assuming the main exe is a .Net application, then yes, you should be able to deploy with ClickOnce. I'm guessing your actual problem has more to do with creating the deployment.

I would recommend using MageUI to manually create a deployment rather than Visual Studio. Once you get the app deployed and working you can work on streamlining your deployment creation process.

whatknott
While I haven't verified that this works - this seems to be the exact road that we want to head down. I'll comment again once I get a chance to play with it.
16bytes