Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to offer a ClickOnce installer on Github?

I'm wondering if you can create a ClickOnce installer for a project and then host the installation folder on GitHub (via the downloads page)?

I guess by default ClickOnce publishes the installation files to a subfolder which I think is not supported on the Github downloads page but maybe there is another way.

like image 246
Koen Avatar asked Nov 22 '12 11:11

Koen


People also ask

How do I publish my ClickOnce application?

In the Publish wizard, select Folder. In the Specific target page, select ClickOnce. Enter a path or select Browse to select the publish location. In the Install location page, select where users will install the application from.

Is ClickOnce still supported?

ClickOnce and DirectInvoke in Microsoft Edge | Microsoft Learn. This browser is no longer supported. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Where do ClickOnce applications get installed?

About ClickOnce Applications Unlike usual applications installed to the Program Files folder or a user-defined folder, ClickOnce applications are installed into the user profile, to a subfolder with an obfuscated name.


3 Answers

Yes you can.

And actually I think it's a more convenient way comparing to FTP.

  1. Make sure your Git is set to "commit as-is", so that you can avoid some signature issues.
  2. Publish your ClickOnce application to a directory in your git repository (you may want another branch for that) with the url of raw on Github as the download/update url. E.g. for repository "xxx", branch "master", directory "clickonce" of user "vilic", the url should be "https://raw.github.com/vilic/xxx/master/clickonce/"
  3. Commit and push your application.

BTW, you will be able to download exe file and the application is able to check and download update as you are directly using raw.github.com. However, you may not open the xml file from your browser because the MIME type of xml file would be "text/plain". But I think you can try to use Github Pages to build this server, which should response with the right MIME type.

like image 157
vilicvane Avatar answered Sep 28 '22 05:09

vilicvane


When I set out trying to do this, this question with @VILIC's answer was one of the things that helped. Here is my blog post detailing how ClickOnce to GitHub pages has been automated -

http://flickrdownloadr.com/blogs/blog/2013/01/15/single-click-deployment-of-wpf-application-to-github-pages/

like image 2
Hari Pachuveetil Avatar answered Oct 02 '22 05:10

Hari Pachuveetil


All of these didn't work for me: rawgithub.com, raw.github.com, raw.githubusercontent.com.

RawGit did work, because it serves the proper application/x-ms-application Content-Type header.

Example:

https://cdn.rawgit.com/Microsoft/RESX-Unused-Finder/master/publish/ResxUnusedFinder.application

Also followed this guide and added a .gitattributes file:

*.manifest binary
*.application binary
*.deploy binary
like image 2
RandomEngy Avatar answered Oct 02 '22 05:10

RandomEngy