By Andreas Nick on Sonntag, 30. März 2014
Category: MSI

Windows Installaer XML Pyro Versionbug

Das Pyro Engine vom Windows Installer XML (WiX) hat einen bekannten Fehler. Mit der Installation eines MSP wird die Version nicht hochgesetzt. Der folgende Workaround (eine CustomAction) hat in meinem Projekt geholfen.

The Pyro Engine in Windows Installer XML (WiX) has a known bug. With the installation of an MSP the DisplayVersion entry version is not updated. The following workaround (a Custom Action) has helped in my project.

    <CustomAction Id="DisplayVersionOverride" Script="vbscript" Execute="deferred" Impersonate="no" Win64="yes"><![CDATA[
	'On Error Resume next
	Set wshShell = CreateObject("WScript.Shell")
	wshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{46742e0e-39d3-4a31-b617-4324773c6022}\DisplayVersion", "1.1.0.0", "REG_SZ"
	If Err.Number <> 0 Then
      msgbox "Error in DoStep1: " & Err.Description
    End If
	]]>
    </CustomAction>
    <InstallExecuteSequence>
      <Custom Action="DisplayVersionOverride" After="RegisterProduct"><![CDATA[NOT REMOVE]]></Custom>
    </InstallExecuteSequence>

Related Posts

Leave Comments