SharePoint Solution Installer

** UPDATE September 12th 2007: Project moved to CodePlex with source code! 

Here ya go - a free tool for eased installation and deployment of SharePoint 2007 solution files to a SharePoint server farm.

* DOWNLOAD REMOVED. PLEASE GO TO HERE

The tool is FREEWARE and provided AS IS. Please comment on this post to report any issues.

** UPDATE March 25th 2007: New version 1.0.3 release. It includes a work-around for the daylight saving time (DST) bug in the SharePoint 2007 timer service, which caused the solution deployment and retraction jobs to not run until one hour after being created. The work-around basically instructs SharePoint to run the job yesterday. This will immediately kick start the timer job no matter what time zone and DST settings your server might have. Microsoft is aware of this bug and has published a knowledgebase article about it. I think we can safely assume WSS V3 SP1 will include a fix for this issue.

** UPDATE March 15th 2007: Renamed product from Generic SharePoint 2007 Solution Installer to SharePoint Solution Installer (SSI). How is that name Patrick? Maybe the single malt can power an even better name next week....

I donate this tool to the SharePoint community as I have lately come to the conclusion that you sometimes need a more user friendly and safer way of installing wsp solution files to a SharePoint farm. You espceially need it when you want to distribute a SharePoint add-on as a solution to your customers. You cannot rely on everybody out there in the wild west to be intimately familiar with solution deployment, not to mention interpreting all the error conditions that can potentially arise. Distributing a raw solution file together with a simple install.bat script will easily earn you a lot of unnecessary support cases. Trust me, I learned this the hard way.

Hence, I was motivated to develop a nice and almost fool proof solution installer for our Ontolica for SharePoint product. I ended up developing a very generic and configurable version of it. I thought it could also come in handy for other SharePoint's and quickly decided to share it with you. 

The SharePoint Solution Installer includes the following features:

  • Support for all relevant operations:
    • Add solution to the SharePoint solution store.
    • Deploy solution to one or more web applications.
    • Upgrade solution.
    • Retract and remove solution.
  • Pre-install system check for the following conditions:
    • WSS V3 is installed.
    • MOSS 2007 is installed (This check can be disabled in config file),
    • User has permission to install solutions.
    • SharePoint database is online.
    • WSS Administration service is started.
    • WSS Timer service is started.
  • Implements a work around for the following error conditions:
    • Another solution deployment job never finished and is now blocking for the creation of a new job. Work-around: Delete old job from the list of Timer job defnitions.
    • Timer service is not started: An attempt is made to start it (please note that timer services on other front ends will not be started).
    • Database is offline, which will yield an ugly NullreferenceException from SharePoint offering little clue to the root cause of the problem. Work around: Detect NullreferenceException and display nice error message.
  • Display EULA. (Can be disabled in config file). 
  • Web application list where user can select the web apps. to deploy the solution to.
  • Rollback after installation errors.
  • Configurable Product Title.
  • Configurable banner image.
  • Configurable logo image.

