Update nsis.tmpl
React appropriately when the user cancels the downloading of a component.
This commit is contained in:
parent
95595d86a9
commit
b0d9dc4235
1 changed files with 8 additions and 2 deletions
|
|
@ -192,8 +192,14 @@
|
||||||
${If} $0 == "success"
|
${If} $0 == "success"
|
||||||
ZipDLL::extractall "$TEMP\?zipName" "$INSTDIR\?dir"
|
ZipDLL::extractall "$TEMP\?zipName" "$INSTDIR\?dir"
|
||||||
Delete "$TEMP\?zipName"
|
Delete "$TEMP\?zipName"
|
||||||
|
${ElseIf} $0 == "cancel"
|
||||||
|
MessageBox MB_ICONQUESTION|MB_YESNO|MB_TOPMOST \
|
||||||
|
"Download of component '?sectionName' cancelled. Continue installation process??" \
|
||||||
|
IDYES ignore
|
||||||
|
abort
|
||||||
${Else}
|
${Else}
|
||||||
MessageBox MB_ICONSTOP|MB_ABORTRETRYIGNORE "Error: $0" IDRETRY retry IDIGNORE ignore
|
MessageBox MB_ICONSTOP|MB_ABORTRETRYIGNORE|MB_TOPMOST "Error: $0" \
|
||||||
|
IDRETRY retry IDIGNORE ignore
|
||||||
abort
|
abort
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
|
@ -252,4 +258,4 @@
|
||||||
Function .onInit
|
Function .onInit
|
||||||
${GetRoot} "$EXEDIR" $R0
|
${GetRoot} "$EXEDIR" $R0
|
||||||
strCpy $INSTDIR "$R0\?{c.name}"
|
strCpy $INSTDIR "$R0\?{c.name}"
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue