Thanks. I tried the following wix xml settings to get LaunchConditions running after CostFinalize and it generated the noted compile errors. I switched to use of the CustomAction Error= approach also shown below that you suggested and got the desired result. Question - is the reason for sequencing the execution of a customaction in both InstallUISequence And InstallExecuteSequence so that you cover both interactive and unattended installs? In the case of an interactive install do the sequenced customactions then end up running twice, i.e. once during interactive UI portion of install and then again when user selects finish and installer server processing gets carried out?
<InstallUISequence> <CostFinalize Before="LaunchConditions" /> <!--<LaunchConditions After="CostFinalize" />--> <InstallExecuteSequence> <CostFinalize Before="LaunchConditions" /> <!--<LaunchConditions After="CostFinalize" />--> The CostFinalize element contains an unexpected attribute 'Before'. <!-- ICE27: 'LaunchConditions' Action in InstallExecuteSequence table in wrong place. Current: Selection, Correct: Search --> <!-- for prerequisites that require checking feature and/or component state and action conditions --> <CustomAction Id="PrerequisitesExSql08" Error="[ProductName] requires Sql08 to be installed." /> <CustomAction Id="PrerequisitesExSql05Ns" Error="[ProductName] requires Sql05 Notification Services to be installed." /> <CustomAction Id="PrerequisitesExSql05" Error="[ProductName] requires Sql05 to be installed." /> <CustomAction Id="PrerequisitesExSso09AndBts09" Error="[ProductName] requires Sso09 and Bts09 to be installed." /> <InstallUISequence> <!-- for prerequisites that require checking feature and/or component state and action conditions --> <Custom Action="PrerequisitesExSql08" After="CostFinalize">!Databases=2 And &Databases=3 And Not SQL08DIR</Custom> <!--<Custom Action="PrerequisitesExSql05Ns" After="CostFinalize">!Databases=2 And &Databases=3 And Not SQL05NSDIR</Custom> <Custom Action="PrerequisitesExSql05" After="CostFinalize">!Databases=2 And &Databases=3 And Not SQL05DIR</Custom>--> <Custom Action="PrerequisitesExSso09AndBts09" After="CostFinalize">!Services=2 And &Services=3 And Not SSO09DIR And Not BTS09DIR</Custom> <InstallExecuteSequence> <!-- for prerequisites that require checking feature and/or component state and action conditions --> <Custom Action="PrerequisitesExSql08" After="CostFinalize">!Databases=2 And &Databases=3 And Not SQL08DIR</Custom> <!--<Custom Action="PrerequisitesExSql05Ns" After="CostFinalize">!Databases=2 And &Databases=3 And Not SQL05NSDIR</Custom> <Custom Action="PrerequisitesExSql05" After="CostFinalize">!Databases=2 And &Databases=3 And Not SQL05DIR</Custom>--> <Custom Action="PrerequisitesExSso09AndBts09" After="CostFinalize">!Services=2 And &Services=3 And Not SSO09DIR And Not BTS09DIR</Custom> -----Original Message----- From: zett42 [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2008 10:25 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] prerequisite conditions http://msdn.microsoft.com/en-us/library/aa368012(VS.85).aspx Under "Feature and component state values". I think it could work if you put LaunchConditions after CostFinalize in the sequence tables. Otherwise, you could also use a CustomAction using the "Error" attribute and you could sequence this after CostFinalize to achieve the same effect. Robert O'Brien-2 wrote: > > Is it expected that prerequisite condition statements support checking > feature state and action values in order to determine if prerequisite > should be checked for, e.g. is the following valid given an msi that has a > Feature named "Databases" and a SQL08DIR property assignment using > registry search? > > <Condition Message="[ProductName] requires Sql08 to be installed."> > Installed Or (!Databases=2 And &Databases=3 And SQL08DIR) > </Condition> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://n2.nabble.com/prerequisite-conditions-tp1614466p1614700.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users