diff options
| m--------- | dist-assets/binaries | 0 | ||||
| -rw-r--r-- | dist-assets/windows/installer.nsh | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/dist-assets/binaries b/dist-assets/binaries -Subproject d10503e8e218db6dbc86fb16e534fa645376a7b +Subproject 85f5f891ca36ff6e55d5fa22d685694726a61d1 diff --git a/dist-assets/windows/installer.nsh b/dist-assets/windows/installer.nsh index bcde17e923..6d43b4d000 100644 --- a/dist-assets/windows/installer.nsh +++ b/dist-assets/windows/installer.nsh @@ -219,6 +219,21 @@ InstallDriver_install_driver: # + # Silently approve the certificate before installing the driver + # + log::Log "Adding OpenVPN certificate to the certificate store" + + nsExec::ExecToStack '"$SYSDIR\certutil.exe" -f -addstore TrustedPublisher "$TEMP\driver\driver.cer"' + + Pop $0 + Pop $1 + + ${If} $0 != 0 + StrCpy $R0 "Failed to add trusted publisher certificate: error $0" + log::LogWithDetails $R0 $1 + ${EndIf} + + # # Install driver and create a virtual adapter. # If the driver is already installed, this just creates another virtual adapter. # |
