diff --git a/windows/installer.nsi b/windows/installer.nsi index 5cfa2acb..3948fbf9 100755 --- a/windows/installer.nsi +++ b/windows/installer.nsi @@ -4,6 +4,8 @@ !define APP_EXE "llcon.exe" !define UNINSTALL_EXE "Uninstall.exe" !define INSTALLER_NAME "llconinstaller.exe" +!define VS_REDIST_PATH "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86\" +!define VS_REDIST_EXE "vcredist_x86.exe" SetCompressor lzma @@ -32,6 +34,12 @@ Section ; other files File "..\COPYING" + ; temporarily create Microsoft Visual Studio redistributable, + ; call it, and delete it afterwards + File "${VS_REDIST_PATH}${VS_REDIST_EXE}" + ExecWait '"$INSTDIR\${VS_REDIST_EXE}" /Q' + Delete $INSTDIR\${VS_REDIST_EXE} + ; uninstaller WriteUninstaller $INSTDIR\${UNINSTALL_EXE}