How to FailWhenDeferred uder WiX4? #7602
-
The problem seems to be trivial. In WiX4 the documentation states that it has to be an element FailWhenDeferred. And yet te compiler error says that this element is unexpected to be a child of Package element: d:\temp\setup.wxs(21) : error WIX0005: The Package element contains an unexpected child element 'FailWhenDeferred'. I do include Util extension:
Is documentation wrong or it is something else. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Not enough context from your code to answer fully. My best guess is that you did not add the |
Beta Was this translation helpful? Give feedback.
-
Sorry, you are spot on. I did add the XML namespace but forgot to use the prefix: <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
. . .
<FailWhenDeferred /> Changing it to Thank you. |
Beta Was this translation helpful? Give feedback.
Not enough context from your code to answer fully. My best guess is that you did not add the
util
namespace.FailWhenDeferred
is not part of thewix
namespace.