Script for Installing SharePoint 2013 Language Packs

I was asked by a friend to see if I could help streamline the install process for language packs for SharePoint since you have to install each one manually, so I whipped up this little guy - hope it helps someone else.

What this does is recurse through a directory structure looking for setup.exe files and then fires them off one at a time. You'll see that I also have an ArgumentList parameter I'm passing to Start-Process - this is the location for the config.xml for the silent install and suppresses the EULA so you should be able fire off the script and walk away.

Here's what you want to do...

  • First, you want to make a directory structure somewhere on your machine like this:
    • d:\LanguagePacks
    • d:\LanguagePacks\French
    • d:\LanguagePacks\German
    • d:\LanguagePakcs\Spanish
    • etc...
  • Second, download each language pack to your SharePoint machine into the respective folder.
    • When I did this, they downloaded as a .IMG file, so I had to mount the IMG and pull the files out manually. I'm sure I could have scripted this part too, but I'm lazy and it's a one time deal for me.
  • Edit the script and point to the root folder that holds all the language folders, then you can run it.

Get-ChildItem -path "d:\LanguagePacks" -recurse | ?{$_.Name -eq "setup.exe"} |%{Write-Host "Installing at" $_.FullName; Start-Process -filepath $_.FullName -ArgumentList "/config .\files\setupsilent\config.xml" -wait}


Remember - you have to run PSConfig on all the machines you have the Language Packs installed, so be sure to run that after the powershell finishes:

PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures


Comments (2)
  1. Tom says:

    Thanks for the article and the script.  I am not a Powershell expert so I have a couple of questions.

    1) Can this same script be used to install language pack SP2 in SharePoint 2010 farms?

    2) What exactly goes in the config.xml  file to suppress the EULA and do the silent install?

  2. Chad Ray says:

    Hi Tom,

    So first, let me just say that I neglected to call out in the original post that you will need to first download the .exe for each language pack to your machine. Second, from the command line you'll want to call each .exe you downloaded and give it the /extract:<path>. So for example…LP-En-ES.exe /extract:"c:lpSpanish". Once you do that, you'll notice a subfolder structure to the path I specificed for the config.xml. That XML comes pre-configured for you – all you need to do just point the script to it. Hope that makes sense…

    I would imagine the same holds true for SharePoint 2010 language packs – extract the package and check to see if the file paths are correct to the config.xml. I would bet it should work just fine for you – but test it out first because I am just guessing based on experience and not based on my own testing. 🙂

Comments are closed.

Skip to main content