Skip to content

Commit

Permalink
[win32] add VS2015 redist files to installer
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnKaijser committed Dec 12, 2015
1 parent c80bcfa commit 976a419
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions project/Win32BuildSetup/genNsisInstaller.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,17 @@ DetailPrint "Running VS2013 re-distributable setup..."
SetOutPath "$INSTDIR"
SectionEnd

Section "VS2015 C++ re-distributable Package (x86)" SEC_VCREDIST4
DetailPrint "Running VS2015 re-distributable setup..."
SectionIn 1 2 #section is in install type Full
SetOutPath "$TEMP\vc2015"
File "${app_root}\..\dependencies\vcredist\2015\vcredist_x86.exe"
ExecWait '"$TEMP\vc2015\vcredist_x86.exe" /q' $VSRedistSetupError
RMDir /r "$TEMP\vc2015"
DetailPrint "Finished VS2015 re-distributable setup"
SetOutPath "$INSTDIR"
SectionEnd

SectionGroupEnd

Function .onInit
Expand Down
6 changes: 6 additions & 0 deletions project/Win32BuildSetup/getdeploydependencies.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ PUSHD %~dp0
if not exist dependencies\vcredist\2008 mkdir dependencies\vcredist\2008
if not exist dependencies\vcredist\2010 mkdir dependencies\vcredist\2010
if not exist dependencies\vcredist\2013 mkdir dependencies\vcredist\2013
if not exist dependencies\vcredist\2015 mkdir dependencies\vcredist\2015

if not exist dependencies\vcredist\2008\vcredist_x86.exe (
echo Downloading vc90 redist...
..\BuildDependencies\bin\wget -nv -O dependencies\vcredist\2008\vcredist_x86.exe %KODI_MIRROR%/build-deps/win32/vcredist/2008/vcredist_x86.exe
Expand All @@ -24,5 +26,9 @@ if not exist dependencies\vcredist\2013\vcredist_x86.exe (
..\BuildDependencies\bin\wget -nv -O dependencies\vcredist\2013\vcredist_x86.exe %KODI_MIRROR%/build-deps/win32/vcredist/2013/vcredist_x86.exe
)

if not exist dependencies\vcredist\2015\vcredist_x86.exe (
echo Downloading vc140 redist...
..\BuildDependencies\bin\wget -nv -O dependencies\vcredist\2015\vcredist_x86.exe %KODI_MIRROR%/build-deps/win32/vcredist/2015/vcredist_x86.exe
)
:: Restore the previous current directory
POPD

0 comments on commit 976a419

Please sign in to comment.