Skip to content

Commit

Permalink
install.cmd: use -NoProfile for powershell (#671)
Browse files Browse the repository at this point in the history
If pwsh is loaded with user profile, and the user enables PSCX, Expand-Archive signature will be different.
  • Loading branch information
yatli authored and chemzqm committed Apr 8, 2019
1 parent d4fd400 commit ae1faad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@PowerShell -ExecutionPolicy Bypass -Command Invoke-Expression $('$args=@(^&{$args} %*);'+[String]::Join(';',(Get-Content '%~f0') -notmatch '^^@PowerShell.*EOF$')) & goto :EOF
@PowerShell -ExecutionPolicy Bypass -NoProfile -Command Invoke-Expression $('$args=@(^&{$args} %*);'+[String]::Join(';',(Get-Content '%~f0') -notmatch '^^@PowerShell.*EOF$')) & goto :EOF

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Expand Down

0 comments on commit ae1faad

Please sign in to comment.