Sunday, July 24, 2011

installing windows phone developers tools on windows server 2008 R2

Many of us using Windows Server 2008 R2 as development workstations. But if you want to develop for windows phone 7 then you are out of luck as Windows Phone Developer tools does not allow you to install it on  Windows Server 2008 or later. It stops while bootstrapping. Luckily you can bypass the bootstrap error. Thanks to Aaron Stebner for his blog post about this here. Follow this steps to install it:

  • Download the developers tools in ISO format from this location and mount it using your favorite virtual CD/DVD image loader
  • Now copy all the contents from the mounted drive to any folder you want say C:\wpd
  • Now edit the baseline.dat file using any text editing tool
  • Go to the [gencomp7788] section
  • Under this section find out InstallOnLHS and change the value from 1 to 0
  • Again find out InstallOnWin7Server within the same section and change the value from 1 to 0
  • Save the baseline.dat file and close it
  • Now run setup.exe
Now it won't check for the server edition and will be installed successfully...

Install mysql2 gem on windows

If you are trying out the Rails 3 and you are stuck at not being able to install mysql2 gem on your windows pc. Just follow this steps to install it successfully (I used MySQL 5.5.9 version):

  • Install MySQL 5.5.9
  • Copy libmysql.dll from C:\Program Files (x86)\MySQL\MySQL Server 5.5\lib [Mine was 64 bit windows, in 32 bit it must be Program Files only] to bin directory of your Ruby installation
  • Now open command prompt and run the following command: gem install mysql2 -- '--with-mysql-include="C:\Program Files (x86)\MySQL\MySQL Server 5.5\include" --with-mysql-lib="C:\Program Files (x86)\MySQL\MySQL Server 5.5\lib"'
Now its installed on windows...it was only about the extra config options and a bit of string escaping issue on windows command prompt...happy coding...  :)