SlideShare una empresa de Scribd logo
1 de 37
SharePoint 2010
 Session - 3

By: Usman Zafar Malik
[MCTS: MOSS 2007], [MSCBSS: CRM 3.0 / 4.0], MCP
SharePoint 2010 Deployment
Agenda
•   What to Deploy?
•   Types of Solution Packages
•   Deployment Cases
•   Deployment Steps
•   Deployment Approaches
What to Deploy ?
Solution Package
• What is a solution package?
  – A solution package is a distribution package that
    delivers your custom SharePoint Server 2010
    development work to the Web servers or the
    application servers in your server farm.

  – Use solutions to package and deploy custom Features,
    site definitions, templates, layout pages, Web Parts,
    cascading style sheets, and assemblies.
Type of Solutions
1- Sandboxed Solutions
2- Farm Solutions
Sandboxed Solutions
•   Allowing site collection administrators to deploy solutions that are safe to run.

•   Deploying Solutions at Site Collection Level.

•   Some of the Limitations are

     – Can’t support visual web parts, because it contains a .ascx control that must be deployed to
       the “_layouts” directory and deploying controls isn't allowed in any directory in sandboxed
       solutions.

     – Upload the solution package to the Solution Gallery and activate it.

     – For Debugging sandbox solutions, attach the debugger to the sandboxed solution worker
       process, SPUCWorkerProcess.exe and debug it.
Sandboxed Solutions
Farm Solutions
• They're deployed by a farm administrator and are scoped
  to the farm level.

• Also known as full trust solutions.

• They have full trust access to all resources and functionality
  in SharePoint and, when deployed, require you to IISReset.

• Solution should deployed on both WFE’s and Application
  Servers.
Farm Solutions
Deployment Items
•   Visual Web parts
•   Master Pages
•   Content Types
•   List Definitions
•   Page Layouts
•   User Controls
•   Web Controls
•   Site Definitions
Visual Web Parts
Visual Web Parts
Master Pages
Master Pages
Master Pages
User Controls
User Controls
Physical Item in 14 Hive
Deployment Cases
• Fresh Deployment

• Upgrade Deployment

• Uninstall Deployment
Deployment Steps
Fresh Deployment

    1. Adding Solution (*.wsp file)

           Just add this solution to the SharePoint solution gallery (Site Collection/Farm Level)

    2. Deploying Solution (*.wsp file)

           Placed all the files present in the solution package will be deployed to their respective places.
           User control files (.ascx) are copied to “%ProgramFiles%Common FilesMicrosoft Sharedweb server
            extensions14TEMPLATEControlTemplates” or a subfolder of it.
           Assemblies are deployed to the global assembly cache or to a web application's bin folder
           Features are copied to a subfolder of “%ProgramFiles%Common FilesMicrosoft Sharedweb server
            extensions14TEMPLATEFEATURES” and installed in the Feature Gallery of the farm, web application, site collection, or
            website, depending on the scope of the Feature

    3. Activation the Features

           Activate the Features as required
           Features must be activated before they can be used.
Deployment Steps
Upgrade Deployment

   Deploy Solution v/s Upgrade Solution Concept

   • Upgrade Solution  If you rename the solution file or change the GUID, "upgradesolution"
   operation will fail with an error stating that a solution with name or GUID does not exists in
   solution store. But in case of “deploy solution” it will allow you to rename it.

   • Deploy Solution  When you deploy a solution and then their associated features are also
   installed but that's not the case with "upgradesolution" operation. If you uninstall the features
   and then upgrade the solution, it will not install the features. But if you deploy the solution it
   will install the features again.
