Monday, March 21, 2011

“The language of this installation package is not supported by your system.”, Error while installing SharePoint 2010 on Windows 7.

Today, I was setting my development environment up on Windows 7 and was following this blog post for installing SharePoint 2010 on Windows 7. After extracting SharePointServer.exe for modifying config.xml to allow SharePoint setup on client OS, when I ran setup.exe, it gave me this error. “The language of this installation package is not supported by your system.”

2011-03-20_1915

I extracted SharePointServer.exe using WinRar and it created 156 items in SharePointServer folder.

4

However, when I extracted SharePointServer.exe in command line using extract switch, it created 30 items in SPFiles folder. Then it worked perfect and now I am running a fine installation of SharePoint 2010 on Windows 7.

Here C:\ is location where SharePointServer.exe is located and C:\SPFles is destination folder where files got extracted. So command is SharePointserver /extract:C:\SPFiles.

1

2

3

Saturday, March 5, 2011

Check if Web Application exists using PowerShell in SharePoint

To check if a web application exists in SharePoint environment using PowerShell, use this script.

Add-PsSnapin Microsoft.SharePoint.PowerShell

[void][System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”)

$WebAppName = "IntranetPortal80"
$sp = Get-SPWebApplication | Where {$_.DisplayName -eq $WebAppName}
if($sp -eq $null)
{

        Write-host "Null"
}
else
{
        write-host "No Null"
}

In, if-else block do what you want to do.