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
-
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 http://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