If you like to live on the edge, you might want to use Microsoft latest operating system for your development environment, such as Windows 8. At the same time as a CRM developer, you would probably also want to use a Windows server system as your development environment, so you don't have to use a virtual machine, which consumes more computing resource, and takes longer to start up.
If you have the above thought, you are not alone. I have the exact same thought, which is the reason I generally use Windows server system for my CRM development environment.
During the weekend, I started to build up a new development environment using my new Lenovo ThinkPad T520 laptop (Regrettably I bought a laptop with no touch screen, which you should avoid if you in the market for a new laptop). So my natural thought would be using Windows Server 8 (Update - May 31, 2012, Windows Server 8 is now called Windows Server 2012).
[UPDATE - Sep 8, 2012] I was able to use the same approach to install CRM on the final release version (aka RTM) of Windows Server 2012.
However until I started the actual installation, I didn't realize that Windows Server 8 is not supported by Microsoft Dynamics CRM 2011. Here are the procedure and a few hacks that I used to get the job done.
- Before you launch the CRM installation program, you should first install Windows Identity Foundation (WIF) using Server Manager
It should be noted, you cannot install WIF using the download bits from Microsoft website, since they are not compatible with Windows Server 8. Also you cannot depend on CRM installation program to install WIF for you, it will always fail, since it basically tries to use the WIF installation package from Microsoft download site. You will always get "Installation failed" error, no matter how hard you click "Install" button in the following screen.
- Secondly, you need to make sure that you have IIS installed first. You can do so by adding Web Server (IIS) role using Server Manager. If you don't have IIS installed, you will encounter the following error during the installation. Having IIS installed will save you this trouble.

- Make a backup of svrmgrnc.dll file under your Windows System32 folder, since we are going to overwrite this file.
- In order for you to be able to overwrite svrmgrnc.dll file under System32 folder, you need to take over ownership of the file. To do so, you need to find the file under System32 folder, right-click on the file, and choose Properties, then navigate to Security tab, choose Advanced button, then click Change.

- Then you need grant yourself Write privilege, or Full Control privilege to svrmgrnc.dll file under System32 folder.
- After you have made the proper changes to svrmgrnc.dll file, the next thing you need to do is to find the following four files from a Windows 2008 R2 system, and copy them to your System32 folder of your Windows Server 8 system.
- Microsoft.Windows.ServerManager.dll
- rmConfigHelper.dll
- ServerManagerCmd.exe
- svrmgrnc.dll
- You can now start the CRM installation as usual.
- During the installation process, you will be prompted the following error window, just click OK to continue.

- As the installation goes further, you will run into another two errors, both are related to Windows Indexing Service which is no longer available for Windows Server 8. Those two errors will not affect the general CRM functionality, except CRM help search function, which I have never found myself in need of it anyway. Action Microsoft.Crm.Setup.Common.InstallHelpIndexesAction failed.Retrieving the COM class factory for component with CLSID {3BC4F3A1-652A-11D1-B4D4-00C04FC2DB8D} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

Action Microsoft.Crm.Setup.Server.StartIndexingServiceAction failed.
The specified service does not exist as an installed service - If you are as lucky as me, your CRM installation should finish with the following message.

- After the installation is done, you should recover the svrmgrnc.dll file that you made the backup in step 2, and also you are now free to remove the other three files from System32 folder.

You might be wondering why we need to replace those four files. The reason is, Microsoft Dynamics CRM 2011 installation program uses a deprecated command line tool called ServerManagerCmd.exe to install and manage Windows features during the installation. ServerManagerCmd.exe depends on a few other libraries including rmConfigHelper.dll, svrmgrnc.dll, and Microsoft.Windows.ServerManager.dll.
Summary Notes
- This is not a supported approach, so you may or may not want to go this path depending on your development needs.
CRM R8 is only inches away from the final release, you may want to wait for R8. There is a hope that CRM R8 might have Windows Server 8 support, which I am not sure at this moment yet. [UPDATE - May 10, 2012] CRM R8 is going to be RU9 (confusing enough? RU9=Rollup Update 9, R8=Release 8), which requires RU6. So in order to install R8, you need to first install RU6, so we don't have a way to install R8 on Windows Server 8 unless you use the hacks illustrated in this blog post.- For your convenience, I have uploaded the mentioned 4 files in a zip file to my Skydrive, so feel free to grab it if that saves you time, or you just don't have a Windows Server 2008 R2 system available to get those files. Unless you really trust me, you may not want to use the file. ;-)
- Use the hacks at your risk, I make no warranties of any kind.

