-
I have the following code :
The message appears whenever a user didn't provide property REGION_TYPE during installation. Could you please explain why the condition works |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Uhh, no. Where did you see |
Beta Was this translation helpful? Give feedback.
-
I understand from your reaction that I'm totally wrong. I'm confused, about how this condition works.
We get the error message during installation when we do not provide REGION_TYPE property. |
Beta Was this translation helpful? Give feedback.
-
HI,
Probably here some misunderstanding of the meaning of property "Installed"
. This property is set only if the product was installed previously and you
are running the same installation for the second time. Hence you always get
your condition false. Try to change it to <![CDATA[(NOT Installed AND
REGION_TYPE) OR Installed]]>.
Try to think a bit differently - not when to show the message but when to
continue installation. According to what you wrote you want to continue in
two cases:
1. When your product has been installed before and regardless of a value of
the custom property - you pass through according to the second part of
condition
2. When you install your product for the first time and the custom property
is set - you pass through according to the first part.
…On Sat, Feb 11, 2023 at 6:10 PM Rob Mensching ***@***.***> wrote:
No. From the doc <https://wixtoolset.org/docs/v3/xsd/wix/condition/>:
Message String Used only under Fragment or Product elements and is
required. Set the value to the text to display when the condition fails and
the installation must be terminated.
—
Reply to this email directly, view it on GitHub
<#7213 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCKQ23SMFAMYYAH2BXE5XLWW62X3ANCNFSM6AAAAAAUWWQTM4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Regards,
Fyodor Koryazhkin..
|
Beta Was this translation helpful? Give feedback.
I understand from your reaction that I'm totally wrong. I'm confused, about how this condition works.
I'll provide a whole wxs file.
I took a small example from https://resources.oreilly.com/examples/9781782160427/-/tree/master/Chapter%203/Built%20in%20properties%20example
and added some changes :