mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 07:42:08 -04:00
use psversiontable
This commit is contained in:
parent
ea6ce639d2
commit
ca33a67e58
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ SetCompressor lzma
|
|||
|
||||
Function .onInit
|
||||
; Check that Powershell is at least 5.0.
|
||||
nsExec::ExecToStack `powershell -ExecutionPolicy RemoteSigned -Command "Write-Host -NoNewline (Get-Host | Select-Object Version).Version.CompareTo([System.Version]'5.0')"`
|
||||
nsExec::ExecToStack `powershell -ExecutionPolicy RemoteSigned -Command "Write-Host -NoNewline $$PSVersionTable.PSVersion.Major.CompareTo(5)"`
|
||||
Pop $0
|
||||
Pop $1
|
||||
StrCmp $1 "-1" 0 powershellok
|
||||
|
|
|
|||
Loading…
Reference in a new issue