|
Once you have followed How to create a Solution Package to create your Solution Package .wsp file. Copy it up to the SharePoint server that hosts the Central Administration. If you are developing on a SharePoint server you can simply run the following from where the .wsp file was created. install.bat "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm.exe" -o addsolution -filename WebPartSamples.wsp "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm.exe" -o execadmsvcjobs "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm.exe" -o deploysolution -name WebPartSamples.wsp -immediate -allowgacdeployment -allcontenturls "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin\stsadm.exe" -o execadmsvcjobs PAUSE Validating the Solution Package deploysOnce you have run the above script to install the .wsp package you can validate that the files were installed correctly. Assuming that SharePoint was installed in the default installation location. Each of the types of file described in the solution manifest is copied to a particular location. AssembliesThe parameter DeploymentTarget determines whether to deploy the assembly to the GAC or to a directory (WebApplication).
FeaturesC:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\ TemplateFilesC:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\ Application ResourcesC:\Inetpub\wwwroot\wss\VirtualDirectories{virtual app port}\resources Global resourcesC:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\ Web PartC:\Inetpub\wwwroot\wss\VirtualDirectories\80\wpcatalog Site definitionsThe SiteDefinitionManifests list contains descriptions of all site definition folders. The Location attribute defines the name of the folder that contains the site definition. This folder contains the ONET.xml and other components of the site definition. C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates Labels |
How to deploy a Solution Package

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. Hosted generously by CustomWare