Deployment Steps
Upgrade Deployment (Deploy Solution Technique)

       1. Disable and Uninstall all the Features

                   For the safe side you need to deactivate/disable the feature and then uninstall it .

       2. Retracting Solution (*.wsp file)

                   Retracted solutions are not removed from the farm's solution store and can remain stored there in an un-deployed state indefinitely.
                   It will uninstall all the features which exists in the solution package.

       3. Deleting Solution

                   Deleting the existing solution.

       3. Adding Solution

                   Adding the updated solution in to the SharePoint solution store.

       3. Deploying Solution

                   Deploying the newly added solution/package file. Will automatically installing the features and placed the files in to their respective places.

       3. Activating Features

                   Activate the newly installed features as required.
Deployment Steps
Upgrade Deployment (Upgrade Solution Technique)

   1. Upgrade Solution Package

        Just performs upgrade operations on the Solution/Package file.
Deployment Steps
Upinstall Deployment

    1. Disable and Uninstall all the Features

          You must first need to deactivate/disable all the features and then uninstall it.


    2. Retracting Solution (*.wsp file)

          Retracted solutions are not removed from the farm's solution store and can remain stored there in an un-
           deployed state indefinitely.

          It will uninstall all the features which exists in the solution package.

    3. Deleting Solution

          Deleting the existing solution.
Deployment Approaches
• Two types of Deployment Approaches.

 Use STSADM Command Line Tool

 Use Power Shell Commands
STSADM Command Line Tool
• An .exe file “Stsadm.exe” resides in 14 hive Bin
  folder.
  Path: C:ProgramFilesCommonFilesMicrosoft
Sharedweb server extensions14BINstsadm.exe
STSADM Command Line Tool
Adding Solution
stsadm.exe -o addsolution -filename "DummySharePointProject.wsp”
* Perform Administrative Command


Deploying Solution
stsadm.exe -o deploysolution -name "DummySharePointProject.wsp" -allowGacDeployment -immediate –force
* Perform Administrative Command

stsadm.exe -o deploysolution -name "DummySharePointProject.wsp" -allowGacDeployment -immediate -force –allcontenturls
* Perform Administrative Command

Note: * Always perform this command after every command that need to run the administrative job.
* stsadm.exe -o execadmsvcjobs
STSADM Command Line Tool
Retracting Solution
stsadm.exe -o retractsolution -name "DummySharePointProject.wsp" -immediate
* Perform Administrative Command

stsadm.exe -o retractsolution -name "DummySharePointProject.wsp" -allcontenturls -immediate
* Perform Administrative Command


Deleting Solution
stsadm.exe -o deletesolution -name "DummySharePointProject.wsp"
* Perform Administrative Command
Note: * Always perform this command after every command that need to run the administrative job.
* stsadm.exe -o execadmsvcjobs
STSADM Command Line Tool
Installing Feature
stsadm.exe -o installfeature -name [Feature Name] -force


Uninstall Feature
stsadm.exe -o uninstallfeature -id [Feature ID] -force

* [Feature Name] = Example: “Feature.ContentTypes"
* [Feature ID] = Example: 4c9e8ca5-d893-42b8-a3b3-cae4b18bf133
STSADM Command Line Tool
Deactivate/Disable Feature
stsadm.exe -o deactivatefeature -id [Feature ID] -url [TargetUrl] –force

Activate/Enable Feature
stsadm.exe -o activatefeature -id [Feature ID] -url [TargetUrl] -force


* [Feature ID] = Example: 4c9e8ca5-d893-42b8-a3b3-cae4b18bf133
* [TargetUrl] = provide the site URL from where feature is going to disabled.
                   http://mydummysiteserver:port/testsite
Power Shell Commands




Most Power full deployment tool
Have large number of command supports (Getter/Setter) available for commands
Can code normal C# code inside power shell script
Can execute our multiple commands through scripting logic
Power Shell Commands
Adding Solution
$SolutionPath = “C:DummySharePointProject.wsp”
Add-SPSolution $SolutionPath


Deploying Solution
$solutionName = "DummySharePointProject.wsp“
$SiteUrl = “http://mydummyweburl:9999/”

