Jorge Vargas
Jorge Vargas

Reputation: 1041

How can I deploy a non .net application with ClickOnce?

Is it possible to deploy a non .net application with ClickOnce? I really like the auto update feature of ClickOnce, because of this I'd love to be able to deploy all my applications with it, but not all my applications are made with .net.

Upvotes: 2

Views: 734

Answers (2)

codeConcussion
codeConcussion

Reputation: 12938

No, you can't use ClickOnce the same way you would with C#. One requirement of ClickOnce is the entry-point to your app must be managed code.

However, you can deploy any file along with your managed code app. The standard workaround then is to create a stub .NET exe that simply launches your unmanaged app. Then deploy all those files (the managed exe, the unmanaged exe, and dependencies) with ClickOnce.

You will probably need to use Mage to create your ClickOnce deployment since Visual Studio just creates cookie-cutter deployments and doesn't let you configure all available options.

Upvotes: 2

Yes, this is apparently possible - at least for Visual c++ apps. It also says on the ClickOnce page for VC++ that if your dll is part of a C# project, then you can use the ClickOnce part of the C# project to deploy those dependencies as well. This suggests that you may also be able to have a tiny mock app used just to host the deployment.

Upvotes: 0

Related Questions