Cool Disk's

  
 Helping the Spread of Knowledge & Skill's...

Proud Member of the EyeTweaks Network

Welcome   
  

HTML


Java


VB


CMD


Registry

  


How to become a sponsor

How to get SharePoint 2007 .wsp files Templates to apply to your SharePoint Site Templates area.

Place all .wsp scripts into the following directory:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
Create the following batch file and place it in the same directory as above, then launch it and name one of your .wsp scripts templates to load.

I called this script install.bat but you can name it what you like.

@ECHO OFF

:Main

Set /P INPUT="Mr. Alan ask, Please enter the name the .wsp file to Initialize:"

Echo.

Echo Scripts by Alan Mitchell

Echo starting Initialization of %INPUT%

stsadm -o addsolution -filename %INPUT%

stsadm -o deploysolution -filename "%INPUT% -allowgacdeployment

stsadm -o copyappbincontent

ECHO.

ECHO Starting deployment of %INPUT%

:YES

ECHO Adding

stsadm -o addsolution -filename %INPUT%

ECHO Executing service jobs.

stsadm -o execadmsvcjobs

ECHO Deploying

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

ECHO Final

stsadm -o copyappbincontent

stsadm -o execadmsvcjobs

Echo Mr. Alan says - *** Remember to restart IIS for this to be applied ***

GOTO More

:MORE

SET /P MORE="Mr. Alan ask, Want to install another solution? (Y or N): "

if %MORE%==Y goto Main

if %MORE%==y goto Main

if %MORE%==N goto End

if %MORE%==n goto End

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

goto MORE

:End

End

Enjoy Mr. Alan

Member of the EyeTweaks Network, We just keep on Tweaken!TM
CoolDisks.com All copyrights apply.(C)

Contact Us