December 16, 2017, 05:21:23 PM
News: If someone gives you crap then give them a Bad Star
Pages: [1]   Go Down
Author Topic: WiX Question on KeyPath attribute.  (Read 4085 times)
Jason Reed
Administrator
*

Stars: +4/-0
Offline Offline

Gender: Male
Posts: 4440


Pure Evil Administrator


WWW
« on: March 28, 2013, 03:36:43 AM »

Anyone got any experience with Microsoft's Windows Installer XML project called WiX?

I've got a question about the use of KeyPath on Component elements vs. File elements.

I'm currently reading a book about WiX 3.6 that says best practice is to create a Component element for each File element (representing each file to install) and set the File element's KeyPath attribute to "yes" so that repaired installation will replace the file if it is missing, and that it is bad practice to put multiple File elements in a Component element because only one File element can have KeyPath="yes".

Now I've seen in operation a KeyPath attribute also set on the Component element instead of File elements, and several File elements inside. Would this work the same as having a separate Component element for each File element, or am I wrong on this?
Logged

-- signature --

Pages: [1]   Go Up
Print
 
Jump to: