dfinke / InstallModuleFromGitHub

Install PowerShell Modules from GitHub
Apache License 2.0
87 stars 31 forks source link

Support for WindowsPowerShell #33

Open cspotcode opened 1 month ago

cspotcode commented 1 month ago

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.