Configure and deploy a Web Part to the Bin folder by using a CAB package and script (Office SharePoint Server)

Updated: November 2, 2007

Applies To: Office SharePoint Server 2007

Updated: 2007-11-02

An alternative to manually installing a Web Part to the Bin folder or manually changing the Web.config file is to use commands and script found in the Stsadm.exe command-line tool. For this process to work, a developer or system administrator must create a CAB solution package for the Web Part. For more information about creating a CAB package, see the Solutions and Web Part Packages (http://go.microsoft.com/fwlink/?LinkID=95855&clcid=0x409) documentation in the MSDN Library Online. Once you have created a .cab file, use the following procedure.

Deploy the Web Part

  1. Copy the MyWebPartPackage.cab file to the following location, where Microsoft Office SharePoint Server is installed:

    C:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\bin

    Note Note:

    This location should be the same as the location of the Stsadm command-line tool. If the location on your computer does not match the default location, then specify your custom location.

  2. On the Taskbar, click Start, click Run, and then type cmd.

  3. At the command prompt, type cd "C:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\bin".

  4. Type the following command and then press ENTER to deploy your Web Part.

    stsadm -o addwppack -filename MyWebPartPackage.cab -url http://localhost -globalinstall -force

  5. After the command returns "Operation completed successfully," type the following command, and then press ENTER.

    iisreset /timeout:0

For more information, see Stsadm command-line tool (Office SharePoint Server).

See Also

Page view tracker