Skip to content

Commit

Permalink
Download using inetc instead of nsisdl
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Jul 31, 2015
1 parent 1599bf3 commit 318390e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file added nsist/inetc.dll
Binary file not shown.
1 change: 1 addition & 0 deletions nsist/nsiswriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def __init__(self, template_file, installerbuilder, definitions=None):
'arch_tag': '.amd64' if (installerbuilder.py_bitness==64) else '',
'pjoin': ntpath.join,
'single_shortcut': len(installerbuilder.shortcuts) == 1,
'pynsist_pkg_dir': _PKGDIR,
}

if installerbuilder.py_format == 'bundled':
Expand Down
5 changes: 3 additions & 2 deletions nsist/pyapp_msvcrt.nsi
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[% extends "pyapp.nsi" %]

[% block sections %]
!addplugindir [[ pynsist_pkg_dir ]]
!include windowsversion.nsh
!include x64.nsh

Expand Down Expand Up @@ -36,10 +37,10 @@ Section "-msvcrt"

DetailPrint "Need to install MSVCRT 2015. This may take a few minutes."
DetailPrint "Downloading $0"
NSISdl::download "$0" "$INSTDIR\msvcrt.msu"
inetc::get /RESUME "" "$0" "$INSTDIR\msvcrt.msu"
Pop $2
DetailPrint "Download finished ($2)"
${If} $2 == "success"
${If} $2 == "OK"
DetailPrint "Running wusa to install update package"
ExecWait 'wusa "$INSTDIR\msvcrt.msu" /quiet /norestart' $1
Delete "$INSTDIR\msvcrt.msu"
Expand Down

0 comments on commit 318390e

Please sign in to comment.