diff --git a/dist/windows/strawberry.nsi.in b/dist/windows/strawberry.nsi.in index 8f7c5d071..359fb81ec 100644 --- a/dist/windows/strawberry.nsi.in +++ b/dist/windows/strawberry.nsi.in @@ -505,6 +505,7 @@ Section "Strawberry" Strawberry File "Qt6Widgets.dll" !endif +!ifdef msvc File "avcodec-61.dll" File "avfilter-10.dll" File "avformat-61.dll" @@ -512,6 +513,14 @@ Section "Strawberry" Strawberry File "postproc-58.dll" File "swresample-5.dll" File "swscale-8.dll" +!else + File "avcodec-62.dll" + File "avfilter-11.dll" + File "avformat-62.dll" + File "avutil-60.dll" + File "swresample-6.dll" + File "swscale-9.dll" +!endif ; Register Strawberry with Default Programs Var /GLOBAL AppIcon @@ -1047,6 +1056,7 @@ Section "Uninstall" Delete "$INSTDIR\Qt6Widgets.dll" !endif +!ifdef msvc Delete "$INSTDIR\avcodec-61.dll" Delete "$INSTDIR\avfilter-10.dll" Delete "$INSTDIR\avformat-61.dll" @@ -1054,6 +1064,14 @@ Section "Uninstall" Delete "$INSTDIR\postproc-58.dll" Delete "$INSTDIR\swresample-5.dll" Delete "$INSTDIR\swscale-8.dll" +!else + Delete "$INSTDIR\avcodec-62.dll" + Delete "$INSTDIR\avfilter-11.dll" + Delete "$INSTDIR\avformat-62.dll" + Delete "$INSTDIR\avutil-60.dll" + Delete "$INSTDIR\swresample-6.dll" + Delete "$INSTDIR\swscale-9.dll" +!endif !ifdef mingw Delete "$INSTDIR\gio-modules\libgiognutls.dll"