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.
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.
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.
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.
Yes you can.
And actually I think it's a more convenient way comparing to FTP.
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.
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/
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With