WiX Installer: using xslt with heat.exe to update attributes

后端 未结 3 1747
星月不相逢
星月不相逢 2020-12-06 01:57

I am trying to create a WiX installer for a Windows service, and I have read that I need to set the KeyPath to “no” for all my files, with the exception of the .exe in my Wi

3条回答
  •  时光取名叫无心
    2020-12-06 02:23

    I won't answer your original question. :)

    I have read that I nned to set the keyPath to “no” for all my files, with the exception of the .exe

    I think you were mislead. In reality the ServiceInstall table has a column Component_, and according to MSDN:

    to install this service using the InstallService table, the KeyPath for this component must be the executable file for the service.

    It doesn't mean the non-exe files in other components should have @KeyPath='no'. It just says that the EXE file of the service should reside in a separate component and must be the key path of it.

    The key path is a very important concept of the MSI technology. You can read more about it here, see the description of the KeyPath column.

    Now, if we get back to your original question - no, you don't have to tweak the heat output the way you mentioned. It will generate the WiX authoring you need by default.

提交回复
热议问题