[tasque/windows] [wix] Fetch INSTALLFOLDER value from registry



commit ca808429af4e9882a4c1df74fb8c7be2b3735fed
Author: Antonius Riha <antoniusriha gmail com>
Date:   Sat Oct 27 10:39:33 2012 +0200

    [wix] Fetch INSTALLFOLDER value from registry
    
    taken from tomboy

 WindowsSetup/Product.wxs |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/WindowsSetup/Product.wxs b/WindowsSetup/Product.wxs
index c0f6752..80b6977 100644
--- a/WindowsSetup/Product.wxs
+++ b/WindowsSetup/Product.wxs
@@ -6,6 +6,18 @@
     <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
     <MediaTemplate />
 
+    <!--
+			The install directory will be stored in the registry 
+			this way, future "upgrades" can auto-detect where to go
+			TODO: HKLM access requires elevation on Vista, but so do
+				"Program Files" installs. If we want non-elevated users
+				to be able to install this as smoothly (outside of the
+				"Program Files" folder), we need to fall back to HKCU?
+		-->
+    <Property Id="INSTALLFOLDER">
+      <RegistrySearch Id='SearchTasqueInstallFolder' Type='directory' Root='HKLM' Key='Software\Tasque' Name='InstallFolder' />
+    </Property>
+
     <Feature Id="TasqueFeature" Title="Tasque" Level="1">
       <ComponentGroupRef Id="TasqueComponents" />
       <ComponentGroupRef Id="TasqueResources" />



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]