-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
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
InstallModuleFromGitHub/InstallModuleFromGitHub.psm1
Lines 70 to 77 in 8430eac
| if ($Scope -eq "CurrentUser") { | |
| $scopedPath = $HOME | |
| $scopedChildPath = "\Documents\PowerShell\Modules" | |
| } else { | |
| $scopedPath = $env:ProgramFiles | |
| $scopedChildPath = "\PowerShell\Modules" | |
| } | |
| $dest = Join-Path -Path $scopedPath -ChildPath $scopedChildPath |
As a workaround, I used -DestinationPath $HOME\Documents\WindowsPowerShell\Modules
Hopefully this helps anyone searching in the future.
dfinke
Metadata
Metadata
Assignees
Labels
No labels