Hey guys,

in my WiX generated MSI installer I am creating a bunch of shortcuts, in
which I was using the proven

Target="[#FileId]"

notation where FileId is of course the Id given to a file installed by a
different component. Everything works fine, and I'm seeing the (expected)
ICE warning:

warning LGHT1076: ICE69: Mismatched component reference. Entry 'Foo' of the
Shortcut table belongs to component 'Foo'. However, the formatted string in
column 'Target' references file 'Bar.exe' which belongs to component 'Bar'.
Components are in the same feature.

I know the easiest way to get rid of this warning is to use
[INSTALLDIR]Bar.exe instead of the [#FileId] reference. However, while
reading really old mailing list messages (by the way Google is completely
useless when trying to find matches with '[#' in them because it strips
both characters out of the search terms) I stumbled over this notation:
[!FileId]

So I tried it out and changed the above to

Target="[!FileId]"

and the shortcut is still being created and works fine, and there is no ICE
warning anymore.

The WiX documentation has no mention of either way of referencing files,
maybe it's an MSI thing, but what is the difference? Is it just a lucky
coincidence that the ! notation even works? Is it unsafe to use it?

// Sascha
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to