/[ascend]/trunk/nsis/download.nsi
ViewVC logotype

Contents of /trunk/nsis/download.nsi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1570 - (show annotations) (download)
Fri Aug 3 14:18:08 2007 UTC (17 years, 4 months ago) by jpye
File size: 660 byte(s)
More work on Windows installer
1 Var DAI_RET
2 Var DAI_TMPFILE
3
4 !macro downloadAndInstall DAI_NAME DAI_URL DAI_FN DAI_CMD
5
6 MessageBox MB_OK "Downloading ${DAI_NAME}..."
7
8 StrCpy $DAI_TMPFILE "$TEMP\${DAI_FN}"
9 nsisdl::download /TIMEOUT=30000 ${DAI_URL} $DAI_TMPFILE
10 Pop $DAI_RET ;Get the return value
11 ${If} $DAI_RET == "success"
12 MessageBox MB_OK "Installing ${DAI_NAME}..."
13 ExecWait "${DAI_CMD}" $0
14 MessageBox MB_OK "${DAI_NAME} installer returned $0"
15 Delete $DAI_TMPFILE
16 Push $0
17 ${ElseIf} $DAI_RET == "cancel"
18 MessageBox MB_OK "${DAI_NAME} download cancelled"
19 Push 2
20 ${Else}
21 MessageBox MB_OK "Download failed: $DAI_RET"
22 Push 1
23 ${EndIf}
24
25 !macroend

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22