Thank you for your help Jeremiah. I actually tried that before I sent the message to this group. Apparently, it is not allowed to place "Condition" with a message inside a Feature. WiX compiler generates this: "The Condition element contains an unexpected attribute 'Message'" :(
-----Original Message----- From: Jeremiahf [mailto:jeremi...@gmail.com] Sent: Friday, December 05, 2014 10:16 AM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] "Condition" problem That makes a little more sense now. Try placing a condition in your feature that includes a condition message. The condition message should reference the condition using similar to what Pavan gave an example of. example for .net 4 detection just to give you an idea of what I am talking about: <!--.NET 4.0 Installation detection--> <Property Id="NETFRAMEWORK40CLIENT"> <RegistrySearch Id="NetFramework40Client" Root="HKLM" Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client" Name="Install" Type="raw" /> </Property> <!--.NET 4.0 Condition message--> <Condition Message="This application requires .NET Framework 4.0. Please install the .NET Framework then run this installer again"> <![CDATA[Installed OR NETFRAMEWORK40CLIENT]]> </Condition> Does it make sense how the message is related to the condition? This will pop up a message and stop the installation. This installer will never complete until the condition is met. On Thu, Dec 4, 2014 at 8:56 PM, Marek Mielcarek <mmielca...@actuate.com> wrote: > I appreciate your help. The problem is that the installer is mainly > used as command-line without any GUI. The package gets pushed to > several machines and executed with several options (features) enabled > or disabled, depending on deployment automation schema. There might be > 100+ servers involved. My installer might be directed to deploy a > feature that requires IIS but server might not have it. In reality, > the situation is even more complex as there are other features that > need to check for other prerequisites (i.e. MSMQ, specific OLDB drivers etc). > > I started leaning toward custom actions that can break installation > process if they cannot detect something they should. I wanted to > avoid that hoping there is something cleaner. > > Thanks a lot. > > > Original Message > From: Pavan Konduru > Sent: Thursday, December 4, 2014 21:46 > To: General discussion about the WiX toolset. > Reply To: General discussion about the WiX toolset. > Subject: Re: [WiX-users] "Condition" problem > > > You should set up the next button in the feature selection screen to > display a dialog that IIS is required for that feature(if selected). > MyCustomizeDLg is the dialog that has the list of the your features > user can select. > IISFOUND is a property you set to search for IIS present or not(I > think WIX has an in-built property to do this IISMAJORVERSION). > FeatureneedsIIS is the feature that requires IIS. > > Something like this: > > <Publish Dialog="MyCustomizeDlg" Control="Next" Event="NewDialog" > Value="IISNotFoundDlg"><![CDATA[NOT IISFOUND AND (&FeatureneedsIIS = > 3 AND ! FeatureneedsIIS <> 3)]]></Publish> > > In the dialog that shows the message to the user redirect the OK > button to exit dialog. > > <Control Id="OK" Type="PushButton" X="102" Y="90" Width="56" Height="17" > Default="yes" Cancel="yes" Text="OK"> > <Publish Event="EndDialog" Value="Return">1</Publish> > </Control> > > -----Original Message----- > From: Marek Mielcarek [mailto:mmielca...@actuate.com] > Sent: Thursday, December 04, 2014 3:06 PM > To: wix-users@lists.sourceforge.net; General discussion about the WiX > toolset. > Subject: Re: [WiX-users] "Condition" problem > > Example: one of the features requires IIS. Check for IIS should occur > only if the feature is selected. If te check succeeds, the feature > shall be installed. If it fails, the installation shall fail. If > feature is not selected the IIS does not matter. > > Original Message > From: Pavan Konduru > Sent: Thursday, December 4, 2014 18:00 > To: General discussion about the WiX toolset. > Reply To: General discussion about the WiX toolset. > Subject: Re: [WiX-users] "Condition" problem > > > Can give an example so it will be easier to understand? > What are the conditions and what do the features depend on? > > -----Original Message----- > From: Marek Mielcarek [mailto:mmielca...@actuate.com] > Sent: Thursday, December 04, 2014 2:28 PM > To: wix-users@lists.sourceforge.net; General discussion about the WiX > toolset. > Subject: Re: [WiX-users] "Condition" problem > > User can select any feature. Each feature has a different condition. > Installer verifies the condition for feature if it was selected for > installation. If the condition is not met, installer breaks and > informs what was the reason. > > Original Message > From: Pavan Konduru > Sent: Thursday, December 4, 2014 17:24 > To: General discussion about the WiX toolset. > Reply To: General discussion about the WiX toolset. > Subject: Re: [WiX-users] "Condition" problem > > > "This Condition makes sense only if a particular Feature is being > installed." > > So, how do you plan to achieve this even before a feature is selected > for install? > > -----Original Message----- > From: Marek Mielcarek [mailto:mmielca...@actuate.com] > Sent: Thursday, December 04, 2014 12:13 PM > To: General discussion about the WiX toolset. > Subject: [WiX-users] "Condition" problem > > I need to define a Condition which generates message and stops > installation (if condition fails). This Condition makes sense only if > a particular Feature is being installed. It looks like I cannot use > standard LaunchCondition because checking for a Feature (using > &Feature=3 or > &Feature=4) can be used reliably only after FinalizeCost, which > happens after LaunchConditions. > > Is there a way I can define such condition on a Feature level ? If > not, what is the best way to achieve the same outcome ? > > Thanks a lot > > ---------------------------------------------------------------------- > -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT > Server from Actuate! Instantly Supercharge Your Business Reports and > Dashboards with Interactivity, Sharing, Native Excel Exports, App > Integration & more Get technology previously reserved for > billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg. > clktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ---------------------------------------------------------------------- > -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT > Server from Actuate! Instantly Supercharge Your Business Reports and > Dashboards with Interactivity, Sharing, Native Excel Exports, App > Integration & more Get technology previously reserved for > billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg. > clktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ---------------------------------------------------------------------- > -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT > Server from Actuate! Instantly Supercharge Your Business Reports and > Dashboards with Interactivity, Sharing, Native Excel Exports, App > Integration & more Get technology previously reserved for > billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg. > clktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ---------------------------------------------------------------------- > -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT > Server from Actuate! Instantly Supercharge Your Business Reports and > Dashboards with Interactivity, Sharing, Native Excel Exports, App > Integration & more Get technology previously reserved for > billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg. > clktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ---------------------------------------------------------------------- > -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT > Server from Actuate! Instantly Supercharge Your Business Reports and > Dashboards with Interactivity, Sharing, Native Excel Exports, App > Integration & more Get technology previously reserved for > billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg. > clktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ---------------------------------------------------------------------- > -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT > Server from Actuate! Instantly Supercharge Your Business Reports and > Dashboards with Interactivity, Sharing, Native Excel Exports, App > Integration & more Get technology previously reserved for > billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg. > clktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ---------------------------------------------------------------------- > -------- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT > Server from Actuate! Instantly Supercharge Your Business Reports and > Dashboards with Interactivity, Sharing, Native Excel Exports, App > Integration & more Get technology previously reserved for > billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg. > clktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- "They may forget what you said but they will never forget how you made them feel." -- Anonymous ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users