WiX / Bundle: Error 0x8002000a: Failed to convert version: 1.500.200701.33145 to DWORD64

0

A product called SYCON.net V1 version 1.0500.200701.33223 was installed with a setup which was created with Installshield.

Now (a newer version of) SYCON.net V2 version 2.0.20.33223 should be installed with a bootstrapper setup created with WiX Toolset 3.11.

The package name is NetFrame. The source file is "netFrame Setup.msi".

(Environment: WIN10 64Bit)

The problem can be seen in the log "Log1" below: Error 0x8002000a: Failed to convert version: 1.500.200701.33145 to DWORD64

For some reasons we would like to stick to product id. I.e. V1 and V2 have the same product id and the same upgrade code. (When changing the product id, then the error no longer occurs)

The goal is to quit/exit the installation attempt with a meaningful error message asking the user to de-install the old version first.

Besides some other attempts to reach that goal, I also tried using conditions in the bundle: <...> <Bundle ...

   <bal:Condition Message="SYCON.net V1 is already installed. SYCON.net V1 and SYCON.net V2 cannot be installed on the same system.">
  <![CDATA[Installed OR SYCONInstalledMajorVersion > "1" OR NOT SYCONInstallationPresent = 5]]>
</bal:Condition>

...

But as can be seen in "Log2" below, although the variables 'SYCONInstallationPresent' and 'SYCONInstalledMajorVersion' are being set as expected, the installation process does not reach the evaluation of the bal:condition.

Is there a way to have the setup failed as mentioned above before the attempt to convert the version?

By the way, when trying to install the source file "netFrame Setup.msi" directly (not the bundle, just the msi itself), then a proper default error message is being shown, telling that the product must not be installed again.

Log1:

[099C:22FC][2020-07-17T15:30:53]i001: Burn v3.11.1.2318, Windows v10.0 (Build 19041: Service Pack 0), path: C:\Users\XXXXX\AppData\Local\Temp{154B6C52-2A3E-4264-86F0-XXXXX}.cr\SYCON.net V2.0.20.33223 Setup.exe

[099C:22FC][2020-07-17T15:30:53]i009: Command Line: '"-burn.clean.room=C:\TMP\SetupTest\SYCONnetV2\SYCON.net V2.0.20.33223 Setup.exe" -burn.filehandle.attached=532 -burn.filehandle.self=540'

[099C:22FC][2020-07-17T15:30:53]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\TMP\SetupTest\SYCONnetV2\SYCON.net V2.0.20.33223 Setup.exe'

[099C:22FC][2020-07-17T15:30:53]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\TMP\SetupTest\SYCONnetV2'

[099C:22FC][2020-07-17T15:30:53]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\XXXXX\AppData\Local\Temp\SYCON.net_for_netX_20200717153053.log'

[099C:22FC][2020-07-17T15:30:53]i000: Setting string variable 'WixBundleName' to value 'SYCON.net for netX'

[099C:22FC][2020-07-17T15:30:53]i000: Setting string variable 'WixBundleManufacturer' to value 'Company'

[099C:0550][2020-07-17T15:30:53]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033

[099C:0550][2020-07-17T15:30:53]i000: Setting version variable 'WixBundleFileVersion' to value '2.0.20.33223'

[099C:22FC][2020-07-17T15:30:53]i100: Detect begin, 1 packages

[099C:22FC][2020-07-17T15:30:53]i000: Trying per-machine extended info for property 'State' for product: {25742C53-3D14-4B10-B84E-XXXXX}

[099C:22FC][2020-07-17T15:30:53]i000: Trying per-user extended info for property 'State' for product: {25742C53-3D14-4B10-B84E-XXXXX}

[099C:22FC][2020-07-17T15:30:53]i000: Product or related product not found: {25742C53-3D14-4B10-B84E-XXXXX}

[099C:22FC][2020-07-17T15:30:53]i000: Setting numeric variable 'DTMLibInstallationPresent' to value 2

[099C:22FC][2020-07-17T15:30:53]i000: Trying per-machine extended info for property 'State' for product: {36D8CB49-17D6-4465-8278-XXXXX}

[099C:22FC][2020-07-17T15:30:53]i000: Setting numeric variable 'SYCONInstallationPresent' to value 5

[099C:22FC][2020-07-17T15:30:53]i000: Setting string variable 'SYCONInstalledMajorVersion' to value '1'

[099C:22FC][2020-07-17T15:30:53]e000: Error 0x8002000a: Failed to convert version: 1.500.200701.33145 to DWORD64 for ProductCode: {36D8CB49-17D6-4465-8278-XXXXX}

[099C:22FC][2020-07-17T15:30:53]e151: Detect failed for package: NetFrame, error: 0x8002000a

[099C:22FC][2020-07-17T15:30:53]i101: Detected package: NetFrame, state: Unknown, cached: None

[099C:22FC][2020-07-17T15:30:53]i104: Detected package: NetFrame, feature: FE_ID_FRAME, state: Unknown

[099C:22FC][2020-07-17T15:30:53]i199: Detect complete, result: 0x8002000a

Log2:

[0694:138C][2020-07-16T14:04:09]i000: Trying per-machine extended info for property 'State' for product: {36D8CB49-17D6-4465-8278-XXXXX}

[0694:138C][2020-07-16T14:04:09]i000: Setting numeric variable 'SYCONInstallationPresent' to value 5

[0694:138C][2020-07-16T14:04:09]i000: Setting string variable 'SYCONInstalledMajorVersion' to value '1'

[0694:138C][2020-07-16T14:04:09]e000: Error 0x8002000a: Failed to convert version: 1.500.200701.33145 to DWORD64 for ProductCode: {36D8CB49-17D6-4465-8278-XXXXX}

[0694:138C][2020-07-16T14:04:09]e151: Detect failed for package: NetFrame, error: 0x8002000a

[0694:138C][2020-07-16T14:04:09]i101: Detected package: NetFrame, state: Unknown, cached: None

[0694:138C][2020-07-16T14:04:09]i104: Detected package: NetFrame, feature: FE_ID_FRAME, state: Unknown

[0694:138C][2020-07-16T14:04:09]i199: Detect complete, result: 0x8002000a

Thanks in advance.

Greetings

Marco

wix
bundle
asked on Stack Overflow Jul 17, 2020 by Marco • edited Jul 17, 2020 by Marco

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0