Skip to main content

SharepointLabs.com Blog on MOSS - WSS 3.0 sharing experience, technology, news, views and more

Go Search
Home
Buy Webparts
SharePoint Training
Contact Us for Consulting Inquiry
  

SharepointLabs.com Blog on MOSS - WSS 3.0 sharing experience, technology, news, views and more > Posts > Install Application Templates OR any of .wsp template on Your Sharepoint Website using easy Batch file
Install Application Templates OR any of .wsp template on Your Sharepoint Website using easy Batch file

install.bat for WSP Template files

::Created by Vaibhav

:START

@ECHO OFF

SET /P INPUT="Please enter the name of the .wsp file you want to deploy: "

ECHO.

ECHO Starting deployment of %INPUT%

:CHOICE

SET /P CHOICE="Are you sure you want to continue? (Y or N): "

if %CHOICE%==Y goto YES

if %CHOICE%==y goto YES

if %CHOICE%==N goto NO

if %CHOICE%==n goto NO

ECHO %CHOICE% is not recognized. Please re-enter your answer.

goto CHOICE

:YES

ECHO Adding the Solution.

stsadm -o addsolution -filename %INPUT%

ECHO Executing service jobs.

stsadm -o execadmsvcjobs

ECHO Deploying the Solution.

stsadm -o deploysolution -name %INPUT% -immediate -allowGacDeployment -allowCasPolicies

ECHO Final Execution processing.

stsadm -o execadmsvcjobs

GOTO END

:NO

EXIT

:END

ECHO All Done!

:MORE

SET /P MORE="Want to install another solution? (Y or N): "

if %MORE%==Y goto START

if %MORE%==y goto START

if %MORE%==N goto NO

if %MORE%==n goto NO

ECHO %CHOICE% is not recognized. Please re-enter your answer.

goto MORE

Posted by Vaibhav Jain (Success is always one step ahead)

Comments

There are no comments yet for this post.
Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Attachments