From: http://www.chncms.com/2010/09/13/MOSSWSPINSTALL.html
1. Local debugging or installation
Wspbuilder, a third-party tool
Ii. remote machine Installation
1) copy the WSP file generated by wsppbuilder to the target server
2) Confirm that the account running the deployment is in the following groups: iis_wsg, wss_admin_wpg, wss_restricted_wpg, and wss_wpg.
3) Confirm that the deployment account has the administrator privilege on the database server.
4) run the deployment command"C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ bin \ stsadm. EXE"-O addsolution-filename D: \ XXX. WSP
Note: If you do not have the required permission to use stsadm for deployment, the object reference not set to an instance of an object will occur.
Appendix:
Install: stsadm-O addsolution-filename [*. WSP file path] \ *. WSP;
Deployment: stsadm-O deploysolution-name *. WSP-allowgacdeployment-immediate
Delete: stsadm.exe-O deletesolution-name *. WSP
Run the job stsadm. exe-O execadmsvcjobs now.