SharePoint Custom Solution Deployment Practices Review

AID: 5431
  • Status: Published

1620 points

  • ByIvan_Padabed
  • TypeGeneral
  • Posted on2011-05-10 at 05:21:52
There is one common problem that all we SharePoint developers share: custom solution deployment.

This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspective.

This is the problem statement:
You have your SharePoint solution developed and ready to be delivered to the production environment (I'm intentionally skipping all the QA steps here). All you have is one or more WSPs (as you may know, WSP is a CAB-based package containing solution files and XML manifest with instructions to SharePoint how to deploy solution files) and some features of different scope inside. But in my experience, this is not enough to get your solution deployed even on a test environment.


Most of us, old-school SharePoint developers, used to write STSADM-based batch files to automatically deploy, install and activate; but this approach is not very convenient: no logging, no UI, and too much preconditions to have it successfully completed.

Almost the same experience is regarding PowerShell. Please note that I'm referring only deployment automation aspects of using PowerShell. No doubt that PowerShell is a great tool for a lot of IT tasks, but it gives almost the same user experience when used for SP deployment automation.

The next approach is usually to write a proprietary tool to take care of deployment.  If used for many different solutions, such a tool could become universal but in most cases this is a "dead end". There are better alternatives such as open source installers.  

Let's take a look there.
1

http://kaldeera.codeplex.com

pretty old and simple solutions installer, but still can save you some time


2

http://stsdts.codeplex.com

for people who use TFS 2008 with MOSS 2007. Not so popular combination for these days. Could be useful for QA deployment automation but still no help with final solution deployment on production environment


3

http://solutioninstaller.codeplex.com

Nice looking but not useful. All solutions have to be already published on the web to be enlisted so this tool just not enough to cover full deployment cycle


4

http://sharepointinstaller.codeplex.com

last but not least, my favorite codeplex project ever is fabulous SPInstaller! It is customizable through XML-based configuration, extensible via external C# commands, supporting branding and license attachment and has many more features.  Actually, the latest version, which has all the best features, was never officially released due to project coordinator disappearance. But, you still can download the v2 beta version with all the stuff. More useful updates yet to come, this open source project will not die, it is just too good for it!



But all these deployment tools are just an intermediate solution. The next thing we are doing here is WIX-based component, which is allowing the SharePoint solution deployment to be integrated with any Windows Installer package. This could be extremely useful when you want to deploy your SharePoint solution as part of a bigger product with a single package.

Let's summarize:
  • STSADM-based scripts - easy to do basic automation, not worth investments for advanced scenarios

  • PowerShell-based scripts - more options for basic automation, but still not enough for advanced scenarios and not easy to support

  • Open-source installers (especially SharePointInstaller) - perfect tool for pure SharePoint deployment, please note you need to use not-yet-released v2 to get full feature set and sp2010 support

  • Next step - WIX-based component to use a power of Windows Installer. Optionally - 3rd-party installation package component (InstallShield, Wise etc). But for now no such component even with a minimal deployment features exists.



I can respond to brief comments about the ideas expressed above, but if you want help with a particular SharePoint problem or issue, it would be best to post a question in EE's MS SharePoint Zone.
Asked On
2011-05-10 at 05:21:52ID5431
Tags

microsoft

,

sharepoint

,

deployment

,

custom

,

solution

,

installer

,

wix

,

powershell

,

stsadm

,

vs2010

Topic

MS SharePoint

Views
1058

Comments

Add your Comment

Please Sign up or Log in to comment on this article.

Join Experts Exchange Today

Gain Access to all our Tech Resources

Get personalized answers

Ask unlimited questions

Access Proven Solutions

Search 3.2 million solutions

Read In-Depth How-To Guides

1000+ articles, demos, & tips

Watch Step by Step Tutorials

Learn direct from top tech pros

And Much More!

Your complete tech resource

See Plans and Pricing

30-day free trial. Register in 60 seconds.

Loading Advertisement...

Top MS SharePoint Experts

  1. ACH1LLES

    358,298

    Wizard

    0 points yesterday

    Profile
    Rank: Genius
  2. JamieMcAllister

    189,161

    Guru

    0 points yesterday

    Profile
    Rank: Sage
  3. teylyn

    170,328

    Guru

    900 points yesterday

    Profile
    Rank: Genius
  4. ivan_vagunin

    156,400

    Guru

    0 points yesterday

    Profile
    Rank: Sage
  5. QPR

    123,685

    Master

    2,000 points yesterday

    Profile
    Rank: Genius
  6. Tehzar

    100,639

    Master

    0 points yesterday

    Profile
    Rank: Guru
  7. svetaye

    75,681

    Master

    0 points yesterday

    Profile
    Rank: Guru
  8. tedbilly

    71,150

    Master

    0 points yesterday

    Profile
    Rank: Genius
  9. quihong

    52,832

    Master

    0 points yesterday

    Profile
    Rank: Sage
  10. dp_expert

    49,160

    0 points yesterday

    Profile
    Rank: Wizard
  11. colly92002

    41,560

    0 points yesterday

    Profile
    Rank: Master
  12. clayfox

    39,400

    0 points yesterday

    Profile
    Rank: Genius
  13. milindsaraswala

    36,835

    0 points yesterday

    Profile
  14. RainerJ

    31,840

    1,000 points yesterday

    Profile
    Rank: Master
  15. abhitrig

    31,218

    0 points yesterday

    Profile
    Rank: Wizard
  16. dhawalseth

    30,268

    0 points yesterday

    Profile
  17. ImaCircularSaw

    29,438

    0 points yesterday

    Profile
    Rank: Guru
  18. martusha

    25,478

    0 points yesterday

    Profile
  19. zephyr_hex

    21,624

    0 points yesterday

    Profile
    Rank: Genius
  20. FastFngrz

    21,414

    0 points yesterday

    Profile
    Rank: Guru
  21. livanescu

    20,100

    0 points yesterday

    Profile
  22. danshady

    18,870

    0 points yesterday

    Profile
  23. CloudedTurtle

    18,050

    0 points yesterday

    Profile
    Rank: Master
  24. jessc7

    17,102

    0 points yesterday

    Profile
    Rank: Sage
  25. JoeKlimis

    16,318

    0 points yesterday

    Profile
    Rank: Master

Hall Of Fame