Thursday, December 9, 2010

Running SP 2010 Post Setup Configuration Wizard

Are you running Windows 7 64bit and trying to install SP 2010 with Office Web Apps (OWA)?

Install SharePoint using the MSDN article on installing SP 2010 on Win 7. To install OWA, you need to do the same trick as SP 2010:


<Setting Id="AllowWindowsClientInstall" Value="True"/>

You also need to copy a file to your system32 dir to pass the prereq checks. After the OWA install, the post-setup configuration wizard (PSConfigUI.exe) will not run. PSConfig.exe also returns an error message:

"Only one copy of the SharePoint Products Configuration Wizard can be run at a time."

After some debugging and reflecting... It turns out to be a problem with how the Mutex class is used to determine if the wizard is already open or not.


The trick now is how to skip this validation check so we can run the wizard. You can do this via Visual Studio. Create a new project (anything) and go to project properties -> Debug. Under Start Action, change to Start external program, setting:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\psconfigui.exe


You then need to run (F5) and then pause execution immediately (ASAP!):


Wherever you land, navigate the call stack back up to the first entry point (PsconfigInterfaceMain.Main()). Click on Show Dissasembly. You then just need to find the next "jmp" command and set a breakpoint there:

Then all you have to do is grab the yellow arrow and drag it over that line so it doesn't execute. Hit F5 to continue, and you should see the wizard appear. Follow the prompts...

Once the wizard completes, run up your central administration and check the OWA services are now available (Powerpoint and Word Viewing services):

No comments:

Post a Comment