Configure and deploy a Web Part to the Bin folder by using a CAB package and script (Office SharePoint Server)
Applies To: Office SharePoint Server 2007
This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.
Topic Last Modified: 2016-11-14
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
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
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.
On the Taskbar, click Start, click Run, and then type cmd.
At the command prompt, type cd "C:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\bin".
Type the following command and then press ENTER to deploy your Web Part.
stsadm -o addwppack -filename MyWebPartPackage.cab -url https://localhost -globalinstall -force
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
Concepts
Configure and deploy secure Web Parts to your server (Office SharePoint Server)