mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 21:49:48 -05:00
Include vc redistributables
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user