Here are some screen shots that will give you a better idea of the nature of the tool (Don't worry about the Mondosoft logo, you can remove it or put in your own in the config file) :

Installer Check
eula List of target web applications
Progress Upgrade

 The installer can be launched with setup.exe, which can in turn be configured with the setup.exe.config file. The following configuration example outlines the various options that you can configure.

<configuration>
  <
appSettings
>
    <
add key="BannerImage" value="Default"
/>
    <
add key="LogoImage" value="Default"
/>
    <
add key="EULA" value="EULA.rtf"
/>
    <
add key="Require" value="MOSS"
/>
    <
add key="FarmFeatureId" value="A69D3FDA-142A-4d2c-BA6D-446CE01FF1C2"
/>
    <
add key="SolutionId" value="44906C46-D7C1-4a14-A7D2-87394D9FC7E3"
/>
    <
add key="SolutionFile" value="yoursolution.wsp"
/>
    <
add key="SolutionTitle" value="Enter Product Title Here"
/>
    <
add key="SolutionVersion" value="1.0.0.0"
/>
    <
add key="UpgradeDescription" value="Upgrades {SolutionTitle} on all frontend web servers in the SharePoint farm. "
/>
    <
add key="RequireDeploymentToCentralAdminWebApllication" value="true"
/>
    <
add key="RequireDeploymentToAllContentWebApplications" value="false"
/>
  </
appSettings
>
</
configuration>

Below is a brief explanation of each configuration option:

BannerImage
Accepts a path to your own banner image. The image is automatically stretched to fir the title bar. Remove or specify empty value to omit banner image.

LogoImage
Accepts a path to your own logo image. Remove or specify empty value to omit banner image.

EULA
Accepts a path to your own EULA file. Remove or specify empty value if you do not want to present an EULA to the user.

Require
Specify MOSS if your solution requires Microsoft Office SharePoint Server 2007 to install and run. Remove or specify empty value if your solution will settle for a WSS only farm.

FarmFeatureId
Specify the GUID of the farm level feature that the installer should automatically activate at the end of the installation process. Specify empty value if the installer should not activate any feature.

SolutionId
Specify the GUID of your solution. The installer will need this to detect any existing solution in the SharePoint solution store.

SolutionFile
Specify the filename of the solution file, e.g. mysolution.wsp. Creating the solution file is of course your job entirely - but I can highly recommend you to take a look at the Visual Studio 2005 Extensions for WSS 3.0

SolutionVersion
Specify the version of your solution. The upgrade option will only show if this version number is different from the previously installed solution.

The remaining options should be self explanatory.

 

 

Print | posted on Wednesday, March 14, 2007 8:48 PM

Feedback

3/15/2007 9:30 AM
#1

# re: Generic SharePoint 2007 Solution Installer

Great stuff Lars :-)
3/15/2007 6:19 PM
#2

# re: SharePoint Solution Installer

Lars - very useful utility which works a treat for me installing and removing the demo solution as downloaded. However when I try the repair option I get an exception 'GUID should contain 32 digits with 4 dashes'. Call stack is
system.guid.ctor
microsoft.sharepoint.administration.SPSolutionlanguagepack.get_DeployedWebApplications()
microsoft.sharepoint.administration.spsolution.get_deployedwebapplications()
Mondosoft.k.d()
Mondosoft.k.Open(p options)
3/15/2007 7:33 PM
#3

# re: GUID error

Richard - thanks for the feedback. Bug is now fixed in version 1.0.2
3/16/2007 9:17 AM
#4

# SharePoint Solution Installer

Очень добрый человек по имени Lars Fastrup решил заметно упростить жизнь разрабо
3/16/2007 5:38 PM
#5

# Sharepoint Solution Installer

Wow, quite a nice &amp;#39;donation to the Sharepoint Community&amp;#39; from Lars Fastrup (Ontolica): It&amp;#39;s
3/16/2007 7:03 PM
#6

# re: SharePoint Solution Installer

