Windows Installer identifiers must be stable.

The Windows Installer team blog has a picture laden blog entry that explains why primary keys in an MSI database must not change from build to build.  I suggest taking a read through it because it provides a nice example of why I caution people when they are writing tools to autogenerate WiX source files.  Those identifiers are not trivial pieces of data.

We (Derek lead most of the way) spend a lot of time discussing the right way to handle auto-generating identifiers in the WiX toolset.  The WiX tools either generate stable identifiers or have warnings that explicitly state that the auto-generated identifiers are not stable and thus should not be used in a repeated process.

As a result, the WiX toolset is sometimes harder to use but builds very high quality Windows Installer databases (unless the developer chooses ignore the warnings <smile/>).  We're also making progress in WiX v3 on drastically improving the usability in the common auto-generation scenarios without sacrificing the quality of the created Windows Installer packages.  More on this in a month or so.

 

PS:  Primary keys in the Windows Installer map (almost exclusively) to the Id attributes in the WiX toolset

 

posted @ Friday, March 09, 2007 4:31 AM

Print

Comments on this entry:

# re: Windows Installer identifiers must be stable.

Left by Heath Stewart at 3/9/2007 9:19 AM

In similar regard, file sequences must also remain stable, as described at http://blogs.msdn.com/heaths/archive/2006/05/19/602133.aspx. For small upgrades and minor updates, arbitrarily changing file sequences will most often lead to unresolvable prompts for source, thus equally breaking the install.

 re: Windows Installer identifiers must be stable.

Left by Balaji at 4/2/2007 12:09 PM

Hi

Can you please help me on WIX, How to add a custom dialog box that will show all avail SQL Server names. Where my SQL script need to executed.

Thanks
Balaji Devendran.

# re: Windows Installer identifiers must be stable.

Left by Rob Mensching at 4/4/2007 12:37 AM

For general WiX questions, please contact wix-users@lists.sourceforge.net.

Your comment:



 (will not be displayed)


 
 
 
Please add 5 and 2 and type the answer here:
 

Live Comment Preview: