Wednesday, May 16, 2007

Deploying Web Parts using CAB files

  1. 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.

  2. Click Start, click Run, and then type cmd.

  3. Type cd "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin"

  4. Run the following command to deploy your Web Part accross the entire farm:

    stsadm.exe -o addwppack -filename yourcabfilename.cab -globalinstall -force

  5. 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

  6. After the command returns with "Operation completed successfully," run the following command:

    iisreset /timeout:0

  7. Check central administration / solution management to see where the solutions are registered as deployed by SharePoint.

2 comments:

  1. 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."

    ReplyDelete
  2. may i know how to create the .cab file?
    please email me changkokkee@gmail.com

    ReplyDelete