Works great. It will be used! :-) Combine it with the VS 2005 Solution Deployment template from "TheKid" (http://www.codeplex.com/sptemplateland/) and you have some really great tools (and time savers!) in your MOSS 2007 Development toolbok

Ontolica Search is soon to be tested. The wild card search and drill down functions are said to be really great - a must have!

Frode
3/17/2007 1:20 PM
#7

# SharePoint 2007 Solution Installer freeware

Segnalo che Mondosoft (quelli di Ontolica Search ) ha rilasciato un tool freeware per facilitare l'installazione
3/19/2007 3:12 PM
#8

# re: SharePoint Solution Installer

Works like a charm. The community thanks you!
3/19/2007 11:57 PM
#9

# SharePoint 2007 WebParts &amp;amp; Publishing Controls - Is there third way?

WebParts are great, you can easily add them to any WebPart page which has a WebPart zone and add new
3/22/2007 4:09 PM
#10

# SharePoint Solution Installer

Ein kostenloses Tool von Lars Fastrup f&#252;r die vereinfachte Installation und Verteilung von SharePoint
3/24/2007 1:56 AM
#11

# Web.config modification manager for SharePoint

The SPWebConfigModification class is used by features to make changes to web.config which need to be
3/26/2007 6:14 AM
#12

# Recommended Reading for March and April, 2007

Recommended Reading for March and April (click here for previous recommendations). Lots of useful content
3/26/2007 7:11 PM
#13

# Floating ToolPane for SharePoint

Ever been frustrated that the tool pane in SharePoint takes up your screen real estate, or that you have
3/26/2007 9:51 PM
#14

# re: SharePoint Solution Installer

Thanks for your installer..it has soved me a fair bit of development, but more importantly a lot of testing!!

I did have some suggestions, which I was thinking about today...

1. Multiple solutions packages which are enumerated and you can choose which ones to install.

2. No EULA if it's not required.

3. Don't default central admin...not many solutions are deployed to central admin. Optionally exclude it completely.

4. Central admin only. The WebConfigManager thing cannot & will not be deployed to anywhere except central admin.

5. Silent install (no UI).

And...this is a personal preference...remove the arrows(->) from the previous and next.

And thanks for a great tool...I will have to stop linking to your blog otherwise I'll fill your comments up...feel free to delete some of my comments CS automatically added them!!


Regards, Vince
3/27/2007 3:11 AM
#15

# Solution Installer for SharePoint 2007

Have you ever wanted a list of Features packaged in a solution that you could just click a button to...
3/28/2007 5:27 PM
#16

# re: SharePoint Solution Installer

Great tool, Lars, thanks alot.
However, testing this afternoon I experienced a strange thing. Having uninstalled 2 features (via the installer) I suddenly recieved a 'Sefvice Unavalable' notice on both frontend and central admin. Looking around I found that the application pools for the two web applications were stopped.
I can't say if it was the installer or something else, but I thought you might like the feedback anyway.

Regards,
Torben Willum Nord
3/28/2007 10:42 PM
#17

# re: Vince Feature Requests

Vince - Thanks for the Great feedback :-)

1. Multiple solution packages: Very good idea. I could use this myself. Will try and include it in the next update.

2. No EULA: This is already possible as described in the readme.

3. Don't default to central admin: Already possible as described in the readme. I will, however, consider to include an option to remove the web applications page completely for global deployments.

4. Web admin only: I will keep this in mind for future updates.

5. Silent install (UI): I knew this one was bound to come up! I will give this some thought later when all the other things are done.

6. Remove arrows: Ok, I give in :-) I got the same request from other sides as well. Will be gone in the next update.

Time frame for the next update? Hmm, it will likely take me some weeks before I get it ready! I have an Easter vacation and a good skiing trip to Norway coming up :-)
4/6/2007 11:52 AM
#18

# re: SharePoint Solution Installer

Hi

Is there a way through which i could install multiple web parts at one go. e.g. we can add all web part projects in one solution and each project could have its own URL and when we deploy that solution all web parts should get deployed to there respective sites.
If it is possible could you get me the solution and if it could be done with some example that will be really gud
Please mail me the solution, its real urgent.

Amit
4/9/2007 4:46 PM
#19

# re: SharePoint Solution Installer

Just to spread the word: ETA for the DST hotfix is the 20th of April.

Fortunately we don't have to wait for SP1 as this issue also affects the scheduled publication feature (on publishing sites).

Of course the date may be changed by MS at any time...
4/12/2007 11:40 PM
#20

# Outils Communautaires pour SharePoint

Depuis un ou deux mois, on ne compte plus le nombre d'applis qui ont &#233;t&#233; d&#233;velopp&#233;es pour simplifier
4/25/2007 2:12 PM
#21

# Right-click a .WSP to Add Solution

Right-click a .WSP to Add Solution
5/1/2007 7:19 PM
#22

# re: SharePoint Solution Installer

