How to target 32bit and 64bit a .NET applications with WiX and separate MSI packages

Monday, December 28 2009 - 0 comments

This post will explain how you can build msi packages using WiX for both 32bit and 64bit platforms. The goal is to create 2 different msi packages. One for 64bit systems, which will install the program in to c:\Program Files on 64bit, and another msi package that will install the program in to c:\Program Files on 32 bit systems. The .NET application itself will be compiled with CPU target Any, which results in that it will run in 64bit mode on 64bit systems and 32bit mode on 32bit systems. Of course, you could also install the 32bit msi package on 64bit systems, which will end up being installed...

How to get the full URL from SPListItem in SharePoint

Monday, October 19 2009 - 0 comments

The SPListItem URL property does return the URL for the SPListItem including the List/Documetn Library name, but it doesn't return the full URL including the server and site names. To get the full URL, you can either concatenate the SPLIstItem.Web.Url and the SPListItem.URL, or extract the full URL from the SPListItem.XML data like this: foreach (SPListItem item in list.Items) { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(item.Xml); XmlNamespaceManager nsm = new XmlNamespaceManager(xmlDoc.NameTable); nsm.AddNamespace("z", "#RowsetSchema"); string fullURL = xmlDoc.SelectSingleNode("z...

Designing the Stack Overflow Windows Gadget using Balsamiq Mockups

Sunday, June 14 2009 - 0 comments

Reading on Stack Overflow that they have published the possibility to put your Stack Overflow status on your web page or blog. They call it the Stack Overflow “Flair”. There are a number of possibilities you have to get your flair information from their servers, and one of the methods is JSON. Which is great. I figured that it would be the easiest way to get the data in to the gadget. But first I must decide on how the gadget should look like. The format that Stack Overflow is using for the flair doesn’t suit that well to be placed within a Gadget. The Stack Overflow flair is horizontal oriented...

A Stack Overflow Sidebar Gadget

Saturday, May 30 2009 - 0 comments

Update: The gadget (which now also supports both Serverfault.com and SuperUser.com ), with source code, is now available on CodePlex.com . I have been following the progress of the Stack Overflow web site since it has started. In fact, I did also participate in the beta testing of the site. In podcast episode #54 , Jeff announced that they are adding the functionality to put a flair on your home page or blog. That’s a really nice idea. One thing that would be even more cool is to have your flair as a Windows Vista / Windows 7 Sidebar Gadget. So I decided develop one. Why not? On the screenshot...