How install WSS 3 and MOSS 2007 on Windows 7

To install WSS 3 and MOSS 2007 on Windows 7, there is this wonderful tool: Installing WSS 3.0 SP2 / MOSS SP2 on Windows 7 RC, that will redicrect to another page: How to Install Windows SharePoint Services 3.0 SP1 on Vista x64/x86.

A few notes:

  • install wss 3,
  • clear the xtracted folder
  • extract the MOSS iso file to a temporary folder
  • install moss 2007.

 

The required file is Wss on Vista, that can be also found in the local copy WssVista.Install.zip.

SharePoint: preventing duplicate web parts

During deployment of web parts with features, there is an annoying problem if the solution is redeployed: the web parts inside the pages are duplicated.

Here is a link that can help in solving this problem during the activation of the feature: Preventing provisioning duplicate Web Parts instances on Feature reactivation. This article is referenced by many websites, because it offers a rather simple solution, even if it is not the perfect one (it removes duplicates only, but not web parts from previous feature not present in the last one anymore).

Another similar article is the following one: Removing duplicate web parts when changing page layout via the ribbon.

SPWebApplicatin url and port number

One question I'm asked rather often is how to get the url or port number of a SharePoint application.

It's not readly available as a property of the SPWebApplication class, because there can be multiple address associated with a single web application, through the access mappings.

But it's still possible to get it, via the the SPWebApplication.IisSettings property, as described in the blog posting To get port number of a SPWebApplication through server object model.