It doesn't seem to me that you need code for any of this. These are all type 51 custom actions that set a property to true or false conditioned on some other property. You could declare all these as properties with a default value of false and have type 51-s to set them true. Managed code seems to be overkill anyway - a simple VBScript could do this if you really want to code it all up (not that I'm encouraging VBScript).
Phil Wilson -----Original Message----- From: Velu [mailto:velusa...@syncfusion.com] Sent: Thursday, May 13, 2010 2:47 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Dialog Next Button Error in Custom Action 1) I can't able to check the verbose log. Because we are generating the MSI and use some bootstrapper for prerequisites and then generated the exe. How we can generate the LOg for the exe ? 2) This is my custom action code. using System; using System.Collections.Generic; using System.Text; using Microsoft.Deployment.WindowsInstaller; using System.Diagnostics; using System.IO; namespace SamplesValidation { public class CustomAction { [CustomAction] public static ActionResult SamplesValidation(Session session) { try { string sample_path; sample_path = session["CHECKBOX_1_PROP"]; if (sample_path == "TRUE") { session["BI_CHART_SILVERLIGHT_SAMPLES_UNLOCKED"] = "TRUE"; session["BI_GRID_SILVERLIGHT_SAMPLES_UNLOCKED"] = "TRUE"; session["BI_GAUGE_SILVERLIGHT_SAMPLES_UNLOCKED"] = "TRUE"; session["BI_TOOLSCLIENT_ASP_SAMPLES_UNLOCKED"] = "TRUE"; session["BI_GRID_ASP_SAMPLES_UNLOCKED"] = "TRUE"; session["BI_CHART_ASP_SAMPLES_UNLOCKED"] = "TRUE"; session["BI_TOOLSCLIENT_WPF_SAMPLES_UNLOCKED"] = "TRUE"; session["BI_GAUGE_WPF_SAMPLES_UNLOCKED"] = "TRUE"; session["BI_GRID_WPF_SAMPLES_UNLOCKED"] = "TRUE"; session["BI_CHART_WPF_SAMPLES_UNLOCKED"] = "TRUE"; session["WINDOWS_FORMS_GROUPING_SAMPLES_UNLOCKED"] = "TRUE"; session["WINDOWS_FORMS_XLSIO_SAMPLES_UNLOCKED"] = "TRUE"; session["WINDOWS_FORMS_CALCULATE_SAMPLES_UNLOCKED"] = "TRUE"; session["WINDOWS_FORMS_PDF_SAMPLES_UNLOCKED"] = "TRUE"; session["WINDOWS_FORMS_DOCIO_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_GROUPING_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_XLSIO_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_CALCULATE_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_PDF_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_DOCIO_SAMPLES_UNLOCKED"] = "TRUE"; session["WPF_CALCULATE_SAMPLES_UNLOCKED"] = "TRUE"; session["WPF_DOCIO_SAMPLES_UNLOCKED"] = "TRUE"; session["WPF_PDF_SAMPLES_UNLOCKED"] = "TRUE"; session["WPF_XLSIO_SAMPLES_UNLOCKED"] = "TRUE"; session["SILVERLIGHT_DOCIO_SAMPLES_UNLOCKED"] = "TRUE"; session["SILVERLIGHT_PDF_SAMPLES_UNLOCKED"] = "TRUE"; session["SILVERLIGHT_XLSIO_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_MVC_DOCIO_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_MVC_PDF_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_MVC_XLSIO_SAMPLES_UNLOCKED"] = "TRUE"; session["WINDOWS_FORMS_TOOLS_SAMPLES_UNLOCKED"] = "TRUE"; session["WINDOWS_FORMS_GRID_SAMPLES_UNLOCKED"] = "TRUE"; session["WINDOWS_FORMS_CHART_SAMPLES_UNLOCKED"] = "TRUE"; session["WINDOWS_FORMS_DIAGRAM_SAMPLES_UNLOCKED"] = "TRUE"; session["WINDOWS_FORMS_EDIT_SAMPLES_UNLOCKED"] = "TRUE"; session["WINDOWS_FORMS_HTMLUI_SAMPLES_UNLOCKED"] = "TRUE"; session["WINDOWS_FORMS_SCHEDULE_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_TOOLS_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_GRID_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_CHART_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_SCHEDULE_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_DIAGRAM_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_MVC_TOOLS_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_MVC_CHART_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_MVC_GRID_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_MVC_GAUGE_SAMPLES_UNLOCKED"] = "TRUE"; session["ASP.NET_MVC_SCHEDULE_SAMPLES_UNLOCKED"] = "TRUE"; session["SILVERLIGHT_DIAGRAM_SAMPLES_UNLOCKED"] = "TRUE"; session["SILVERLIGHT_SCHEDULE_SAMPLES_UNLOCKED"] = "TRUE"; session["SILVERLIGHT_GAUGE_SAMPLES_UNLOCKED"] = "TRUE"; session["SILVERLIGHT_CHART_SAMPLES_UNLOCKED"] = "TRUE"; session["SILVERLIGHT_TOOLS_SAMPLES_UNLOCKED"] = "TRUE"; session["SILVERLIGHT_GRID_SAMPLES_UNLOCKED"] = "TRUE"; session["WPF_SCHEDULE_SAMPLES_UNLOCKED"] = "TRUE"; session["WPF_DIAGRAM_SAMPLES_UNLOCKED"] = "TRUE"; session["WPF_GAUGE_SAMPLES_UNLOCKED"] = "TRUE"; session["WPF_EDIT_SAMPLES_UNLOCKED"] = "TRUE"; session["WPF_GRID_SAMPLES_UNLOCKED"] = "TRUE"; session["WPF_CHART_SAMPLES_UNLOCKED"] = "TRUE"; session["WPF_TOOLS_SAMPLES_UNLOCKED"] = "TRUE"; } else { session["BI_CHART_SILVERLIGHT_SAMPLES_UNLOCKED"] = "FALSE"; session["BI_GRID_SILVERLIGHT_SAMPLES_UNLOCKED"] = "FALSE"; session["BI_GAUGE_SILVERLIGHT_SAMPLES_UNLOCKED"] = "FALSE"; session["BI_TOOLSCLIENT_ASP_SAMPLES_UNLOCKED"] = "FALSE"; session["BI_GRID_ASP_SAMPLES_UNLOCKED"] = "FALSE"; session["BI_CHART_ASP_SAMPLES_UNLOCKED"] = "FALSE"; session["BI_TOOLSCLIENT_WPF_SAMPLES_UNLOCKED"] = "FALSE"; session["BI_GAUGE_WPF_SAMPLES_UNLOCKED"] = "FALSE"; session["BI_GRID_WPF_SAMPLES_UNLOCKED"] = "FALSE"; session["BI_CHART_WPF_SAMPLES_UNLOCKED"] = "FALSE"; session["WINDOWS_FORMS_GROUPING_SAMPLES_UNLOCKED"] = "FALSE"; session["WINDOWS_FORMS_XLSIO_SAMPLES_UNLOCKED"] = "FALSE"; session["WINDOWS_FORMS_CALCULATE_SAMPLES_UNLOCKED"] = "FALSE"; session["WINDOWS_FORMS_PDF_SAMPLES_UNLOCKED"] = "FALSE"; session["WINDOWS_FORMS_DOCIO_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_GROUPING_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_XLSIO_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_CALCULATE_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_PDF_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_DOCIO_SAMPLES_UNLOCKED"] = "FALSE"; session["WPF_CALCULATE_SAMPLES_UNLOCKED"] = "FALSE"; session["WPF_DOCIO_SAMPLES_UNLOCKED"] = "FALSE"; session["WPF_PDF_SAMPLES_UNLOCKED"] = "FALSE"; session["WPF_XLSIO_SAMPLES_UNLOCKED"] = "FALSE"; session["SILVERLIGHT_DOCIO_SAMPLES_UNLOCKED"] = "FALSE"; session["SILVERLIGHT_PDF_SAMPLES_UNLOCKED"] = "FALSE"; session["SILVERLIGHT_XLSIO_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_MVC_DOCIO_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_MVC_PDF_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_MVC_XLSIO_SAMPLES_UNLOCKED"] = "FALSE"; session["WINDOWS_FORMS_TOOLS_SAMPLES_UNLOCKED"] = "FALSE"; session["WINDOWS_FORMS_GRID_SAMPLES_UNLOCKED"] = "FALSE"; session["WINDOWS_FORMS_CHART_SAMPLES_UNLOCKED"] = "FALSE"; session["WINDOWS_FORMS_DIAGRAM_SAMPLES_UNLOCKED"] = "FALSE"; session["WINDOWS_FORMS_EDIT_SAMPLES_UNLOCKED"] = "FALSE"; session["WINDOWS_FORMS_HTMLUI_SAMPLES_UNLOCKED"] = "FALSE"; session["WINDOWS_FORMS_SCHEDULE_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_TOOLS_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_GRID_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_CHART_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_SCHEDULE_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_DIAGRAM_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_MVC_TOOLS_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_MVC_CHART_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_MVC_GRID_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_MVC_GAUGE_SAMPLES_UNLOCKED"] = "FALSE"; session["ASP.NET_MVC_SCHEDULE_SAMPLES_UNLOCKED"] = "FALSE"; session["SILVERLIGHT_DIAGRAM_SAMPLES_UNLOCKED"] = "FALSE"; session["SILVERLIGHT_SCHEDULE_SAMPLES_UNLOCKED"] = "FALSE"; session["SILVERLIGHT_GAUGE_SAMPLES_UNLOCKED"] = "FALSE"; session["SILVERLIGHT_CHART_SAMPLES_UNLOCKED"] = "FALSE"; session["SILVERLIGHT_TOOLS_SAMPLES_UNLOCKED"] = "FALSE"; session["SILVERLIGHT_GRID_SAMPLES_UNLOCKED"] = "FALSE"; session["WPF_SCHEDULE_SAMPLES_UNLOCKED"] = "FALSE"; session["WPF_DIAGRAM_SAMPLES_UNLOCKED"] = "FALSE"; session["WPF_GAUGE_SAMPLES_UNLOCKED"] = "FALSE"; session["WPF_EDIT_SAMPLES_UNLOCKED"] = "FALSE"; session["WPF_GRID_SAMPLES_UNLOCKED"] = "FALSE"; session["WPF_CHART_SAMPLES_UNLOCKED"] = "FALSE"; session["WPF_TOOLS_SAMPLES_UNLOCKED"] = "FALSE"; } } catch (Exception ex) { } return ActionResult.Success; } } } -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Dialog-Next-Button-Error-in-Custom-Action-tp5045343p5045386.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. This email comes from a division of the Invensys Group, owned by Invensys plc, which is a company registered in England and Wales with its registered office at Portland House, Bressenden Place, London, SW1E 5BF (Registered number 166023). For a list of European legal entities within the Invensys Group, please go to http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be subject to the terms of any agreements between Invensys (and/or its subsidiaries and affiliates) and the recipient (and/or its subsidiaries and affiliates). ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users