Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get stsadm command for Central Admin button

Status
Not open for further replies.

Qik3Coder

Programmer
Jan 4, 2006
1,487
US
Sharepoint 2007, Standard "custom" web part feature.

When I try to deploy the feature using the stsadm command, the command reports a success, but in Central Admin it is not deployed.
"%SPAdminTool%" -o deploysolution -name "%PackageName%" -local -allowGacDeployment -url %TargetWebUrl%
Trying to then activate the feature reports a "cannot be activated"

Output from standard setup.bat

Validating the content of solution webPart.wsp ...
Adding solution webPart.wsp to SharePoint ...
Operation completed successfully.
Deploying solution webPart.wsp ...
Operation completed successfully.
Activating feature webpart.myWebPart ...
Feature '{GUID}' is not installed in this farm, and can not be added to this scope.

If I go to Central Admin and manually "Deploy Solution", then either run the activate command manually or through the "Activate Site Features" the feature is activated correctly, and can be used.

My question:
How do I get the equivalent stsadmn command as whatever was run from Central Admin, so that I can update my setup.bat?

Thanks in advance,
Lodlaiden


You've got questions and source code. We want both!
There's a whole lot of Irish in that one.
 
Thanks for that. Might wind up using it sometime in the future.

From the blog:
First off an important thing to note here that this will only work with SharePoint 2010. There are no PowerShell snapins available for 2007, ...

Lodlaiden

You've got questions and source code. We want both!
There's a whole lot of Irish in that one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top