Installing and uninstalling the solution

Topics: Developer Forum, Project Management Forum, User Forum
Apr 17, 2008 at 10:06 AM
Edited Apr 17, 2008 at 10:12 AM
guys, regarding my problems, ive created a deploy.cmd & undeploy.cmd for this solution.
please copy the folling into a text file (notepad) and save as a .cmd

Deploy.cmd
========
@echo Deploying CustomAuthentication Solution
@set PATH=C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN;%PATH%
stsadm.exe -o addsolution -filename C:\PublicData\CustomAuthenticationSolution.wsp

Undeploy.cmd
=========
@echo Deploying CustomAuthentication Solution
@set PATH=C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN;%PATH%
stsadm -o retractsolution -name CustomAuthenticationSolution.wsp -immediate -url %1
stsadm -o execadmsvcjobs
stsadm -o deletesolution -name CustomAuthenticationSolution.wsp -override
stsadm -o deactivatefeature -name UserAdminWebParts -url %1 -force
stsadm -o uninstallfeature -name UserAdminWebParts -force

Note:
  • deploy.cmd can be installed via a double click of the cmd file once created.
  • undeploy.cmd needs to be ran from command prompt.
    • Example: C:\PublicData>undeploy http://<servername>
  • use the uninstaller if you are having issues/errors while trying to redeploy the solution after manually removing. i believe you get an error regarding: "ID **** of this feature is already installed, please use -force to reinstall