Added debug info to download macro

This commit is contained in:
John Garland 2009-02-23 05:27:35 +00:00
commit 5be7005357

View file

@ -74,6 +74,7 @@
!define MUI_HEADERIMAGE_BITMAP "installer-top.bmp" !define MUI_HEADERIMAGE_BITMAP "installer-top.bmp"
!define MUI_WELCOMEFINISHPAGE_BITMAP "installer-side.bmp" !define MUI_WELCOMEFINISHPAGE_BITMAP "installer-side.bmp"
!define MUI_COMPONENTSPAGE_SMALLDESC !define MUI_COMPONENTSPAGE_SMALLDESC
!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_ABORTWARNING !define MUI_ABORTWARNING
; Uninstaller ; Uninstaller
@ -106,10 +107,11 @@
; Macros ; Macros
!macro download url filename !macro download url filename
DetailPrint "Attempting to download ${url} as ${filename}"
NSISdl::download ${url} ${filename} NSISdl::download ${url} ${filename}
Pop $0 Pop $0
StrCmp $0 "success" +3 StrCmp $0 "success" +3
MessageBox MB_OK "Download failed: $0" DetailPrint "Download failed: $0"
Quit Quit
!macroend !macroend