Include vc redistributables

This commit is contained in:
Ron Pedde
2007-04-01 22:47:12 +00:00
parent 4f58ef2a23
commit 4be334a406
2 changed files with 18 additions and 10 deletions

View File

@@ -183,11 +183,6 @@ NoProgramItems:
File "${DLL_SOURCE}\avcodec.dll"
File "${DLL_SOURCE}\avformat.dll"
File "${DLL_SOURCE}\libFLAC.dll"
File "${REDIST_SOURCE}\msvcp80.dll"
File "${REDIST_SOURCE}\msvcr80.dll"
File "${REDIST_SOURCE}\msvcm80.dll"
File "${REDIST_SOURCE}\Microsoft.VC80.CRT.manifest"
SetOutPath "$2\plugins"
File "${MTD_SOURCE}\rsp.dll"
@@ -308,6 +303,21 @@ Section -AdditionalIcons
SectionEnd
!include "LogicLib.nsh"
!define UNINSTALL_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall"
!define APP_KEY "{A49F249F-0C91-497F-86DF-B2585E8E76B7}"
Section -VCRedistributable
ReadRegStr $R0 HKLM "${UNINSTALL_KEY}\${APP_KEY}\" "DisplayName"
${If} ${Errors}
# reg value doesn't exist (ie, needs installed)
SetOutPath "$2\"
File "${REDIST_SOURCE}\WindowsInstaller-KB893803-v2-x86.exe"
File "${REDIST_SOURCE}\VCRedist_x86.exe"
ExecWait '"$2\WindowsInstaller-KB893803-v2-x86.exe" /quiet /norestart'
ExecWait '"$2\VCRedist_x86.exe" /Q'
${EndIf}
SectionEnd
Section -Post
WriteUninstaller "$2\uninst.exe"
WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$2\mt-daapd.exe"