@echo Deploy my.package.wsp :usage - install.bat url1 url2 ... @echo off if "%1" == "" goto NoInputErrorMessage setlocal set SPAdminTool=%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe @echo on "%SPAdminTool%" -o addsolution -filename my.package.wsp "%SPAdminTool%" -o execadmsvcjobs "%SPAdminTool%" -o deploysolution -name "my.package.wsp" -immediate -allowGacDeployment -allowCasPolicies -force "%SPAdminTool%" -o execadmsvcjobs @echo off :LOOP IF "X%1" == "X" GOTO LOOPDONE echo Deploying solution to %1 @echo on "%SPAdminTool%" -o activatefeature -name myappfeature -url %1 @echo off SHIFT GOTO LOOP :LOOPDONE pause echo The batch file is complete. GOTO ENDFINAL :NoInputErrorMessage @ECHO Please enter these arguments: Application URLs separated by spaces @echo Sample command: Install.bat https://myapp1 https://myapp2 :ENDFINAL
Monday, August 20, 2012
Multi-App WSP Install.bat
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment