Skip to content

Commit

Permalink
NSIS installers fortified
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoonj committed Feb 14, 2014
1 parent 7bb2906 commit 061ca87
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
9 changes: 8 additions & 1 deletion nsis/xmimsim-win32.nsi.in
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,16 @@ ${Endif}

xraylib_install:
DetailPrint "xraylib download has succeeded. Installing..."
ExecWait '"xraylib-${XRAYLIB_VERSION}-win32.exe" /S'
ExecWait '"xraylib-${XRAYLIB_VERSION}-win32.exe" /VERYSILENT /SP-' $0
Delete "xraylib-${XRAYLIB_VERSION}-win32.exe"

${If} $0 == 0
Goto gtk2install
${Else}
DetailPrint "Error when installing xraylib: $0"
MessageBox MB_OK "Error when installing xraylib: $0. Aborting"
Abort "xraylib installation failed with error: $0"
${Endif}

!endif

Expand Down
10 changes: 9 additions & 1 deletion nsis/xmimsim-win64.nsi.in
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,17 @@ ${Endif}

xraylib_install:
DetailPrint "xraylib download has succeeded. Installing..."
ExecWait '"xraylib-${XRAYLIB_VERSION}-win64.exe" /S'
ExecWait '"xraylib-${XRAYLIB_VERSION}-win64.exe" /VERYSILENT /SP-' $0
Delete "xraylib-${XRAYLIB_VERSION}-win64.exe"

${If} $0 == 0
Goto gtk2install
${Else}
DetailPrint "Error when installing xraylib: $0"
MessageBox MB_OK "Error when installing xraylib: $0. Aborting"
Abort "xraylib installation failed with error: $0"
${Endif}


!endif

Expand Down

0 comments on commit 061ca87

Please sign in to comment.