aboutsummaryrefslogtreecommitdiff
path: root/windows/helpers/ShowError.nsh
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-06-13 15:03:43 -0600
committercrobibero <cody@robibe.ro>2020-06-13 15:03:43 -0600
commit7666a1201fe1f9e6e7b896dd58e98e9cc75b90c4 (patch)
tree7db808fe59b61ff6ce7709e0ba4dcd98cd5fa9bb /windows/helpers/ShowError.nsh
parentaed6f57f11e4d08372fcf456742bdaedea374f6d (diff)
parent0011e8df47380936742302ef40639a4626a780ed (diff)
Merge remote-tracking branch 'upstream/api-migration' into api-display-preferences
Diffstat (limited to 'windows/helpers/ShowError.nsh')
-rw-r--r--windows/helpers/ShowError.nsh10
1 files changed, 10 insertions, 0 deletions
diff --git a/windows/helpers/ShowError.nsh b/windows/helpers/ShowError.nsh
new file mode 100644
index 000000000..6e09b1e40
--- /dev/null
+++ b/windows/helpers/ShowError.nsh
@@ -0,0 +1,10 @@
+; Show error
+!macro ShowError TEXT RETRYLABEL
+ MessageBox MB_ABORTRETRYIGNORE|MB_ICONSTOP "${TEXT}" IDIGNORE +2 IDRETRY ${RETRYLABEL}
+ Abort
+!macroend
+
+!macro ShowErrorFinal TEXT
+ MessageBox MB_OK|MB_ICONSTOP "${TEXT}"
+ Abort
+!macroend