From 1d918b7164ea3c916db842257ab7d77f274730ae Mon Sep 17 00:00:00 2001
From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Date: Wed, 25 Sep 2019 10:16:21 -0400
Subject: [PATCH] installer: remove registry check for custom install path

Change-Id: I5fecced2d7683e6fe6561adc312418c5c95c6e3b
---
 JamiInstaller/Product.wxs | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/JamiInstaller/Product.wxs b/JamiInstaller/Product.wxs
index 7970d27..d11ecd2 100644
--- a/JamiInstaller/Product.wxs
+++ b/JamiInstaller/Product.wxs
@@ -30,16 +30,6 @@
         <MergeRef Id="VCRedist"/>
       </Feature>
 
-      <!--Find User Defined Installition Registry If User changes the Default Registry-->
-      <Property Id="APPLICATIONFOLDER" Secure="yes">
-        <RegistrySearch Id="FindInstallLocation"
-            Root="HKLM"
-            Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[WIX_UPGRADE_DETECTED]"
-            Name="InstallLocation"
-            Type="raw"
-            Win64="yes" />
-      </Property>
-
       <!--SetDirectory of APPLICATIONFOLDER -->
       <SetDirectory
           Id="APPLICATIONFOLDER"
@@ -53,7 +43,7 @@
         <WixVariable Id="WixUISupportPerUser" Value="0" />
 
       <CustomAction Id="removeOldJamiFiles" Directory="APPLICATIONFOLDER"
-                    ExeCommand="cmd /c &quot;del vc_redist.x64.exe; del uninstall.exe;&quot;"
+                    ExeCommand="cmd /c &quot;del vc_redist.x64.exe; del uninstall.exe; del WinSparkle.dll;&quot;"
                     Execute="deferred" Return="ignore" HideTarget="no" Impersonate="no" />
 
     </Product>
-- 
GitLab