1. For ease of deployment, copy the XlMortgageCalcCab.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:
stsadm -o addwppack -filename XlMortgageCalcCab.cab -url http://localhost -globalinstall -force
5. After the command returns with "Operation completed successfully," run the following command:
iisreset /timeout:0