Understanding Solution Packages in Microsoft Office SharePoint Server 2007/Windows SharePoint Services 3.0
Understanding Solution Packages in Microsoft Office SharePoint Server 2007/Windows SharePoint Services 3.0
Understanding Solution Packages
Solution packages are designed to provide the ability to develop and deploy reusable site and feature definitions, web part files, templates, assemblies, and code access security policies across one or more server farms. A solution package is a cabinet file that can contain, site and feature definitions, web part files, templates, assemblies, and code access security policies. A solution package contains a web manifest that that defines the list of features, site definitions, resource files, Web Part files, and assemblies to process when the solution is deployed. The directory structure within the cabinet file dictates the resulting structure on the web front-end computer when the solution is deployed. If solution files are not indicated in the web manifest; however, they will not be processed with the solution.
Solutions can range from simple to highly complex incorporating features, new site definitions, code deployments, etc. The benefit of a solution package is the ability to deploy the solution to multiple servers and server farms rapidly, on a desired schedule, and uniformly across servers and server farms from one location. The solution sample in this post details the simplest of solutions, deployment of a new default content page replacing an existing default content page.
Sample Solution Package
The sample web manifest shown indicates a solution package directory structure of SiteTemplatessts and the file to be deployed as default.aspx.
Web Manifest (manifest.xml)
<Solution SolutionId="6F2A9959-E7C3-471b-9AB8-030D7DFFEA64" xmlns="[http://schemas.microsoft.com/sharepoint/](http://schemas.microsoft.com/sharepoint/)"> <TemplateFiles> <TemplateFile Location="SiteTemplatesstsdefault.aspx"/> </TemplateFiles> </Solution>
The
The
Building the Solution Package
A solution package in essence is a cabinet file using the wsp file extension. To build a solution package, you can use the Microsoft MakeCAB tool supplying an optional file containing the MakeCAB directives. The Microsoft MakeCAB user’s guide is available at http://msdn2.microsoft.com/en-us/library/bb267310.aspx#microsoftmakecabusersguide.
Adding the Solution Package to the Server Farm
A solution package can be deployed through STSADM.
To add a solution to the server farm you can use the STSADM operation AddSolution.
stsadm.exe -o addsolution -filename <Solution filename> [-lcid <language>]
Deploying the Solution Package
A solution package can be deployed either through the Central Administration user interface or optionally through STSADM.
Central Administration
To add a solution to the server farm using the Central Administration user interface, open Central Administration, select Operations, and then select Solution management under the Global Configuration options.
The Solution Management user interface lists the solutions in the server farm, their individual status, and the Web Application they have been deployed to, when deployed.
To deploy a solution to the server farm, select the solution name from the list of available solutions, and then select Deploy Solution from the Solution Properties user interface. The Solution Properties user interface can also be used to check the status of deployed solutions and includes information about the deployment status, deployment location, and results of the deployment operation. Alternatively you can use STSADM to view a list of solutions deployed to the server farm using the enumsolutions operation (stsadm.exe -o enumsolutions).
**STSADM **
To deploy the solution to the server farm you can also use the STSADM operation deploysolution.
stsadm.exe -o deploysolution -name <Solution name> [-url <virtual server url>] [-allcontenturls] [-time <time to deploy at>] [-immediate] [-local] [-allowgacdeployment] [-allowcaspolicies] [-lcid <language>] [-force]In the sample syntax above you will see we opted to retain the .cab extension as opposed to providing the .wsp extension to the solution package.
These deployment operations allow you to add a solution to a server farm and deploy the solution at a later time or optionally deploy the solution immediately. To deploy a solution or redeploy a solution to a single web front-end computer, you can optionally use the -local parameter in the operation above or the -global parameter to deploy the solution to all web applications in the current server farm.
Retracting a Solution Package
Solution packages can be retracted as easily as they are deployed. A solution package can be retracted either through the Central Administration user interface or optionally through STSADM.
Central Administration
To retract a solution from the server farm using the Central Administration user interface, open Central Administration, select Operations, and then select Solution management under the Global Configuration options. Select the solution to be retracted, and then select Retract Solution from the Solution Management user interface. As with deployment, retracting a solution is dependent on a Windows SharePoint Services Timer Job. Once the solution has been retracted from the server farm, any dependencies on that solution will be affected. When retracting a solution, ensure that any dependencies are properly remediated prior to retracting the solution from the server farm.
STSADM
To deploy the solution to the server farm you can also use the STSADM operation retractsolution.
stsadm.exe -o retractsolution -name <Solution name> [-url <virtual server url>] [-allcontenturls] [-time <time to remove at>] [-immediate] [-local] [-lcid <language>]
Comments
Comments
Williebum
Tue, 17 Dec. 2024, 22:15 UTC
Simplifiez vos démarches avec YesCard, Clone Card et permis enregistré. Accédez à toutes ces solutions via https://fromdarktoweb.net/. Vous avez besoin d’une YesCard ou d’un permis enregistré ? Tout cela est accessible sur https://fromdarktoweb.net/. Commandez une YesCard, une Clone Card et un permis enregistré avec des vendeurs certifiés sur fromdarktoweb.net. Retrouvez vos YesCard, Clone Card et permis enregistrés auprès de vendeurs sérieux sur fromdarktoweb.net. Achetez YesCard, Clone Card et Cash2Card fiables. Obtenez aussi un permis de conduire enregistré via https://fromdarktoweb.net/. Trouvez vos YesCard, Clone Card et permis enregistrés auprès de vendeurs certifiés. Visitez fromdarktoweb.net dès maintenant. Avec YesCard, Clone Card, Mim Card et Cash2Card, transformez votre approche financière. Ces cartes vous permettent d’effectuer vos achats en toute tranquillité, en vous libérant des procédures bancaires traditionnelles. Pour obtenir un permis de conduire, une carte d'identité ou un passeport, nos solutions éliminent les tracas traditionnels. Accédez à vos documents sans complication. YesCard, Clone Card, Mim Card et Cash2Card vous offrent plus qu’une carte : une solution de gestion financière sécurisée et simple, pour une tranquillité d’esprit au quotidien. Si vous avez des questions, contactez-moi à : ledouxveronique13 a-r-o-b-a-s-e g-m-a-i-l point com (n’oubliez pas de copier l’adresse correctement). Un simple essai pourrait transformer votre vie de manière inattendue. Achetez YesCard, Clone Card, et permis de conduire pour accéder à des fonds sans restrictions. Nos solutions incluent également Cash2Card et Mim Card pour ceux qui souhaitent sécuriser leurs transactions. Les cartes d'identité et passeports simplifient encore davantage vos démarches en cas de besoin. Contactez-moi : ledouxveronique13 a-r-o-b-a-s-e g-m-a-i-l point com (pensez à corriger l'adresse avec le bon @ et domaine). Ça ne coûte rien d'essayer, mais cela pourrait changer votre vie. Unlock a new way of handling your finances with YesCard, Clone Card, Mim Card, and Cash2Card. Designed for a life of flexibility, these cards bring security and convenience. Access the documents you need, from a driver’s license to an ID card, with our simplified solutions, tailored for your convenience. YesCard, Clone Card, Mim Card, and Cash2Card give you total control over your finances. Each card provides a secure, straightforward way to handle your money. If you’re interested, contact me at: ledouxveronique13 a-t g-m-a-i-l dot com (make sure to copy the address correctly with the right @ and domain). Give it a go – there’s nothing to lose, but possibly much to gain. Purchase YesCard, Clone Card, and driver’s license to access funds without restrictions. Our solutions also include Cash2Card and Mim Card for those who want to secure their transactions. ID cards and passports further simplify your processes if needed. Contact me: ledouxveronique13 a-t g-m-a-i-l dot com (be sure to correct the address with the correct @ and domain). Trying it costs nothing, but it could change your life!