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

Applies To: Windows SharePoint Services 3.0

 

Topic Last Modified: 2007-10-26

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 (https://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 Windows SharePoint Services is installed:

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

    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 https://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 (Windows SharePoint Services).

See Also

Concepts

Configure and deploy secure Web Parts to your server (Windows SharePoint Services)