This solution is made up of two projects:

Xeot.Library.Updater:
Primary project that does the semi-heavy lifting. This ain't rocket science. The main class is here: Updater.cs

Xeot.Library.Updater.UI:
Sample project that uses the Updater class functionality. This is a good starting point for integrating the Updater class into your application or just use this guy as your update UI.

Some Dev Notes:
  1. Visual Studio 11 Beta from ~Feb 2011
  2. .NET Framework 4.5 Beta
  3. C#
Instructions:
I left out some of the more obvious steps. I'm assuming everyone knows how to get to a project's properties, how to create an IIS App and how to create an App Pool (if needed). If you need help with these steps or if I've left something else out, let me know and I'll do my best to help!

Signing Tab:
This will give you compile errors if you don't use your own cert.

00-Xeot.Library.Updater.UI-Project-Properties--Signing-Tab.PNG


Publish Tab:
Here you can see I created a web application under localhost. Its physical path is c:\Inetpub\wwwroot\updater. You will also want to use a .NET Framework 4 application pool for this app.

01-Xeot.Library.Updater.UI-Project-Properties--Publish-Tab.PNG


Updates:
We don't want the app framework to do the updates. We want our special Updater class to handle the updates. So leave this window blank!

02-Xeot.Library.Updater.UI-Project-Properties--Publish-Tab--Updates-Button.PNG


Options:
Have it generate the html page for us. Handy.

03-Xeot.Library.Updater.UI-Project-Properties--Options-Tab.PNG


Request Filtering:
Now we need to remove the .config filtering. Go into IIS Manager and look for the Request Filtering icon.

04-Local-IIS-Config--Request-Filtering.PNG


Remove Restriction:
Remove the .config file request filtering restriction.

05-Local-IIS-Config--Request-Filtering--config-file-ext.PNG

Last edited May 23, 2012 at 11:28 PM by haluska, version 29

Comments

No comments yet.