A Powershell module can be installed using the old community-provided PsGet
module from a local directory or a zip from a remote HTTP server:
PSGet\Install-Module -ModulePath "C:\path\to\source\of\MyModule"
PsGet\Install-Module -ModuleUrl "http://path/to/MyModule.zip"
Is it possible to do the same with the PowershellGet
module?
It seems PowershellGet
can only install modules from NuGet repos.
Any suggestion is appreciated.
I tried this and the only way we got it to work was to create a temporary PowerShell repository on the local machine (using Register-PSRepository) and then use Install-Module (specifying your new repo) to install the cmdlet THEN clean up the temporary repository. Quite a faff.