diff --git a/build/Chocolatey/gsudo/tools/chocolateyinstall.ps1 b/build/Chocolatey/gsudo/tools/chocolateyinstall.ps1 index 2469098..5250d48 100644 --- a/build/Chocolatey/gsudo/tools/chocolateyinstall.ps1 +++ b/build/Chocolatey/gsudo/tools/chocolateyinstall.ps1 @@ -30,7 +30,7 @@ Install-ChocolateyPath -PathToInstall $SymLinkDir -PathType 'Machine' cmd /c mklink "$TargetDir\sudo.exe" "$TargetDir\gsudo.exe" 2>$null # Copy gsudoModule to "$env:ProgramFiles\PowerShell\Modules\gsudoModule" -$PSModulesTargetDir = "$env:ProgramFiles\PowerShell\Modules\gsudoModule" +$PSModulesTargetDir = "$env:ProgramFiles\WindowsPowerShell\Modules\gsudoModule" md $PSModulesTargetDir -ErrorAction SilentlyContinue copy "$bin\*.ps*" $PSModulesTargetDir -Exclude *.ignore -Force