summaryrefslogtreecommitdiffhomepage
path: root/windows/nsis-plugins/src/cleanup/cleanup.cpp
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2025-08-06 14:08:25 +0200
committerDavid Lönnhager <david.l@mullvad.net>2025-08-07 13:48:29 +0200
commit35fa899e46316caf7669eee8bab7eb2fb6e84107 (patch)
treeda2c9c9161542e7619227c05c1fabdbf5fbdebae /windows/nsis-plugins/src/cleanup/cleanup.cpp
parent26fddca7799ad01425458262d5ca774ded1ce96f (diff)
downloadmullvadvpn-35fa899e46316caf7669eee8bab7eb2fb6e84107.tar.xz
mullvadvpn-35fa899e46316caf7669eee8bab7eb2fb6e84107.zip
Infer Windows version from ntoskrnl image in installer
Diffstat (limited to 'windows/nsis-plugins/src/cleanup/cleanup.cpp')
-rw-r--r--windows/nsis-plugins/src/cleanup/cleanup.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/windows/nsis-plugins/src/cleanup/cleanup.cpp b/windows/nsis-plugins/src/cleanup/cleanup.cpp
index ca943934a7..b52c269577 100644
--- a/windows/nsis-plugins/src/cleanup/cleanup.cpp
+++ b/windows/nsis-plugins/src/cleanup/cleanup.cpp
@@ -7,6 +7,9 @@
#include <functional>
#include <vector>
+// NOTE: Linker refuses to find the library unless specified here
+#pragma comment(lib, "version.lib")
+
void __declspec(dllexport) NSISCALL RemoveLogsAndCache
(
HWND hwndParent,