I want to install site template in SharePoint 2010. Basically i want to know how use install-spwebtemplate
wsp name : SPT_SiteTemplate.wsp Name : SPT_SiteTemplate
In SP2010 you can create web templates that can be deployed as either farm or site scoped features.
Install-spwebtemplate is used for legacy templates so this is not what you should use (confusing, i know, especially since
get-spwebtemplates works for showing installed templates)
If you create your custom web template as a sandboxed solution you can upload your solution to your site either using UI or by using
add-spusersolution. Then you activate your solution and activate your feature, and your web template should now show when creating new sites.
Alternatively you can create a farm solution and a farm scoped feature. This is added using
Add-spsolution and feature must me activated under farm solutions in central administration.
More info on creating custom web templates in visual studio here.
Another option is to save your site as a template and upload that directly as with sandboxed solutions.