![]() I just started using it for some internal tools after hearing "bad things" for a while. I'd like to hear more about why you don't trust ClickOnce. Get started now with the free Starter Edition. NET apps and services in a single, repeatable process with Red Gate’s Deployment Manager. ![]() Check out the Free Starter Edition of their release management tool! Deploy your SQL Server databases. Sponsor: Big thanks to Red Gate for sponsoring the blog feed this week. Maybe only check the version once a day or once every few days.Not sure I like it this automatic, though. One could also download the setup app to %temp%, check it's SHA hash, launch it and close myself.We'll add an SSL certificate and confirm its identity on the HTTP call as a little added security.If ((String.Format("You've got version ?", myVersion, latestVersion), "Update SecretStartup?", MessageBoxButton.YesNo) = MessageBoxResult.Yes) Version myVersion = new Version(fvi.ProductVersion) get my own version to compare against latest.Īssembly assembly = Assembly.GetExecutingAssembly() įileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location) Version latestVersion = new Version(versionString) String versionString = await http.GetStringAsync(new Uri("")) Inside the latest.txt files is a simple version string like 0.9.9.4. ![]() This is our little 10 minute solution, but it's actually working very nicely. I still need my app to notify the user that it's time to upgrade. Inno Setup will upgrade my app from build to build when I run a new setup over the top of an old one. However, there's no free lunch when it comes to auto-updating. It took me just 15 minutes to make a simple installer, and it's clear that this tool is deep and broad in its support. It's free, but it's a joy and you should donate if you use it. I thought about WiX, I thought about InstallShield, but then discovered a wonderful little gem of a setup application called Inno Setup by Jordan Russell. Yesterday I was pairing on a little startup I'm doing on the side with Greg Shackles and it was time do the setup application. Back in 2007 I did a post called Making your Application Automatically Update Itself.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |