I'm developing on a machine that is not the MOSS Server. I have Visual Studio and WSP builder installed. WSP builder is awesome because it can automatically create WSP Packages from within the Visual Studio IDE. However it seems the deploy functionality only works on the local dev machine.
Is there an easy way to deploy a WSP package to a remote SharePoint server? I want it to do the following
- Add the solution
- Deploy globally
If the solution already exists, it should first retract the solution, then upgrade it, then redeploy it.
Anything li开发者_如何学Goke this exist? Thanks in advance
Create a batch script (*.cmd, *.bat) that does everything you need, when you run it on the server.
Then, from your local machine, using psexec tool, you can call
psexec.exe \\servername -u domain\user -p secretpassword "c:\sharepoint_scripts\yourscript.bat"
bear in mind that psexec calls the script as if it was running from c:\windows
on that computer.
Hmm, perhaps using something like psexec to remotely run stsadm after copying the WSP to the destination server.
精彩评论