DXGL r16 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r15‎ | r16 | r17 >
Date:02:45, 2 December 2011
Author:admin
Status:new
Tags:
Comment:
Add confirmation for installing Visual C++ 2010 Runtime.
Make Visual C++ 2010 Runtime install in silent mode.
Modified paths:
  • /Installer/dxgl.nsi (modified) (history)

Diff [purge]

Index: Installer/dxgl.nsi
@@ -141,11 +141,15 @@
142142 SetPluginUnload manual
143143 ReadRegDWORD $0 HKLM SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\x86 Installed
144144 StrCmp $0 1 skipvcredist
 145+ MessageBox MB_YESNO|MB_ICONQUESTION "The Microsoft Visual C++ 2010 Runtime does not seem to be installed. Do you want to download and install it now?" IDNO novc
145146 DetailPrint "Downloading Visual C++ 2010 Runtime"
146147 NSISdl::download http://www.williamfeely.info/download/vc10/vcredist_x86.exe $TEMP\vcredist_x86.exe
147148 DetailPrint "Installing Visual C++ 2010 Runtime"
148 - ExecWait '"$TEMP\vcredist_x86.exe" /passive /norestart'
 149+ ExecWait '"$TEMP\vcredist_x86.exe" /q /norestart'
149150 Delete $TEMP\vcredist_x86.exe
 151+ goto skipvcredist
 152+ novc:
 153+ MessageBox MB_OK|MB_ICONEXCLAMATION "DXGL will not work if the Visual C++ 2010 Runtime is not installed. Please install the Visual C++ 2010 Runtime before running DXGL."
150154 skipvcredist:
151155 SectionEnd
152156