That is really usefull , I could implement this in our application using your help.
Thanks a lot

Sanjay
www.SuperShaadi.com
5/3/2007 5:27 PM
#23

# re: SharePoint Solution Installer

Lars I am putting together a deployment guide for a client and found that the progress gif is not on the page. Could you please forward it to me. Many thanks and thanks for your contribution.

Jeff
5/8/2007 7:32 PM
#24

# SharePoint Solution Installer

SharePoint Solution Installer
5/16/2007 6:18 AM
#25

# My way to deploy Sharepoint Solution

VS.NET extension for Sharepoint 2007 is a great tool to create webparts, features and site definitions.
5/17/2007 7:42 PM
#26

# SharePoint 2007 Filter webparts - using the Page Field Filter webpart on a Lookup field

This post describes an issue we were having using the SharePoint PageFieldFilter webpart in combination
5/23/2007 6:03 AM
#27

# Right-click a .WSP to Add Solution

As I hope you are all aware, WSS Solution Packages (WSPs) are the solution to world hunger. Well not
5/24/2007 8:57 AM
#28

# SharePoint Solution Installer

Via Lars Fastrup , I ran into the SharePoint Solution Installer for SharePoint 2007. The SharePoint Solution
5/25/2007 5:23 PM
#29

# Under the hood?

Hi, I wonder if you are using the stsadm.exe tool to install and deploy the solution or if you go directly through the object model? Can you tell us quickly how you perform the solution installation?

Thank you.
5/26/2007 4:32 PM
#30

# SharePoint 2007: Tools Collection

Encontrei num post do blog do JOPX , este conjunto de tools para SharePoint 2007. SharePoint Tips Utility
5/28/2007 6:45 PM
#31

# re: SharePoint Solution Installer

Nicolas - I go directly on the object model. Use SPFarm.Solutions.Add to upload solution and SPSolution.Deploy to deploy it.
6/8/2007 3:28 PM
#32

# 汽车美容

Nicolas - I go directly on the object model. Use SPFarm.Solutions.Add to upload solution and SPSolution.Deploy to deploy it.
6/11/2007 3:14 PM
#33

# re: SharePoint Solution Installer

Do your tool complements or supplements the wspbuilder provided by codeplex.i am asking this as i am bit confused about when to use what and in what order.
Also how can we install the solution installed by your tool.
i could not find any option in the tool.In sharepoint admin,i can deactivate that solution but not able to remove that.
Cheers
6/12/2007 5:36 PM
#34

# re: SharePoint Solution Installer

Hi Lars. Very nice product, works well with the demo and some quick wps knock ups of my own. I would like to use it to install some templates downloaded from Microsoft.com but do not know the solution ID for them. Is there a work around? Can I find the solution ID of templates I have not created myself? Thanks.
6/14/2007 4:42 PM
#35

# re: SharePoint Solution Installer

Oliver - Thanks :-) Yes, you can find the solution id in the manifest.xml file in the .WSP solution file. Just rename the .WSP file to .CAB and unpack it. Then open the manifest.xml file to spy on the solution id.
6/20/2007 3:31 PM
#36

# SharePoint 2007 Tools Collection v2

Another update: SharePoint Tips Utility Pack - package of SharePoint 2007 utilities for administrators
6/27/2007 9:02 AM
#37

# re: SharePoint Solution Installer

I HAVE EULA PROBLEM
6/27/2007 9:54 AM
#38

# re: SharePoint Solution Installer

where can i get the Source code for this application?
6/28/2007 5:01 PM
#39

# re: SharePoint Solution Installer

Lars:
A first-rate installer! Nice job.

Here are a couple of items I'd like to see:

