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 @@ - + + +