Я использую следующие сценарии для установки / удаления решения
Uninstall.bat
@echo off
echo *****************************************************
echo Un-Installing <solution> -
echo (C) <company>. All rights reserved.
echo *****************************************************
set stsadm="%programfiles%\common files\microsoft shared\web server extensions\12\bin\stsadm.exe"
echo Retracing solution.wsp
%stsadm% -o retractsolution -name solution.wsp -immediate -allContentURLs
%stsadm% -o execadmsvcjobs
echo Wait till the solution retraction is completed (check the central administration)
pause
echo Deleting solution from the solution store
%stsadm% -o deletesolution -name solution.wsp -override
%stsadm% -o execadmsvcjobs
echo - Restarting WSS Timer service
net stop "windows sharepoint services timer"
net start "windows sharepoint services timer"
echo Uninstallation completed successfully
echo.
pause
Install.bat
@echo off
set STSADM="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\stsadm.exe"
echo *****************************************************
echo Installing <solution> -
echo (C) <company>. All rights reserved.
echo *****************************************************
echo Adding solution.wsp to the solution store
%STSADM% -o addsolution -filename solution.wsp
echo Deploying solution
%STSADM% -o deploysolution -name solution.wsp -force -immediate -allowGacDeployment -allContentURLs
%STSADM% -o execadmsvcjobs
echo Installation completed successfully
IISRESET
Restarting SharePoint Timer Service..
NET STOP SPTIMERV3
NET START SPTIMERV3
REM echo copying resources..
REM %STSADM% -o copyappbincontent
echo.
pause
Но install.bat застрял на execadmsvcjobs
после развертывания.Когда я проверил TaskManager, загрузка процессора увеличилась до 100%, а STSADM.EXE и OWSTIMER.EXE занимали много памяти.Таким образом, развертывание продолжается вечно.
Есть идеи?