- configurable wait time for jobs to complete (i.e. allow more than 15 minutes for lots of sites)
- allow setting of various Sharepoint properties (it's a real pain to do elsewhere).

Again, thanks very much.
Josh Korn
Canada
7/18/2007 9:07 AM
#40

# re: SharePoint Solution Installer

Hi Everyone,
I'm new to SharePoint 2007 and I'm still getting my head around some of the concepts.

The setup.exe worked for the Demo application and happily uninstalls as well.

But I can't find where it actually goes.
I have both of the requiredeployment options turned on and it appears to install to 3 places according to the dialogs.

I know it's just that I don't know what I'm doing.



David
7/19/2007 11:18 PM
#41

# re: SharePoint Solution Installer

What am I missing here? Is there some dependency that I'm missing. It keeps preventing the installer from finishing because it is missing the DemoSolution.wsp

Thanks.
Joe
7/19/2007 11:19 PM
#42

# re: SharePoint Solution Installer

Forget it, pebkac error...needed to unzip the setup and install from there.
Joe
7/20/2007 3:09 PM
#43

#  SharePoint Solution Installer

Hi all,

I have an error

***error****
Object not set to an instance of an object
at Mondosoft.k.g.Execute()
at Mondosoft.k.b(Object,EventArgs)

Have you experiencing this ?

Thks in advance.
7/25/2007 11:19 PM
#44

# re: SharePoint Solution Installer

How about make the logo right jusitfied to form, so a user with a logo that is longer then the default doesn't get it cut off.
If it's configurable, make it friendly:)
dc
8/1/2007 10:04 AM
#45

# re: SharePoint Solution Installer

Very good work ! Thanks !
8/3/2007 11:07 PM
#46

# re: SharePoint Solution Installer

Works fantastic. I've had a few small problems but it is OK now
8/8/2007 3:42 AM
#47

# re: SharePoint Solution Installer

Excellent work. Thanks a lot. Works without errors.
8/8/2007 2:25 PM
#48

# re: SharePoint Solution Installer

How to deploy ListDefinations (created using VS.NET 2005 extentsion for WSS)?
8/9/2007 10:50 PM
#49

# re: SharePoint Solution Installer

Works without and problems. Thanks.
9/1/2007 8:54 PM
#50

# re: SharePoint Solution Installer

nice....
9/1/2007 8:58 PM
#51

# re: SharePoint Solution Installer

Works fantastic. I've had a few small problems but it is OK now
9/1/2007 9:01 PM
#52

# re: SharePoint Solution Installer

Hi! :) Works like a charm. The community thanks you!
10/18/2007 7:44 PM
#53

# SharePoint Deployment : Feature, Feature, Solution .... mais aussi WebProvisioningProvider

Petit message &#224; tous mes lecteurs d&#233;veloppeurs SharePoint Je r&#233;pete encore et encore que 90 % du temps,
11/6/2007 4:41 PM
#54

# re: SharePoint Solution Installer

I have an error message during installation:
"Object reference is not set to an instance of an object".

I really do not know what I am doing wrong.
Any clue ?
11/7/2007 3:36 PM
#55

# re: SharePoint Solution Installer

Very nice and usefull tool - thanks!
11/8/2007 8:34 PM
#56

# Generic fioricet low prices amp fast delivery.

Generic fioricet low prices amp fast delivery. generic fioricet.
11/8/2007 11:58 PM
#57

#  buy generic fioricet.

buy generic fioricet.
11/9/2007 6:16 AM
#58

# Cod tramadol cod.

Tramadol 180 cod. Tramadol cod.
12/14/2007 7:54 PM
#59

# re: SharePoint Solution Installer

I only choose one web application as the deployment target, but I found the solution is globally depoyed. Why is that?
12/20/2007 1:30 AM
#60

# buy xanax

Blog
1/15/2008 11:10 PM
#61

# concert ticket

Very nice and usefull tool - thanks!
1/24/2008 10:34 AM
#62

# Un nouveau &quot;Builder&quot; de solution

Corps: Comme vous devez s&#251;rement le savoir maintenant, SharePoint 2007 a introduit un nouveau syst&#232;me
3/6/2008 12:20 AM
#63

# SharePoint Solution Installer

