Compiling new Media Browser builds.

Posted by Jon | Tips, Tricks & Guides | Wednesday 18 March 2009 12:53 pm

I’ve read where a few people over at the Media Browser forums were having issues in compiling the new .NET 3.5 SVN builds as of late.  The biggest difference in compiling (for a novice, which I am) is that there is no longer a Setup.bat file which creates the MSI installer for you.  The SVN now includes new directories for the initial configuration utility, .NET bootstrapper and the installer itself.  Unless this stuff is second nature to you (i.e. you know how to develop applications), you may find yourself left out of the new builds.  Not anymore.

I ran into the same problems as everyone else, but due to work and home life making it impossible to spend anytime on the forums lately, I tried to figure it out myself.  The solutions I found later on the forums didn’t work for me as I remember trying them, and it could have just been error on my part (probably) or the way I had things configured on my end (even more probable).  I will outline the steps I took that worked for me.  I’m on an x64 system, although I don’t know if that will really change anything for you.

  1. Delete your checkout folder and redownload it.  It’s probably not necessary, but I’ve noticed a fresh download actually can avoid some issues.
  2. In VC# Express, open the MediaBrowser project, make sure the entire solution is selected in the Solution Explorer, click on Build > Configuration Manager and set Active solution configuration: to Release. This will ensure that when you build the project, you’re building in release mode and not debug.  When I went to build before changing this, step 6 kept failing because it was looking for the configurator.exe and mediabrowser.dll in release folders, which were never created (only debug).
  3. Hit F6 to build.  If everything went well, great.  If you had failures, sorry.
  4. Now, you’re going to want to open and administrative command prompt, so either right-click on Command Prompt and choose to run as administrator, or just run it if you already are an administrator (don’t assume though).
  5. You’ll now want to path to your MediaBrowser SVN folder and go to ..\MediaBrowser\Installer.
  6. From there, you’ll want to do this command: msbuild.exe installer.wixproj /p:Configuration=Release
  7. That will build a release MSI of MediaBrowser.  Omitting the switch output to release was only generating debug MSI’s which kept asking me to attach a debugger every time I ran it.
  8. If this worked for you, your MSI will be in ..\MediaBrowser\Installer\bin\Release\en-us

Hope this helped someone!

  • Share/Bookmark

2 Comments »

  1. Comment by Sinjen — February 15, 2010 @ 9:16 pm
    Browser: Firefox 3.5.7 OS: Windows Vista

    “Hope this helped someone!”

    It helped me! I just compiled Media Browser for the first time. I have no intention of installing it however. I just wanted to know how to compile a trunk build if I ever wanted to :)

    -Sinjen

    [Reply]

    Jon Reply:

    You should give it a try. The last build I compiled works pretty well :)

    [Reply]

RSS feed for comments on this post. TrackBack URI

Leave a comment