App Fabric install error – rebooting constantly

Had an interesting one today, installing the pre-requisites for SharePoint 2013 foundation, every time I got to the App Fabric it would fail and want a reboot. After about 3 reboots I decided enough was enough.

The event logs weren’t much help so I had a look to see if there were any more logs I could check and came across this: http://www.sathishtk.com/blog/post/2012/08/17/SharePoint-2013-installation-error-Windows-AppFabric-11-1603-error.aspx – it wasn’t the same issue I had but it did point me to look at the AppServerSetup log found in: C:UsersusernameappdataLocaltemp.

After sorting by date modified and trawling through the log for “error” I found this:

MSI (s) (A4:20) [16:56:32:568]: Note: 1: 1722 2: Env_PSModulePath_powershell_i 3: c:Program FilesAppFabric 1.1 for Windows ServerMicrosoft.ApplicationServer.InstallHelper.exe 4: powershell.exe “-command “$str = [System.Environment]::GetEnvironmentVariable(“PSModulePath”, [System.EnvironmentVariableTarget]::Machine); $str = $str+”;c:Program FilesAppFabric 1.1 for Windows ServerPowershellModules”; c:Windowssystem32setx.exe /M PSModulePath “$str””” “C:Users<user>AppDataLocalTempAppServerSetup1_1_CustomActions(2015-07-26 16-55-57).log”

CustomAction Env_PSModulePath_powershell_i returned actual error code 1 (note this may not be 100% accurate if translation happened inside sandbox)

MSI (s) (A4:20) [16:56:32:568]: Product: AppFabric 1.1 for Windows Server — Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action Env_PSModulePath_powershell_i, location: c:Program FilesAppFabric 1.1 for Windows ServerMicrosoft.ApplicationServer.InstallHelper.exe, command: powershell.exe “-command “$str = [System.Environment]::GetEnvironmentVariable(“PSModulePath”, [System.EnvironmentVariableTarget]::Machine); $str = $str+”;c:Program FilesAppFabric 1.1 for Windows ServerPowershellModules”; c:Windowssystem32setx.exe /M PSModulePath “$str””” “C:Users<user>AppDataLocalTempAppServerSetup1_1_CustomActions(2015-07-26 16-55-57).log”

 

Which then lead me to: http://blogs.msdn.com/b/distributedservices/archive/2014/11/01/appfabric-1-1-error-in-sharepoint-server-2013-installation.aspx

Upon checking my environment variable (System > Advanced System Settings > Advanced > Environment Variables…) it had the extra ” at the end:

 

 

 

 

 

 

 

 

 

After removing that it installed successfully!

Hope it helps J

About the author