mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +00:00
Change upgrade phase
With afterInstallExecute, the old installation is only removed after the new one is finished, which has led to some users seeing the new version failing to start, leading to the install rolling back. afterInstallInitialize, in contrast, uninstalls before the new installation. Signed-off-by: Calle Pettersson <carlpett@users.noreply.github.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<Package Id="*" Manufacturer="prometheus-community" InstallScope="perMachine"
|
<Package Id="*" Manufacturer="prometheus-community" InstallScope="perMachine"
|
||||||
Description="windows_exporter $(var.Version) installer" Compressed="yes" />
|
Description="windows_exporter $(var.Version) installer" Compressed="yes" />
|
||||||
<Media Id="1" Cabinet="windows_exporter.cab" EmbedCab="yes"/>
|
<Media Id="1" Cabinet="windows_exporter.cab" EmbedCab="yes"/>
|
||||||
<MajorUpgrade Schedule="afterInstallExecute" DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
|
<MajorUpgrade Schedule="afterInstallInitialize" DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
|
||||||
|
|
||||||
<Property Id="ENABLED_COLLECTORS" Secure="yes"/>
|
<Property Id="ENABLED_COLLECTORS" Secure="yes"/>
|
||||||
<SetProperty Id="CollectorsFlag" After="InstallFiles" Sequence="execute" Value="--collectors.enabled [ENABLED_COLLECTORS]">ENABLED_COLLECTORS</SetProperty>
|
<SetProperty Id="CollectorsFlag" After="InstallFiles" Sequence="execute" Value="--collectors.enabled [ENABLED_COLLECTORS]">ENABLED_COLLECTORS</SetProperty>
|
||||||
|
|||||||
Reference in New Issue
Block a user