Question

Is it possible to publish a visual studio c# project with ClickOnce, in just one .exe?

I could not find a way to do it. My project has additional files it uses like: it calls external exe, it links to dlls, etc. And all these files I want to somehow embed in on .exe, rather than have an exe + additional files next to it.

Edit: the image explains even better what I need.

enter image description here

Était-ce utile?

La solution

Yes, you can add external dlls, resources, exe, and so on in your ClickOnce setup. Look at these photos. Sorry for the language.

enter image description here

enter image description here

If you want to publish it on IIS, you will need a host. Those files (application files,setup.exe and so on) will be stored in IIS. You only need to provide a 'publish.htm' or 'setup.exe' to users. 'publish.htm'/'setup.exe' will connect to your IIS. And if you use ClickOnce, your application will be updated more easily.

Otherwise, you just need VSInstaller in VS2010 or InstallShield Limited Edition in VS2012/2013. It will produce one .exe file.

Autres conseils

You can add external exe in your installation. In your Setup and Deployment wizard Select the Application Folder and choose Add File then select your exe.

For prerequisites read this article.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top