aboutsummaryrefslogtreecommitdiff
path: root/windows/helpers/ShowError.nsh
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-06-13 15:07:04 -0600
committercrobibero <cody@robibe.ro>2020-06-13 15:07:04 -0600
commitbd0975397613cc87bb97ae20a0608257487d0f77 (patch)
tree8588828ec26b4d86ff2a597c5f069ee45abe75cc /windows/helpers/ShowError.nsh
parentfd913d73e35491c64e39a76a266689c302a91b11 (diff)
parent0011e8df47380936742302ef40639a4626a780ed (diff)
Merge remote-tracking branch 'upstream/api-migration' into api-image
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