[wix-users] WG: Windows Installer database schema: Compatible to standards?

Reuss, Matthias matthias.mr.reuss at sivantos.com
Thu May 17 06:28:32 PDT 2018


Hi Bob,

Where is this MSI SDK schema documented? In the MSDN, I have only found the reference given below, . which states that file sequences are i2.

Best regards

Matthias

-----Ursprüngliche Nachricht-----
Von: Bob Arnson [mailto:bob at firegiant.com] 
Gesendet: Donnerstag, 17. Mai 2018 15:06
An: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Reuss, Matthias <matthias.mr.reuss at sivantos.com>
Betreff: RE: Windows Installer database schema: Compatible to standards?

WiX matches the MSI SDK schema, with i4 file sequences. WiX no longer supports using i2 file sequences.

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Reuss, Matthias via wix-users
Sent: Thursday, 17 May, 2018 07:41
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Reuss, Matthias <matthias.mr.reuss at sivantos.com>
Subject: [wix-users] Windows Installer database schema: Compatible to standards?

Hi,

we are migrating an MSI installer that was not authored with WiX to WiX.

We observed the following:

When building the MSI from WiX, the database columns File.Sequence and Media.LastSequence are defined as "i4", i.e. 4-byte (long) integers.
However, in our legacy MSI, these columns are defined as "i2", i.e. 2-byte (short) integers.

As a consequence, it is not possible to create a transform (or a patch) from these two MSI databases.

"Official" MSI documentation (e.g. https://msdn.microsoft.com/en-us/library/windows/desktop/aa368596(v=vs.85).aspx) says that these columns shall be of "Integer" data type, which means here two-byte integer as opposed to 4-byte "DoubleInteger".

In addition, there were 3 more mismatches between the two database schemas:

                                             Legacy                            WiX
Shortcut.Target                    s255                             s72
Shortcut.Arguments            S72                               S255
CustomAction.Source          S64                               S72

For the sizes of these 3 string columns, I have not found an official statement.

I understand that defining the sequence numbers as i4 allows to author packages with a larger number of files.
But is there a switch (e.g. in light) to make WiX build an MSI database which is fully compatible to the standard schema?

Best regards,

Matthias Reuss

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list