InstallModuleFromGitHub icon indicating copy to clipboard operation
InstallModuleFromGitHub copied to clipboard

Support for WindowsPowerShell

Open cspotcode opened this issue 5 months ago • 0 comments

Sadly, I still find myself forced to use Windows PowerShell occasionally. Today it was because Office interop fails on PowerShell Core.

This logic can be tweaked to install modules into the WindowsPowerShell directory instead of PowerShell

https://github.com/dfinke/InstallModuleFromGitHub/blob/8430eacfb15c84db34915a626d24884e7f187658/InstallModuleFromGitHub.psm1#L70-L77

As a workaround, I used -DestinationPath $HOME\Documents\WindowsPowerShell\Modules

Hopefully this helps anyone searching in the future.

cspotcode avatar Sep 15 '24 23:09 cspotcode