Hi,
Thank you for your hints, but this just doesn't work correctly.
I do not need to create custom errors, if <Condition> statements do the same.
So the helpful thoughts are in the lower part of your mail.
That however does not work. If I set the UI_RAN property, the condition only
fails if the NOT_WANTED_CONDITION fails. If the UI_RAN property is not set, it
will fail anyhow, regardless of the NOT_WANTED_CONDITION.
I tried the following:
<InstallExecuteSequence>
<LaunchConditions Suppress='yes'>NOT GUI</LaunchConditions>
</InstallExecuteSequence>
But that did'nt work either, since the condition "NOT GUI" seems to be simply
ignored.
Oliver Friedrich
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett
Sent: Dienstag, 26. Juni 2007 17:17
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] [wix-users] Conditions for setup in GUI and without
GUI?
Yuo could create custom errors like this:
<Error Id="2000">This is my error message</Error>
and create a custom action to trigger it like this:
<CustomAction Id="MyError" Error="2000" />
You can call this in the InstallExecuteSequence like this:
<Custom Action="MyError">NOT WANTED_CONDITION </Custom>
The additional problem is how do you stop them triggering if the UI ran?
You can create another CA like this:
<CustomAction Id="setUI_RAN" Property="UI_RAN" Value="1" />
and schedule it at some point in the InstallUISequence (as long as it's before
ExecuteAction).
There's no need to declare the UI_RAN property; it will be created when the CA
is run. The
condition on your CA would then be something like:
<Custom Action="MyError">NOT WANTED_CONDITION AND NOT UI_RAN</Custom>
Rob
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users