diff options
| author | Odd Stranne <odd@mullvad.net> | 2019-05-07 14:19:09 +0200 |
|---|---|---|
| committer | Odd Stranne <odd@mullvad.net> | 2019-05-08 10:21:25 +0200 |
| commit | 7990dde4643aacc99a03646e2d9abff2508fd092 (patch) | |
| tree | cc4308c3b3aa93048935ef478157e859c1839820 | |
| parent | 74df03a43469a40b90a78678b16843f47cf4fef8 (diff) | |
| download | mullvadvpn-7990dde4643aacc99a03646e2d9abff2508fd092.tar.xz mullvadvpn-7990dde4643aacc99a03646e2d9abff2508fd092.zip | |
Improve service startup error message in installer
| -rw-r--r-- | dist-assets/windows/installer.nsh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dist-assets/windows/installer.nsh b/dist-assets/windows/installer.nsh index 0021606a36..5e4bb2f53e 100644 --- a/dist-assets/windows/installer.nsh +++ b/dist-assets/windows/installer.nsh @@ -37,6 +37,9 @@ !define PTI_GENERAL_ERROR 0 !define PTI_SUCCESS 1 +# Windows error codes +!define ERROR_SERVICE_DEPENDENCY_DELETED 1075 + # # BreakInstallation # @@ -314,7 +317,11 @@ ${If} $0 != ${SERVICE_STARTED} ${AndIf} $0 != ${SERVICE_START_PENDING} - StrCpy $R0 "Failed to start Mullvad service: error $0" + ${If} $0 == ${ERROR_SERVICE_DEPENDENCY_DELETED} + StrCpy $R0 'Failed to start Mullvad service: The firewall service "Base Filtering Engine" is missing or unavailable.' + ${Else} + StrCpy $R0 "Failed to start Mullvad service: error $0" + ${EndIf} log::LogWithDetails $R0 $1 Goto InstallService_return ${EndIf} |
