tags:

views:

544

answers:

2

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 like this exist? Thanks in advance

A: 

Hmm, perhaps using something like psexec to remotely run stsadm after copying the WSP to the destination server.

Muhimbi
+4  A: 

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.

naivists
Wouldn't exactly call this an elegant solution. I sincerely hope MOSS 2010 solves this issue, but I guess it will only be widely adopted in 2012.
JL
No, it's not elegant at all, but its the best you can get in Moss2007, unless you install a Windows Server box for yourself. I really hope it will get better in MOSS2010, BUT there already are problems with installation on Win7x64
naivists