diff --git a/build-aux/speedo.mk b/build-aux/speedo.mk
index 1a1d5a46c..deb9be6cc 100644
--- a/build-aux/speedo.mk
+++ b/build-aux/speedo.mk
@@ -233,6 +233,7 @@ AUTHENTICODE_FILES= \
libgpgme-11.dll \
libksba-8.dll \
libnpth-0.dll \
+ libntbtls-0.dll \
libsqlite3-0.dll \
pinentry-w32.exe \
scdaemon.exe \
@@ -498,9 +499,6 @@ speedo_pkg_libgcrypt_configure = --disable-static
speedo_pkg_libksba_configure = --disable-static
-speedo_pkg_ntbtls_configure = --enable-static
-
-
ifeq ($(STATIC),1)
speedo_pkg_npth_configure += --disable-shared
@@ -513,9 +511,6 @@ speedo_pkg_libgcrypt_configure += --disable-shared
speedo_pkg_libksba_configure += --disable-shared
endif
-# For now we build ntbtls only static
-speedo_pkg_ntbtls_configure = --disable-shared
-
ifeq ($(TARGETOS),w32)
speedo_pkg_gnupg_configure = \
--disable-g13 --enable-ntbtls --disable-tpm2d
diff --git a/build-aux/speedo/w32/inst.nsi b/build-aux/speedo/w32/inst.nsi
index 674cb4d26..8b42e821f 100644
--- a/build-aux/speedo/w32/inst.nsi
+++ b/build-aux/speedo/w32/inst.nsi
@@ -858,6 +858,11 @@ Section "-sqlite" SEC_sqlite
File bin/libsqlite3-0.dll
SectionEnd
+Section "-ntbtls" SEC_ntbtls
+ SetOutPath "$INSTDIR\bin"
+ File bin/libntbtls-0.dll
+SectionEnd
+
!ifdef WITH_GUI
Section "-libiconv" SEC_libiconv
SetOutPath "$INSTDIR\bin"
@@ -1442,6 +1447,10 @@ Section "-un.sqlite"
Delete "$INSTDIR\bin\libsqlite3-0.dll"
SectionEnd
+Section "-un.ntbtls"
+ Delete "$INSTDIR\bin\libntbtls-0.dll"
+SectionEnd
+
Section "-un.gnupginst"
# Delete standard stuff.
Delete "$INSTDIR\README.txt"
diff --git a/build-aux/speedo/w32/wixlib.wxs b/build-aux/speedo/w32/wixlib.wxs
index 48d105db3..82adb9599 100644
--- a/build-aux/speedo/w32/wixlib.wxs
+++ b/build-aux/speedo/w32/wixlib.wxs
@@ -118,6 +118,9 @@ and then manually edited:
+
+
+