Welcome to MSDN Blogs Sign in | Join | Help

WSS 2.0 : stsadm - can't delete wppack with slash in its name

If you install a wppack by using stsadm with slash "/", then you will not be able to uninstall it by using the stsadm tool :( . The story not endup here, you will not be able to install the latest version of your webpart :(. However SharePoint object model helps us to resolve the problem. Run the following code to remove the wppack that has "/" in the path. Then install your webpart by using stsadm by using the "\" in the path.

Example, running the following command will endup with the above problem.

              stsadm -o addwppack -filename "Helloworld/TestDeploy.CAB"

SPGlobalAdmin oGA = new SPGlobalAdmin();
oGA.RemoveWPPack("helloworld/testdeploy.cab",0,null,null);

 

Published Wednesday, December 13, 2006 4:01 PM by Karthikeyan
Filed under:

Comments

No Comments

Anonymous comments are disabled
 
Page view tracker