diff --git a/sys/winnt/Makefile.msc b/sys/winnt/Makefile.msc
index 8a980999e..5958a933f 100644
--- a/sys/winnt/Makefile.msc
+++ b/sys/winnt/Makefile.msc
@@ -834,6 +834,8 @@ $(GAMEDIR)\NetHackW.exe : $(O)gamedir.tag $(O)tile.o $(O)ttystub.o \
$(O)ttystub.o
$(O)winhack.res
<<
+ @echo Adding manifest
+ mt.exe -manifest $(MSWIN)\NetHackW.exe.manifest -outputresource:$(GAMEDIR)\NetHackW.exe;1
@if exist $(O)install.tag del $(O)install.tag
$(O)gamedir.tag:
diff --git a/win/win32/vs2017/NetHackW.exe.manifest b/win/win32/NetHackW.exe.manifest
similarity index 100%
rename from win/win32/vs2017/NetHackW.exe.manifest
rename to win/win32/NetHackW.exe.manifest
diff --git a/win/win32/vs2017/NetHackW.vcxproj b/win/win32/vs2017/NetHackW.vcxproj
index e563bb072..e8e104558 100644
--- a/win/win32/vs2017/NetHackW.vcxproj
+++ b/win/win32/vs2017/NetHackW.vcxproj
@@ -31,7 +31,7 @@
comctl32.lib;winmm.lib;%(AdditionalDependencies)
- NethackW.exe.manifest;%(AdditionalManifestFiles)
+ $(WinWin32Dir)NethackW.exe.manifest;%(AdditionalManifestFiles)
@@ -184,4 +184,4 @@
-
\ No newline at end of file
+