The reason we wanted this functionality is because we are
trying to create wixlibs that are very specific. So for example, I've got
a wixlib and all it does is check to see if the target machine has some other
application installed on it. So here is that wxs file:
<?xml version='1.0' encoding='UTF-8'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi' xmlns:inin='http://www.inin.com/i3WixExtensions'> <Fragment Id="ca_ICServerCheck"> <Condition Message="This application
can not be installed on an IC Server. The install will now
exit."><![CDATA[ICSERVERSITENAME <>
""]]></Condition>
<Property Id="ICSERVERSITENAME"
Value="0" ComplianceCheck="no">
<RegistrySearch Id="ICServerCheck" Root="HKLM" Key="SOFTWARE\Interactive Intelligence\EIC\Directory Services\Root" Name="SITE" Type="raw" /> </Property> <InstallUISequence> <AppSearch Sequence="50" Overridable="yes" /> <LaunchConditions Sequence="51" Overridable="yes" /> <FindRelatedProducts Sequence="60" /> </InstallUISequence> </Fragment> </Wix> So this wix file is built as a wixlib. Then for
any given install, all it as to do is include the ca_ICServerCheck.wixlib file
and it's included in the install. And now when any other install needs
that launch condition, it's done exactly the same way. And if it changes,
it changes for every install.
That being said, we will have lots of custom actions that
will do the same sort of thing. So we can't include the AppSearch and
LaunchConditions elements in every single ca_*.wixlib file because
when the wrapper install is built, it sees multiple of the same element and
fails. We were hoping that the "Overridable" attribute would allow for
this functionality.
From: Derek Cicerone [mailto:[EMAIL PROTECTED] Sent: Monday, July 10, 2006 1:20 PM To: Wilson, Brad; wix-devs@lists.sourceforge.net Subject: RE: [WiX-devs] WiX v3.0.1828.0 Overridable attribute causing buildbreak. I see the problem
now. Since the AppSearch action is a standard action – the wix toolset
defines the overridable sequencing for the action. You can’t specify
Overridable=”yes” because its already been declared. You can override the
standard sequencing already though, so setting the attribute shouldn’t be
necessary. Unlike custom actions,
you should keep the sequencing for standard actions, well, standard across all
products that you ship. It should not be tweaked for some products and not
others. Why are you attempting to modify the sequencing of AppSearch and
LaunchConditions? They are already sequenced so that AppSearch occurs
before LaunchConditions. Please open a bug
against this – in the least it’s a documentation issue because Overridable
should not be supported on the AppSearch element. Please assign the bug to
me. Thanks, Derek From: Wilson,
Brad [mailto:[EMAIL PROTECTED] 3.0.1828.0 (it's in the
subject of the email). From: Derek
Cicerone [mailto:[EMAIL PROTECTED] What version of
candle/WiX are you using? From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wilson, Brad I'm trying to use the overridable
attribute in some WixLibs that i've created but when trying to do so, I am
receiving the following error at candle time: candle.exe -nologo -w3
-v0 -dReleaseBuild=Yes ..\ca_ICServerCheck.wxs -ext
"ININ.WiXExtensions.I3WiXExtensions,
ININ.WiXExtensions" ..\ca_ICServerCheck.wxs(12)
: error CNDL0004 : The AppSearch element contains an unexpected attribute
'Overridable'. I'm also receiving the same error
when using the attribute with the LaunchConditions element (i'm assuming that
it's broken for all standard actions). Is this a known
issue? Brad Wilson
| Developer |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ WiX-devs mailing list WiX-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-devs