RobMensching.com /Blog
when setup isn't just xcopy

Posted by
Rob Mensching
Friday, December 07, 2007 1:09 AM

WiX v3 on the .NET Framework 2.0 eminent.

As I noted about four weeks ago, WiX v3 is being moved to the .NET Framework 2.0. I originally hoped it would only take two or three nights of work to complete. Unfortunately, I was sick late last week and bailed out early so it took more like four nights of actual work. In any case, I think I finished the work tonight and just want to do a couple more test before I submit the code. Next week's release of the WiX toolset should now require the .NET Framework 2.0 as a minimum.

Many thanks to Bob for his help and suggestions as I worked through all the porting issues.

I'll now take a few minutes to answer some of the questions that I was asked about what this really means.

Q: What does it mean to have the WiX toolset moved to the .NET Framework 2.0?

A: Simply put, the WiX v3 toolset will now require that you have the .NET Framework 2.0 installed for it to run. WiX v2 toolset will still run on the .NET Framework 1.1 SP1 or .NET Framework 2.0.

Q: So if I only have the .NET Framework 1.1 SP1 installed then WiX v3 toolset won't work?

A: That is correct. You need to install the .NET Framework 2.0 (or 3.0 or 3.5) for WiX v3 to work. The .NET Framework 2.0 is extremely popular so we are not expecting this to be an issue. Note that ClickThrough and Votive in WiX v3 already required .NET Framework 2.0 and that has never been raised as an issue.

Q: What benefits are there for moving to the .NET Framework 2.0?

A: Well, people will quit asking me when we were going to move it. Honestly, IMHO, that's the biggest advantage right now. Technically, we can also start to take advantage of generic collections and the improved XML objects in the .NET Framework 2.0. I'm not keen on converting our working typed collections to generics but I've heard there are some performance enhancements in the new XML objects so we'll probably look into that.

Q: Wow, was it worth four weeks of work?

A: I don't know. If it saves me constantly explaining why WiX was designed for .NET Framework 1.1 then maybe it was. <smile/>

Q: But, MSBuild is cool. Can't you use MSBuild to build everything now?

A: The MSBuild syntax is a little weird but it does handle managed code and WiX code (thanks to Justin) well and integrates very well into Visual Studio. Unfortunately, we still need NAnt to build the native (C++) portions of the code base because the C/C++ project support in MSBuild is dismal. The solution that I've settled on is to basically use NAnt to build all of our native code first (Custom Actions, mostly) then NAnt calls out to MSBuild to build the managed code (core toolset, Votive, ClickThrough).

 


Posted by
Rob Mensching
Saturday, December 01, 2007 7:19 PM

Fixing "No Services Found" for FM Radio in Windows Media Center on Vista.

Tonight Jenny was breaking out the holiday decorations and wanted to listen to Christmas carols on the "radio". The "radio" in this case is an Hauppauge WinTV-PVR with FM tuner in the computer in our living room. Unfortunately, the radio quit working when I upgraded the machine from one of the Vista Ultimate release candidates to the final bits (downloaded and installed from Windows Marketplace).

I remember trying to quickly fix the problem a while ago and giving up because nothing obvious jumped out to me. Tonight I was prepared to figure out how to fix the "No Services Found" error message for the FM Radio in our Windows Media Center on Windows Vista Ultimate. Naively I thought that those words typed into a search query would bring back the step by step manual to fix the "radio".

It took a lot of digging but eventually I found a link to this support page at HP. That put me on to the following steps that I fixed the "radio" for me.

1. Click the Vista "pearl" (formerly the "Start" button).

2. Search for "services.msc". You should see a program show up with little gear icons next to it. 

3.  Click the "services" program and click "Continue" on the User Account Control prompt.

4.  The "Services" management console will come up and you will see a list of tons of services on your machine.

5. Scroll down the list until you find "Windows Media Center Receiver Service" in the Name column. You may need to expand the Name column since the name is long and there are four or so services that start with the name "Windows Media Center ...".

6. Double click on the "Windows Media Center Receiver Service" name.

7. You'll be presented with a dialog with multiple tabs titled "Windows Media Center Receiver Service Properties (Local Computer)".

8. Click on the "Log On" tab at the top.

9. At the top of the "Log On" tab, you will see two radio buttons. The first says "Local System account". Make sure that radio button is checked. If it is already checked then these set of steps probably won't help you. In my case, the "This account:" radio button was checked and "Network Service" was present.

10. After setting the Log On radio button to "Local System account", click "OK".

11. At this point you can restart your computer and try Windows Media Center again. If you are sure that Windows Media Center is closed then you can take a short cut by click the "Restart Service" button at the top of the "Services" management console.

12. Go back into Windows Media Center and "No Services Found" should be replaced by the FM Radio icon. When I clicked on it the first time, Media Center told me I had to configure the TV tuner which took no time and suddenly I was grooving to The Vortex on C89.5 again.

Of course, by the time I got everything working, Jenny had gone to sleep.