- For ease of deployment, copy the .cab file to the following location, where Office SharePoint Server 2007 is installed:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin
This should be the same as the location of Stsadm.exe. Ensure that you update the path on your computer if it does not match the default location.
- Click Start, click Run, and then type cmd.
- Type cd "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin"
- Run the following command to deploy your Web Part accross the entire farm:
stsadm.exe -o addwppack -filename yourcabfilename.cab -globalinstall -force
- Run the following command to deploy your Web Part to a specific website:
stsadm.exe -o addwppack -filename yourcabfilename.cab -url http://teleport -globalinstall -force
- After the command returns with "Operation completed successfully," run the following command:
iisreset /timeout:0
- Check central administration / solution management to see where the solutions are registered as deployed by SharePoint.
Some stuff I have written & collected about MOSS 2010 / 2007 and all things related.
Wednesday, May 16, 2007
Deploying Web Parts using CAB files
Subscribe to:
Post Comments (Atom)
I run the process as you wrote above but after the step 4 and step 5 the command returns with "Object refrence not set to an instance of and object. C:\program files\Moodle.WebPart.Cab: the Web Part Deployment field."
ReplyDeletemay i know how to create the .cab file?
ReplyDeleteplease email me changkokkee@gmail.com