[MM-20659] Fixing msi upgrade process (#1115)
This commit is contained in:

committed by
William Gathoye

parent
2d8c7af089
commit
69af5a1f96
@@ -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=""[SystemFolder]taskkill.exe" /F /IM "Mattermost.exe"" />
|
||||
|
Reference in New Issue
Block a user