RESOLVED: Encountering Error 1603 While Installing SharePoint 2013 on Windows Server 2012 R2

by | May 19, 2015

Dragan Radovic

Dragan Radovic

While setting up some new development workstations, we encountered an error during SharePoint 2013 + SP1 installation which we had seen again and again.

To recap: The prerequisites install fine, SharePoint Setup runs, and then seemingly at the last step, it fails with:

osiserver.msi: “SharePoint Server 2013 encountered an error during setup”, Error Code 1603

Unsatisfied with the workarounds (read MSIBreak or the ORCA tool or changing the number of processors), and after having updated Windows with the latest patches, I called Microsoft and worked for weeks with their engineers at diagnosing the root issue of the problem, which for us was:

The SharePoint ArpWrite action (registering SharePoint 2013 as installed in the registry) attempted to access a missing registry key at HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer

So to resolve this, we wrote the following PowerShell script (run as Administrator):

if(!(Test-Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer)){
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer | Out-Null
}

$regProps = Get-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer

if(! $regProps.logging){
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer -Name logging -Value voicewarmup -PropertyType String | Out-Null
}

if(! $regProps.debug){
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Installer -Name debug -Value 3 -PropertyType DWord | Out-Null
}

And much to our shock, the installation succeeded!

Hopefully, this article can help anyone else out there with this problem until Microsoft publishes a fix or an updated installer.

 

DevFacto is a premium provider of business ideation and software development services.
Microsoft Gold Partner

Interested in learning more?

1-877-323-3832
Contact
CALGARY
#2600, Eight Avenue Place
585 8th Avenue SW
Calgary, Alberta, Canada
T2P 1G1
EDMONTON
#2250, Scotia Place Tower 1
10060 Jasper Avenue
Edmonton, Alberta, Canada
T5J 3R8
REGINA
#201, Victoria Park Building
1945 Scarth Street
Regina, Saskatchewan, Canada
S4P 2H1
Share This