diff --git a/contrib/wix/dist.wxs b/contrib/wix/dist.wxs
new file mode 100644
--- /dev/null
+++ b/contrib/wix/dist.wxs
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/contrib/wix/guids.wxi b/contrib/wix/guids.wxi
--- a/contrib/wix/guids.wxi
+++ b/contrib/wix/guids.wxi
@@ -8,6 +8,9 @@
+
+
+
@@ -42,5 +45,6 @@
+
diff --git a/contrib/wix/hg.cmd b/contrib/wix/hg.cmd
new file mode 100644
--- /dev/null
+++ b/contrib/wix/hg.cmd
@@ -0,0 +1,3 @@
+@echo off
+rem launch hg.exe from parent folder
+"%~dp0\..\hg.exe" %*
diff --git a/contrib/wix/mercurial.wxs b/contrib/wix/mercurial.wxs
--- a/contrib/wix/mercurial.wxs
+++ b/contrib/wix/mercurial.wxs
@@ -8,6 +8,12 @@
+
+
+
+
+
+
-
-
+ Permanent="no" Value="[INSTALLDIR]bin" Action="set" />
+
+
+
+
+
+
+
@@ -101,12 +112,14 @@
+
+