solution etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
solution etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

9 Ekim 2012 Salı

Cannot uninstall Language Pack 0 because it is not deployed

If you have this error, it means you are trying to uninstall a solution which is not installed (deployed).

So,
First check Central Administration - System Settings - Manage Farm Solutions - Check if your solution is deployed. If it is not, deploy it.

If you have trouble by deploying it, try to remove the solution. (Yeah, skip uninstall phase)

Removing solution PowerShell cmd:
Remove-SPSolution -Identity solution.wsp -Force
Removing solution stsadm cmd:
stsadm -o deletesolution -name solution.wsp -override

Add Solution PowerShell cmd:
Add-SPSolution D:\solution.wsp
Add Solution stsadm cmd:
stsadm.exe -o addsolution -filename D:\solution.wsp

Install Solution PowerShell cmd:
Install-SPSolution –Identity solution.wsp -GACDeployment -Force
Install Solution stsadm cmd:
stsadm -o deploysolution -name solution.wsp -immediate -allowCasPolicies -force -allowGacDeployment

1 Ekim 2012 Pazartesi

Sharepoint 2010 Export all the solutions (wsp files)

Hi,

If you d like to get all the solutions (wsp files) from a sharepoint server and save them into a location, you just need the below code:

Open the Power Shell as Admin, type:


Add-PSSnapin Microsoft.SharePoint.PowerShell –erroraction SilentlyContinue 
## setup our output directory 
$dirName = "d:\exports\ExportedSolutions
Write-Host Exporting solutions to $dirName 
 foreach ($solution in Get-SPSolution) 
 { 
 $id = $Solution.SolutionID 
 $title = $Solution.Name 
 $filename = $Solution.SolutionFile.Name 
 Write-Host "Exporting ‘$title’ to …\$filename" -nonewline 
 try 
 $solution.SolutionFile.SaveAs("$dirName\$filename")
 Write-Host " – done" -foreground green 
 } 
 catch 
 {
 Write-Host " – error : $_" -foreground red 
 }
 }

You can change the output location as you want, it would save all the solutions.

Great time saver !

Cheers

PS: Sorry I forgot to give the source, but you can google it though.