A MOSS 2007-hez k&#233;sz&#237;tett egyedi megold&#225;sok, feature-&#246;k becsomagol&#225;s&#225;nak, telep&#237;t&#233;s&#233;nek egyik legelterjedtebb
3/6/2008 7:19 PM
#64

# Instalar un .WSP con el Boton Derecho del Mouse..

Este es un Excelente Truco que nos permitira agregar los archivos .WSP directamente a nuestro Portal
3/17/2008 9:06 PM
#65

# Cipro indication.

Generic version of cipro. How to dose cipro in dogs. Cipro indication. Cipro xr 500mg. Mic cipro. Cipro. Cipro antibitotic side effects. Cipro overseas.
3/23/2008 3:17 AM
#66

# Tramadol hcl liquid.

Tramadol hcl 20 mg 93.
4/6/2008 12:19 PM
#67

# Google groups buy viagra cheap.

Buy viagra online. Viagra buy. Viagra cialis levitra buy cheap cialis buy ciali. Buy viagra in canada. Buy viagra.
4/8/2008 11:11 AM
#68

# Resources and tools for WSS 3 and MOSS 2007

SDKs and development tools SharePoint Server 2007 SDK: Software Development Kit Revised and updated August
4/10/2008 12:17 AM
#69

# Phentermine tablet.

Cheap phentermine. Phentermine. Buy phentermine mg. Buy no phentermine prescription. Phentermine diet pill.
6/3/2009 4:53 AM
#70

# re: SharePoint Solution Installer

ロレックス時計
カルティエ時計
IWC時計
グッチ時計
オメガ時計深圳特区的扩容问题一直受全国关注。在《深圳综合配套改革总体方案》(下称《方案》)获国务院批准之际,记者了解到,深圳市政府正在加紧研究该《方案》的3年分步落实规划。
<img src="http://blogs.watoday.com.au/lifestyle/fearclothing/sexy_trashy_comp.jpg"></img>
パネライ時計
ロレックスレプリカ
カルティエコピー
ロレックスコピー
グッチコピー
パネライコピー其中,第一年,即2009年,深圳改革的重头戏包括向中央申报将特区范围扩大至全市,即将原属关外的宝安区、龙岗区和光明新区纳入特区之内。如果获得批准,深圳特区的总面积将由现在的395平方公里扩容为1948平方公里,相当于两个香港。
cmc audio rca
wbt audio rca
cmc rca plugs
wbt rca plugs
cmc rca jacks
wbt rca jacks 据了解,深圳现在已启动将经济特区范围延伸到全市的专项调研方案。如获批准,撤销“二线关”的问题将提上议程,深圳“一市两法”的制度将成历史。
<img src="http://blogs.three8six.com/todaysspecial//header.jpg"></img>
cmc tube sockets
wbt tube sockets
cmc binding posts
wbt binding posts
cmc banana & spades 《方案》提出,深圳将整合政府机构,完善大部门管理体制,用5年时间率先建成公共服务型政府,并适当调整行政区划,缩短管理链条。

改革重点首先是转变政府职能,按照职能有机统一的原则,优化政务流程,整合政府机构,完善大部门管理体制,实现政府职能、机构与人员的合理配置。建立健全决策、执行、监督既相互制约又相互协调的权力结构和运行机制。实现决策相对集中,执行专业高效,监督有力到位。(新华)

wbt banana & spades
cmc loudspeaker
wbt loudspeaker
www.onlycmc.com
www.yuppy111.com
<img src="http://auto.msn.com.cn/images/auto_international/history/CarSlide/2009/5/27/0B34C3EEEA414A80918CDA9319898C12.jpg"></img>
6/3/2009 10:25 AM
#71

# re: SharePoint Solution Installer

How about make the logo right jusitfied to form, so a user with a logo that is longer then the default doesn't get it cut off.
6/25/2009 4:20 PM
#72

# re: SharePoint Solution Installer

Спасибо
Title  
Name  
Email
Url
Comments   
Please add 5 and 2 and type the answer here: