We use SP2013 and PowerShell to deploy wsps.
When installing the wsp via PowerShell:
CASE 1:
Add-SPSolution -LiteralPath $path
install-spsolution -Identity $solution -GACDeployment
Above PowerShell will deploy the wsp to the GAC on server and deploy to all URLS.
CASE 2:
Add-SPSolution -LiteralPath $path
install-spsolution -Identity $solution -WebApplication $oURL -GACDeployment
Above powershell deploys the WSP to the GAC on server and deploy only to 1 specific web application (not in bin folder).
CASE 3:
How to deploy to the URL at bin folder on server?
My questions here are:-
Case 1 makes the wsp (say webpart) available for each webapplication on server, what about Case 2? Since it is deployed at 1 particular webURL, wont it be usable from the other web apps? What is this concept?
For CASE 3, please provide me powershell code.
I have read that:-
SharePoint solutions are either deployed globally or targeted to a particular web application. The decision of which is made automatically by the SharePoint Solution framework depending on the contents of the solution manifest.
But, this can be also controlled by PowerShell, no matter what is the setting in the solution manifest, am I right?