diff options
| author | Odd Stranne <odd@mullvad.net> | 2018-05-04 11:19:33 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-06-08 11:13:03 +0200 |
| commit | 0e6ee5e006647cac0049f7382526fc24250f43b2 (patch) | |
| tree | ee7bf00bc705cb6007e5f8672902f3285cc8de16 | |
| parent | e4a22beb7299a9197e92dbae6143531a176fa124 (diff) | |
| download | mullvadvpn-0e6ee5e006647cac0049f7382526fc24250f43b2.tar.xz mullvadvpn-0e6ee5e006647cac0049f7382526fc24250f43b2.zip | |
Rename constant to all uppercase
| -rw-r--r-- | dist-assets/installer.nsh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dist-assets/installer.nsh b/dist-assets/installer.nsh index ce10d115cf..a82191ffc7 100644 --- a/dist-assets/installer.nsh +++ b/dist-assets/installer.nsh @@ -12,7 +12,7 @@ # # TAP device hardware ID -!define TapHardwareId "tap0901" +!define TAP_HARDWARE_ID "tap0901" # "sc" exit code !define SERVICE_STARTED 0 @@ -82,7 +82,7 @@ Push $0 Push $1 - nsExec::ExecToStack '"$TEMP\driver\tapinstall.exe" hwids ${TapHardwareId}' + nsExec::ExecToStack '"$TEMP\driver\tapinstall.exe" hwids ${TAP_HARDWARE_ID}' Pop $0 Pop $1 @@ -94,11 +94,11 @@ # If the driver is already installed, the hardware ID will be echoed in the command output # $1 holds the output from "tapinstall hwids" - ${StrContains} $0 ${TapHardwareId} $1 + ${StrContains} $0 ${TAP_HARDWARE_ID} $1 StrCmp $0 "" InstallDriver_install_driver # Update driver - nsExec::ExecToStack '"$TEMP\driver\tapinstall.exe" update "$TEMP\driver\OemVista.inf" ${TapHardwareId}' + nsExec::ExecToStack '"$TEMP\driver\tapinstall.exe" update "$TEMP\driver\OemVista.inf" ${TAP_HARDWARE_ID}' Pop $0 Pop $1 @@ -112,7 +112,7 @@ InstallDriver_install_driver: - nsExec::ExecToStack '"$TEMP\driver\tapinstall.exe" install "$TEMP\driver\OemVista.inf" ${TapHardwareId}' + nsExec::ExecToStack '"$TEMP\driver\tapinstall.exe" install "$TEMP\driver\OemVista.inf" ${TAP_HARDWARE_ID}' Pop $0 Pop $1 |