Install-SPSolution -Identity $solutionName -WebApplication $SiteUrl -GACDeployment
Power Shell Commands
Retracting Solution
$solutionName = "DummySharePointProject.wsp“
$SiteUrl = “http://mydummyweburl:9999/”

Uninstall-SPSolution -Identity $solutionName -WebApplication $SiteUrl -Confirm:$false


Deleting Solution
$solutionName = "DummySharePointProject.wsp“

Remove-SPSolution -Identity $solutionName -Confirm:$false
Power Shell Commands
Installing Feature
Install-SPFeature [FeatureFolderName]


Uninstall Feature
Uninstall-SPFeature [FeatureFolderName ]
Power Shell Commands
Deactivate/Disable Feature
Disable-SPFeature [FeatureFolderName] -Url [http://server/site/subsite]

Activate/Enable Feature
Enable-SPFeature [FeatureFolderName] -Url [http://server/site/subsite]
Thanks !

Más contenido relacionado

La actualidad más candente

Apache Maven for SoftServe IT Academy
Apache Maven for SoftServe IT AcademyApache Maven for SoftServe IT Academy
Apache Maven for SoftServe IT AcademyVolodymyr Ostapiv
 
Connect2017 DEV-1550 Why Java 8? Or, What's a Lambda?
Connect2017 DEV-1550 Why Java 8? Or, What's a Lambda?Connect2017 DEV-1550 Why Java 8? Or, What's a Lambda?
Connect2017 DEV-1550 Why Java 8? Or, What's a Lambda?Julian Robichaux
 
2012 a deployment pipeline for infrastructure a dev ops case study at nbn _ ...
2012 a deployment pipeline for infrastructure  a dev ops case study at nbn _ ...2012 a deployment pipeline for infrastructure  a dev ops case study at nbn _ ...
2012 a deployment pipeline for infrastructure a dev ops case study at nbn _ ...sauravs007
 
Double the Performance of Oracle SOA Suite 11g? Absolutely! (whitepaper)
Double the Performance of Oracle SOA Suite 11g? Absolutely! (whitepaper)Double the Performance of Oracle SOA Suite 11g? Absolutely! (whitepaper)
Double the Performance of Oracle SOA Suite 11g? Absolutely! (whitepaper)Revelation Technologies
 
Improving Your Admin Image
Improving Your Admin ImageImproving Your Admin Image
Improving Your Admin Imageelisemoss
 
J upgrade presentation
J upgrade presentationJ upgrade presentation
J upgrade presentationvdrover
 

La actualidad más candente (10)

Apache Maven for SoftServe IT Academy
Apache Maven for SoftServe IT AcademyApache Maven for SoftServe IT Academy
Apache Maven for SoftServe IT Academy
 
Openstack bug list
Openstack bug listOpenstack bug list
Openstack bug list
 
Connect2017 DEV-1550 Why Java 8? Or, What's a Lambda?
Connect2017 DEV-1550 Why Java 8? Or, What's a Lambda?Connect2017 DEV-1550 Why Java 8? Or, What's a Lambda?
Connect2017 DEV-1550 Why Java 8? Or, What's a Lambda?
 
Java and XPages
Java and XPagesJava and XPages
Java and XPages
 
2012 a deployment pipeline for infrastructure a dev ops case study at nbn _ ...
2012 a deployment pipeline for infrastructure  a dev ops case study at nbn _ ...2012 a deployment pipeline for infrastructure  a dev ops case study at nbn _ ...
2012 a deployment pipeline for infrastructure a dev ops case study at nbn _ ...
 
Double the Performance of Oracle SOA Suite 11g? Absolutely! (whitepaper)
Double the Performance of Oracle SOA Suite 11g? Absolutely! (whitepaper)Double the Performance of Oracle SOA Suite 11g? Absolutely! (whitepaper)
Double the Performance of Oracle SOA Suite 11g? Absolutely! (whitepaper)
 
Improving Your Admin Image
Improving Your Admin ImageImproving Your Admin Image
Improving Your Admin Image
 
MDT Step public
MDT Step publicMDT Step public
MDT Step public
 
J Meter Intro
J Meter IntroJ Meter Intro
J Meter Intro
 
J upgrade presentation
J upgrade presentationJ upgrade presentation
J upgrade presentation
 

Destacado

Fin 515 week 5
Fin 515 week 5Fin 515 week 5
Fin 515 week 5ecambry
 
Ciscff 11 4-2011
Ciscff 11 4-2011Ciscff 11 4-2011
Ciscff 11 4-2011ecambry
 
John Needham.Patient Thoughts
John Needham.Patient ThoughtsJohn Needham.Patient Thoughts
John Needham.Patient ThoughtsJNeedham
 
Strata 2011 - Real world apps panel - IPUMS International
Strata 2011 - Real world apps panel - IPUMS InternationalStrata 2011 - Real world apps panel - IPUMS International
Strata 2011 - Real world apps panel - IPUMS InternationalPete Clark
 
How 21 cei works
How 21 cei worksHow 21 cei works
How 21 cei worksecambry
 
Celebrity endorsements
Celebrity endorsementsCelebrity endorsements
Celebrity endorsementsmanigarg
 

Destacado (6)

Fin 515 week 5
Fin 515 week 5Fin 515 week 5
Fin 515 week 5
 
Ciscff 11 4-2011
Ciscff 11 4-2011Ciscff 11 4-2011
Ciscff 11 4-2011
 
John Needham.Patient Thoughts
John Needham.Patient ThoughtsJohn Needham.Patient Thoughts
John Needham.Patient Thoughts
 
Strata 2011 - Real world apps panel - IPUMS International
Strata 2011 - Real world apps panel - IPUMS InternationalStrata 2011 - Real world apps panel - IPUMS International
Strata 2011 - Real world apps panel - IPUMS International
 
How 21 cei works
How 21 cei worksHow 21 cei works
How 21 cei works
 
Celebrity endorsements
Celebrity endorsementsCelebrity endorsements
Celebrity endorsements
 

Similar a SharePoint 2010 Deployment Approaches

Best practices for share point solution deployment
Best practices for share point solution deploymentBest practices for share point solution deployment
Best practices for share point solution deploymentSalaudeen Rajack
 
Anatomy Of A Share Point Solution
Anatomy Of A Share Point SolutionAnatomy Of A Share Point Solution
Anatomy Of A Share Point SolutionG. Scott Singleton
 
Best practices for implementing CI/CD on Salesforce
Best practices for implementing CI/CD on SalesforceBest practices for implementing CI/CD on Salesforce
Best practices for implementing CI/CD on SalesforceAIMDek Technologies
 
SFDC Deployments
SFDC DeploymentsSFDC Deployments
SFDC DeploymentsSujit Kumar
 
Diff sand box and farm
Diff sand box and farmDiff sand box and farm
Diff sand box and farmRajkiran Swain
 
Intelligent Projects with Maven - DevFest Istanbul
Intelligent Projects with Maven - DevFest IstanbulIntelligent Projects with Maven - DevFest Istanbul
Intelligent Projects with Maven - DevFest IstanbulMert Çalışkan
 
BMO - Intelligent Projects with Maven
BMO - Intelligent Projects with MavenBMO - Intelligent Projects with Maven
BMO - Intelligent Projects with MavenMert Çalışkan
 
Docker - A lightweight Virtualization Platform for Developers
Docker - A lightweight Virtualization Platform for DevelopersDocker - A lightweight Virtualization Platform for Developers
Docker - A lightweight Virtualization Platform for DevelopersRapidValue
 
XPages -Beyond the Basics
XPages -Beyond the BasicsXPages -Beyond the Basics
XPages -Beyond the BasicsUlrich Krause
 
CYBERSECURITY PROCESSES & TECHNOLOGIES LAB #2: MANAGING HOST BASED SECURITY
CYBERSECURITY PROCESSES & TECHNOLOGIES LAB #2: MANAGING HOST BASED SECURITYCYBERSECURITY PROCESSES & TECHNOLOGIES LAB #2: MANAGING HOST BASED SECURITY
CYBERSECURITY PROCESSES & TECHNOLOGIES LAB #2: MANAGING HOST BASED SECURITYViscolKanady
 
Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3Drupalcon Paris
 
Monitoring and Maintaining SharePoint 2013 Server
Monitoring and Maintaining SharePoint 2013 ServerMonitoring and Maintaining SharePoint 2013 Server
Monitoring and Maintaining SharePoint 2013 ServerLearning SharePoint
 
Orangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User ManualOrangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User ManualOrangescrum
 
BLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docxBLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docxmoirarandell
 
Expanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate UsabilityExpanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate UsabilityTeamstudio
 
PHP North-East - Automated Deployment
PHP North-East - Automated DeploymentPHP North-East - Automated Deployment
PHP North-East - Automated DeploymentMichael Peacock
 
Automated Deployment
Automated DeploymentAutomated Deployment
Automated Deploymentphpne
 

Similar a SharePoint 2010 Deployment Approaches (20)

Best practices for share point solution deployment
Best practices for share point solution deploymentBest practices for share point solution deployment
Best practices for share point solution deployment
 
Anatomy Of A Share Point Solution
Anatomy Of A Share Point SolutionAnatomy Of A Share Point Solution
Anatomy Of A Share Point Solution
 
Maven
MavenMaven
Maven
 
Best practices for implementing CI/CD on Salesforce
Best practices for implementing CI/CD on SalesforceBest practices for implementing CI/CD on Salesforce
Best practices for implementing CI/CD on Salesforce
 
SFDC Deployments
SFDC DeploymentsSFDC Deployments
SFDC Deployments
 
Exploring Maven SVN GIT
Exploring Maven SVN GITExploring Maven SVN GIT
Exploring Maven SVN GIT
 
Diff sand box and farm
Diff sand box and farmDiff sand box and farm
Diff sand box and farm
 
Intelligent Projects with Maven - DevFest Istanbul
Intelligent Projects with Maven - DevFest IstanbulIntelligent Projects with Maven - DevFest Istanbul
Intelligent Projects with Maven - DevFest Istanbul
 
BMO - Intelligent Projects with Maven
BMO - Intelligent Projects with MavenBMO - Intelligent Projects with Maven
BMO - Intelligent Projects with Maven
 
Maven advanced
Maven advancedMaven advanced
Maven advanced
 
Docker - A lightweight Virtualization Platform for Developers
Docker - A lightweight Virtualization Platform for DevelopersDocker - A lightweight Virtualization Platform for Developers
Docker - A lightweight Virtualization Platform for Developers
 
XPages -Beyond the Basics
XPages -Beyond the BasicsXPages -Beyond the Basics
XPages -Beyond the Basics
 
CYBERSECURITY PROCESSES & TECHNOLOGIES LAB #2: MANAGING HOST BASED SECURITY
CYBERSECURITY PROCESSES & TECHNOLOGIES LAB #2: MANAGING HOST BASED SECURITYCYBERSECURITY PROCESSES & TECHNOLOGIES LAB #2: MANAGING HOST BASED SECURITY
CYBERSECURITY PROCESSES & TECHNOLOGIES LAB #2: MANAGING HOST BASED SECURITY
 
Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3
 
Monitoring and Maintaining SharePoint 2013 Server
Monitoring and Maintaining SharePoint 2013 ServerMonitoring and Maintaining SharePoint 2013 Server
Monitoring and Maintaining SharePoint 2013 Server
 
Orangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User ManualOrangescrum In App Chat Add-on User Manual
Orangescrum In App Chat Add-on User Manual
 
BLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docxBLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docx
 
Expanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate UsabilityExpanding XPages with Bootstrap Plugins for Ultimate Usability
Expanding XPages with Bootstrap Plugins for Ultimate Usability
 
PHP North-East - Automated Deployment
PHP North-East - Automated DeploymentPHP North-East - Automated Deployment
PHP North-East - Automated Deployment
 
Automated Deployment
Automated DeploymentAutomated Deployment
Automated Deployment
 

Más de Usman Zafar Malik

SharePoint 2010 Training Session 6
SharePoint 2010 Training Session 6SharePoint 2010 Training Session 6
SharePoint 2010 Training Session 6Usman Zafar Malik
 
SharePoint 2010 Training Session 5
SharePoint 2010 Training Session 5SharePoint 2010 Training Session 5
SharePoint 2010 Training Session 5Usman Zafar Malik
 
SharePoint 2010 Training Session 4
SharePoint 2010 Training Session 4SharePoint 2010 Training Session 4
SharePoint 2010 Training Session 4Usman Zafar Malik
 
SharePoint 2010 Training Session 1
SharePoint 2010 Training Session 1SharePoint 2010 Training Session 1
SharePoint 2010 Training Session 1Usman Zafar Malik
 
SharePoint 2010 Training Session 2
SharePoint 2010 Training Session 2SharePoint 2010 Training Session 2
SharePoint 2010 Training Session 2Usman Zafar Malik
 
Easy Learning Presentation Moss 2007 Usman
Easy Learning Presentation Moss 2007 UsmanEasy Learning Presentation Moss 2007 Usman
Easy Learning Presentation Moss 2007 UsmanUsman Zafar Malik
 
Easy Learning Presentation Moss 2007 Usman
Easy Learning Presentation Moss 2007 UsmanEasy Learning Presentation Moss 2007 Usman
Easy Learning Presentation Moss 2007 UsmanUsman Zafar Malik
 
Presentation Moss 2007 Usman
Presentation Moss 2007 UsmanPresentation Moss 2007 Usman
Presentation Moss 2007 UsmanUsman Zafar Malik
 

Más de Usman Zafar Malik (9)

SharePoint 2010 Training Session 6
SharePoint 2010 Training Session 6SharePoint 2010 Training Session 6
SharePoint 2010 Training Session 6
 
SharePoint 2010 Training Session 5
SharePoint 2010 Training Session 5SharePoint 2010 Training Session 5
SharePoint 2010 Training Session 5
 
SharePoint 2010 Training Session 4
SharePoint 2010 Training Session 4SharePoint 2010 Training Session 4
SharePoint 2010 Training Session 4
 
SharePoint 2010 Training Session 1
SharePoint 2010 Training Session 1SharePoint 2010 Training Session 1
SharePoint 2010 Training Session 1
 
SharePoint 2010 Training Session 2
SharePoint 2010 Training Session 2SharePoint 2010 Training Session 2
SharePoint 2010 Training Session 2
 
Easy Learning Presentation Moss 2007 Usman
Easy Learning Presentation Moss 2007 UsmanEasy Learning Presentation Moss 2007 Usman
Easy Learning Presentation Moss 2007 Usman
 
Easy Learning Presentation Moss 2007 Usman
Easy Learning Presentation Moss 2007 UsmanEasy Learning Presentation Moss 2007 Usman
Easy Learning Presentation Moss 2007 Usman
 
Windows Workflow Foundation
Windows Workflow FoundationWindows Workflow Foundation
Windows Workflow Foundation
 
Presentation Moss 2007 Usman
Presentation Moss 2007 UsmanPresentation Moss 2007 Usman
Presentation Moss 2007 Usman
 

Último

DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 

Último (20)

DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 

SharePoint 2010 Deployment Approaches

  • 1. SharePoint 2010 Session - 3 By: Usman Zafar Malik [MCTS: MOSS 2007], [MSCBSS: CRM 3.0 / 4.0], MCP
  • 3. Agenda • What to Deploy? • Types of Solution Packages • Deployment Cases • Deployment Steps • Deployment Approaches
  • 5. Solution Package • What is a solution package? – A solution package is a distribution package that delivers your custom SharePoint Server 2010 development work to the Web servers or the application servers in your server farm. – Use solutions to package and deploy custom Features, site definitions, templates, layout pages, Web Parts, cascading style sheets, and assemblies.
  • 6. Type of Solutions 1- Sandboxed Solutions 2- Farm Solutions
  • 7. Sandboxed Solutions • Allowing site collection administrators to deploy solutions that are safe to run. • Deploying Solutions at Site Collection Level. • Some of the Limitations are – Can’t support visual web parts, because it contains a .ascx control that must be deployed to the “_layouts” directory and deploying controls isn't allowed in any directory in sandboxed solutions. – Upload the solution package to the Solution Gallery and activate it. – For Debugging sandbox solutions, attach the debugger to the sandboxed solution worker process, SPUCWorkerProcess.exe and debug it.
  • 9. Farm Solutions • They're deployed by a farm administrator and are scoped to the farm level. • Also known as full trust solutions. • They have full trust access to all resources and functionality in SharePoint and, when deployed, require you to IISReset. • Solution should deployed on both WFE’s and Application Servers.
  • 11. Deployment Items • Visual Web parts • Master Pages • Content Types • List Definitions • Page Layouts • User Controls • Web Controls • Site Definitions
  • 19. Physical Item in 14 Hive
  • 20. Deployment Cases • Fresh Deployment • Upgrade Deployment • Uninstall Deployment
  • 21. Deployment Steps Fresh Deployment 1. Adding Solution (*.wsp file)  Just add this solution to the SharePoint solution gallery (Site Collection/Farm Level) 2. Deploying Solution (*.wsp file)  Placed all the files present in the solution package will be deployed to their respective places.  User control files (.ascx) are copied to “%ProgramFiles%Common FilesMicrosoft Sharedweb server extensions14TEMPLATEControlTemplates” or a subfolder of it.  Assemblies are deployed to the global assembly cache or to a web application's bin folder  Features are copied to a subfolder of “%ProgramFiles%Common FilesMicrosoft Sharedweb server extensions14TEMPLATEFEATURES” and installed in the Feature Gallery of the farm, web application, site collection, or website, depending on the scope of the Feature 3. Activation the Features  Activate the Features as required  Features must be activated before they can be used.
  • 22. Deployment Steps Upgrade Deployment Deploy Solution v/s Upgrade Solution Concept • Upgrade Solution  If you rename the solution file or change the GUID, "upgradesolution" operation will fail with an error stating that a solution with name or GUID does not exists in solution store. But in case of “deploy solution” it will allow you to rename it. • Deploy Solution  When you deploy a solution and then their associated features are also installed but that's not the case with "upgradesolution" operation. If you uninstall the features and then upgrade the solution, it will not install the features. But if you deploy the solution it will install the features again.
  • 23. Deployment Steps Upgrade Deployment (Deploy Solution Technique) 1. Disable and Uninstall all the Features  For the safe side you need to deactivate/disable the feature and then uninstall it . 2. Retracting Solution (*.wsp file)  Retracted solutions are not removed from the farm's solution store and can remain stored there in an un-deployed state indefinitely.  It will uninstall all the features which exists in the solution package. 3. Deleting Solution  Deleting the existing solution. 3. Adding Solution  Adding the updated solution in to the SharePoint solution store. 3. Deploying Solution  Deploying the newly added solution/package file. Will automatically installing the features and placed the files in to their respective places. 3. Activating Features  Activate the newly installed features as required.
  • 24. Deployment Steps Upgrade Deployment (Upgrade Solution Technique) 1. Upgrade Solution Package  Just performs upgrade operations on the Solution/Package file.
  • 25. Deployment Steps Upinstall Deployment 1. Disable and Uninstall all the Features  You must first need to deactivate/disable all the features and then uninstall it. 2. Retracting Solution (*.wsp file)  Retracted solutions are not removed from the farm's solution store and can remain stored there in an un- deployed state indefinitely.  It will uninstall all the features which exists in the solution package. 3. Deleting Solution  Deleting the existing solution.
  • 26. Deployment Approaches • Two types of Deployment Approaches.  Use STSADM Command Line Tool  Use Power Shell Commands
  • 27. STSADM Command Line Tool • An .exe file “Stsadm.exe” resides in 14 hive Bin folder. Path: C:ProgramFilesCommonFilesMicrosoft Sharedweb server extensions14BINstsadm.exe
  • 28. STSADM Command Line Tool Adding Solution stsadm.exe -o addsolution -filename "DummySharePointProject.wsp” * Perform Administrative Command Deploying Solution stsadm.exe -o deploysolution -name "DummySharePointProject.wsp" -allowGacDeployment -immediate –force * Perform Administrative Command stsadm.exe -o deploysolution -name "DummySharePointProject.wsp" -allowGacDeployment -immediate -force –allcontenturls * Perform Administrative Command Note: * Always perform this command after every command that need to run the administrative job. * stsadm.exe -o execadmsvcjobs
  • 29. STSADM Command Line Tool Retracting Solution stsadm.exe -o retractsolution -name "DummySharePointProject.wsp" -immediate * Perform Administrative Command stsadm.exe -o retractsolution -name "DummySharePointProject.wsp" -allcontenturls -immediate * Perform Administrative Command Deleting Solution stsadm.exe -o deletesolution -name "DummySharePointProject.wsp" * Perform Administrative Command Note: * Always perform this command after every command that need to run the administrative job. * stsadm.exe -o execadmsvcjobs
  • 30. STSADM Command Line Tool Installing Feature stsadm.exe -o installfeature -name [Feature Name] -force Uninstall Feature stsadm.exe -o uninstallfeature -id [Feature ID] -force * [Feature Name] = Example: “Feature.ContentTypes" * [Feature ID] = Example: 4c9e8ca5-d893-42b8-a3b3-cae4b18bf133
  • 31. STSADM Command Line Tool Deactivate/Disable Feature stsadm.exe -o deactivatefeature -id [Feature ID] -url [TargetUrl] –force Activate/Enable Feature stsadm.exe -o activatefeature -id [Feature ID] -url [TargetUrl] -force * [Feature ID] = Example: 4c9e8ca5-d893-42b8-a3b3-cae4b18bf133 * [TargetUrl] = provide the site URL from where feature is going to disabled. http://mydummysiteserver:port/testsite
  • 32. Power Shell Commands Most Power full deployment tool Have large number of command supports (Getter/Setter) available for commands Can code normal C# code inside power shell script Can execute our multiple commands through scripting logic
  • 33. Power Shell Commands Adding Solution $SolutionPath = “C:DummySharePointProject.wsp” Add-SPSolution $SolutionPath Deploying Solution $solutionName = "DummySharePointProject.wsp“ $SiteUrl = “http://mydummyweburl:9999/” Install-SPSolution -Identity $solutionName -WebApplication $SiteUrl -GACDeployment
  • 34. Power Shell Commands Retracting Solution $solutionName = "DummySharePointProject.wsp“ $SiteUrl = “http://mydummyweburl:9999/” Uninstall-SPSolution -Identity $solutionName -WebApplication $SiteUrl -Confirm:$false Deleting Solution $solutionName = "DummySharePointProject.wsp“ Remove-SPSolution -Identity $solutionName -Confirm:$false
  • 35. Power Shell Commands Installing Feature Install-SPFeature [FeatureFolderName] Uninstall Feature Uninstall-SPFeature [FeatureFolderName ]
  • 36. Power Shell Commands Deactivate/Disable Feature Disable-SPFeature [FeatureFolderName] -Url [http://server/site/subsite] Activate/Enable Feature Enable-SPFeature [FeatureFolderName] -Url [http://server/site/subsite]