diff --git a/src/tools/msvc/Install.pm b/src/tools/msvc/Install.pm
index 66c0c3483..2154c6cf6 100644
--- a/src/tools/msvc/Install.pm	
+++ b/src/tools/msvc/Install.pm
@@ -728,7 +728,7 @@ sub GenerateNLSFiles
 			EnsureDirectories($target, "share/libpq/locale/$lang",
 				"share/libpq/locale/$lang/LC_MESSAGES");
 			my @args = (
-				"$nlspath\\bin\\msgfmt",
+				"msgfmt.exe",
 				'-o',
 				"$target\\share\\libpq\\locale\\$lang\\LC_MESSAGES\\$prgm-$majorver.mo",
 				$_);