Manual Installation and Removal

  • To install the Web Part on to SharePoint manually first install using the Manual option to obtain the Web Part CAB and WSP files.

 

 

 

 

 

 

 

 
Note - this part does not have to be installed on a SharePoint server.
  • The Web Part CAB and WSP files are then available in the Web Part Files folder in the programs installation directory

  • WSSv3 or Microsoft Office SharePoint Server 2007 installation

The web part should be installed using the Pentalogic.SharePoint.WorldTime.wsp file.

This example shows how to add the solution file and then deploy it to all sites on a local server using STSADM :-

    SET PATH=%PATH%;"c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\"

    CD "C:\Program Files\Pentalogic\World Time\Web Part Files"

    STSADM.EXE -o AddSolution -filename Pentalogic.SharePoint.WorldTime.wsp

    STSADM.EXE -o DeploySolution -name Pentalogic.SharePoint.WorldTime.wsp -allcontenturls -local -force -allowCasPolicies

This example shows how to retract and then delete the solution file :-

    SET PATH=%PATH%;"c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\"

    STSADM.EXE -o RetractSolution -name Pentalogic.SharePoint.WorldTime.wsp -allcontenturls -local

    STSADM.EXE -o DeleteSolution -name Pentalogic.SharePoint.WorldTime.wsp -override

For more information on how to install the web part on a server farm or to individual sites please consult the SharePoint documentation.

The above commands will install the web part to the servers bin directory and automatically setup the Code Access Security (CAS) permissions as detailed above.

 
  • WSSv2 or SharePoint Portal Server 2003 installation

The web part and its associated files are stored in Pentalogic.SharePoint.WorldTime.cab and a SharePoint Administrator may chose to perform an installation using the STSADM tool or another SharePoint Administration tool.

To install using STSADM execute the following commands

    SET PATH=%PATH%;"c:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN\"

    CD "C:\Program Files\Pentalogic\World Time\Web Part Files"

    STSADM.EXE -o addwppack -filename Pentalogic.SharePoint.WorldTime.cab -globalinstall

to remove

    SET PATH=%PATH%;"c:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN\"

    STSADM.EXE -o deletewppack -name Pentalogic.SharePoint.WorldTime.cab

CAS Settings

The web part requires the following permission set to operate.

It is highly recommended that you install web part into the Global Assembly Cache (GAC) using the -globalinstall option as then you will NOT need to manually edit your web.config files to add the following permission set :-

<PermissionSet class="NamedPermissionSet" version="1" Description="Minimum permission set for Pentalogic World Time web part to run">
<IPermission class="System.Web.AspNetHostingPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1" Level="Minimal" />
<IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1" Flags="Execution" />
<IPermission class="Microsoft.SharePoint.Security.WebPartPermission, Microsoft.SharePoint.Security, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
version="1" Connections="True" />
<IPermission class="Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
version="1" ObjectModel="True" />
</PermissionSet>