From 9570ed7cb0f6aca9900d5e45016f620a53b791ca Mon Sep 17 00:00:00 2001
From: Jonathan Harris <jonathan@marginal.org.uk>
Date: Wed, 4 Nov 2015 20:00:12 +0000
Subject: [PATCH] Set InstallLocation under Windows registry Uninstall key.

---
 EDMarketConnector.wxs | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/EDMarketConnector.wxs b/EDMarketConnector.wxs
index abeaae38..853150ae 100644
--- a/EDMarketConnector.wxs
+++ b/EDMarketConnector.wxs
@@ -30,6 +30,13 @@
 		<Property Id="ARPPRODUCTICON" Value="EDMarketConnector.exe" />
 		<!-- <Property Id="ARPNOREPAIR" Value="yes" Secure="yes" />	 Remove repair -->
 		<Property Id="ARPNOMODIFY" Value="yes" Secure="yes" />	<!-- Remove modify - also set by WixUI_Minimal -->
+		<Property Id="ARPHELPLINK" Value="https://github.com/Marginal/EDMarketConnector/wiki" />
+
+		<!-- http://blogs.technet.com/b/alexshev/archive/2008/02/09/from-msi-to-wix-part-2.aspx -->
+		<CustomAction Id="SetARPINSTALLLOCATION" Property="ARPINSTALLLOCATION" Value="[INSTALLDIR]" />
+		<InstallExecuteSequence>
+			<Custom Action="SetARPINSTALLLOCATION" After="InstallValidate"></Custom>
+		</InstallExecuteSequence>
 
 		<!-- Merge in C runtime -->
 		<DirectoryRef Id="TARGETDIR">
@@ -103,8 +110,8 @@
 					</Component>
 					<Component Guid="*">
 						<File KeyPath="yes" Source="SourceDir\snd_bad.wav" />
-					</Component>
-					<Component Guid="*">
+					</Component>
+					<Component Guid="*">
 						<File KeyPath="yes" Source="SourceDir\stations.p" />
 					</Component>
 					<Component Guid="*">