install.bat errors and some suggested changes

Jan 14, 2010 at 7:31 PM

The calls to stsadm in the install.bat file fails because all six of the stsadm commands are not surrounded by percent sign characters. My version looks like this:

REM - create WSP and Deploy
@SET TEMPLATEDIR="%commonprogramfiles%\microsoft shared\web server extensions\12\Template"
@SET STSADM="%commonprogramfiles%\microsoft shared\web server extensions\12\bin\stsadm.exe"
@SET WSPPBUILDER="WspBuilder\WspBuilder.exe"

@echo off
Echo Creating Solution Package
%WSPPBUILDER% -outputpath solution

Echo Retracting Solution
%stsadm% -o retractsolution -name Winsmarts.WCFSupport.wsp -immediate
%stsadm% -o execadmsvcjobs

Echo Deleting Solution
%stsadm% -o deletesolution -name Winsmarts.WCFSupport.wsp

Echo Adding Solution
%stsadm% -o addsolution -filename Solution\Winsmarts.WCFSupport.wsp

Echo Deploying solution
%stsadm% -o deploysolution -name Winsmarts.WCFSupport.wsp -immediate -allowGacDeployment -force
%stsadm% -o execadmsvcjobs

Echo recycling AppPool   --- YOU NEED TO UN-REM THIS! Change it to IISReset if necessary!!
REM %windir%\system32\inetsrv\appcmd recycle AppPool SPAppPool