Script/batch install Application Templates for WSS 3.0 or MOSS

For MOSS 2007 and WSS 3.0 to install the Application Templates (20 pack or 40 pack), you can automate the process to install the files.

  1. Right click on My Computer and choose Properties
  2. Advanced tab, Environmental Variables
  3. In the System variables section, scroll to Path, highlight it and choose Edit
  4. In the Variable value box, go to the very end, put a semicolon, then paste in:
    C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\
    Note: There is no space between the semicolon and the path.
  5. Click OK to close the windows
  6. Save this as template1.bat:
    for %%f in (*.wsp) do stsadm.exe -o addsolution -filename %%f
    Note: Save this in the same folder as your WSP files
  7. Save this as template2.bat:
    for %%f in (*.wsp) do stsadm.exe -o deploysolution -allowgacdeployment -immediate -name %%f
    Note: Save this in the same folder as your WSP files
  8. You can either run this in the Windows GUI or via Command Prompt.

Note:  You can get the template from http://www.microsoft.com/downloads/details.aspx?FamilyID=5807b5ef-57a1-47cb-8666-78c1363f127d&displaylang=en

Advertisements

4 Responses to Script/batch install Application Templates for WSS 3.0 or MOSS

  1. Tom says:

    Hi,

    This a great solution.

    Worked a treat. Thanks

  2. mario says:

    very nice!!!! worked like a charm

  3. Brent says:

    Thank you for posting this, it was a great help

  4. Bryce says:

    Thank this is what I was looking for and it worked great

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: