From 076af99418deba7ffb1c141813a13663de51b747 Mon Sep 17 00:00:00 2001 From: Calle Pettersson Date: Thu, 5 Apr 2018 08:37:23 +0200 Subject: [PATCH] Set service recovery to restart on crash --- installer/build.ps1 | 2 +- installer/wmi_exporter.wxs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/installer/build.ps1 b/installer/build.ps1 index 8a4b0d4d..c643d28a 100644 --- a/installer/build.ps1 +++ b/installer/build.ps1 @@ -52,7 +52,7 @@ Copy-Item -Force $PathToExecutable Work/wmi_exporter.exe Write-Verbose "Creating wmi_exporter-${Version}-${Arch}.msi" $wixArch = @{"amd64" = "x64"; "386" = "x86"}[$Arch] -$wixOpts = "-ext WixFirewallExtension" +$wixOpts = "-ext WixFirewallExtension -ext WixUtilExtension" Invoke-Expression "WiX\candle.exe -nologo -arch $wixArch $wixOpts -out Work\wmi_exporter.wixobj -dVersion=`"$Version`" wmi_exporter.wxs" Invoke-Expression "WiX\light.exe -nologo -spdb $wixOpts -out `"Output\wmi_exporter-${Version}-${Arch}.msi`" Work\wmi_exporter.wixobj" diff --git a/installer/wmi_exporter.wxs b/installer/wmi_exporter.wxs index ca986cd9..fa20a9e3 100644 --- a/installer/wmi_exporter.wxs +++ b/installer/wmi_exporter.wxs @@ -1,6 +1,7 @@ + xmlns:fw="http://schemas.microsoft.com/wix/FirewallExtension" + xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> @@ -39,7 +40,9 @@ - + + +