WmAutoUpdate – a .NET Compact Framework auto-update library

Posted by admin on September 23rd, 2009

For one of my .NET Compact Framwork applications I needed some self-auto-update functionality, simliar to what Sparkle does on OSX. Unfortunatly, I couldn’t find any libraries that would help me achieve this goal. The only thing I could find was an outdated article in the MSDN library. But that, like many Microsoft examples, presupposed an IIS with ASP.NET on the server side, which I neither had, nor wanted to use.

So I took the weekend and coded a little library, which I call “WmAutoUpdate” (freely available on Github). It can easily be integrated with your .NET Compact Framework app and works with any webserver that is able to serve files on the server side.

Already a little while ago Robert postet some example code on how add meta data to images using the relatively new WPF.

After playing around with the code for a while, I got some weird exceptions thrown at me, e.g. “A first chance exception of type ‘System.Runtime.InteropServices.COMException’ occurred in PresentationCore.dll“. Now, the only thing I had changed was letting the tagging routine run in a seperate thread:

[STAThread]
static void Main()
{
Thread t = new Thread(writeMetadata);
t.Start();
Application.Run(new Form1());
}
static void writeMetadata()
{
// write the metadata to the image here
}

AppUpdater with Apache Server (without Web-DAV)

Posted by admin on April 14th, 2008

What if you’re implementing an application in .NET (C#) that is supposed to automatically update itself once a new version comes out? Well, you have multiple options, some of which cost a lot of money, while others are free but come with certain restrictions, like being only compatible with an ISS or solely running in user space like ClickOnce apps.