[MM-20659] Fixing msi upgrade process (#1115)

This commit is contained in:
Guillermo Vayá
2019-12-15 23:16:43 +01:00
committed by William Gathoye
parent 2d8c7af089
commit 69af5a1f96

View File

@@ -53,8 +53,7 @@
<?if $(var.Platform) != x64 ?>
<Condition Message="!(loc.Requires32Bit)"><![CDATA[NOT VersionNT64]]></Condition>
<?endif ?>
<!--<MajorUpgrade
DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />-->
<MajorUpgrade AllowDowngrades="yes" />
<!-- Retrieve previous installation path -->
<Property Id="INSTALLDIR">
<RegistrySearch Id="DetermineInstallLocation" Type="raw" Root="HKLM" Key="Software\Mattermost\Desktop" Name="InstallLocation" Win64="$(var.Win64)" />
@@ -127,7 +126,6 @@
<InstallExecuteSequence>
<Custom Action="KillApp" Before="InstallValidate" />
<Custom Action="LaunchApp" After="InstallFinalize">Installed</Custom>
<RemoveExistingProducts After="InstallFinalize" />
</InstallExecuteSequence>
<CustomAction Id="LaunchApp" FileKey="MattermostDesktopEXE" ExeCommand="" Return="asyncNoWait" />
<CustomAction Id="KillApp" Directory="INSTALLDIR" Return="ignore" ExeCommand="&quot;[SystemFolder]taskkill.exe&quot; /F /IM &quot;Mattermost.exe&quot;" />