Well yes, does it work? Best regards, Sebastian Brand
Deployment consultant E-Mail: sebast...@instyler.com Blog: www.sebastianbrand.com > -----Original Message----- > From: Arun Perregatturv [mailto:aperregatt...@napcosecurity.com] > Sent: Thursday, November 19, 2009 21:23 > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Feature selection and CustomAction commandline > > I tried as you said > <Publish Property ="SERVERVALUE" > Value="1">INSTALLTYPE="CompleteServer"</Publish> > <Publish Property ="SERVERVALUE" > Value="2">INSTALLTYPE="CompleteDatabaseServer"</Publish> > <Publish Property ="SERVERVALUE" > Value="3">INSTALLTYPE="CompleteWorkstation"</Publish> > > And CustomAction > > <Property Id="CAAUTOCREATEUPDATEDB " > Value="[#caAutoCreateUpdateDB.exe] "/> > <CustomAction Id="ExecuteTools" > Property="CAAUTOCREATEUPDATEDB" > Directory="APPLICATION_TOOLS_DIRECTORY" > ExeCommand="[SERVERVALUE]" > Return="asyncWait" /> > > This is right? > > > Arun Perregattur > > > -----Original Message----- > From: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] > Sent: Thursday, November 19, 2009 10:27 AM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Feature selection and CustomAction commandline > > The INSTALLTYPE property will contain the values "CompleteServer", > "CompleteDatabaseServer" or "CompleteWorkstation" after the selection > was made. You can either change these values to 1,2,3 or create three > SetProperty control events, one for each install type: > <Publish Property="NEWPROP" > Value="1">INSTALLTYPE="CompleteServer"</Publish> > Put these Publish elements before the first <Publish> element of the Next- > Button. > Then use the [NEWPROP] in your ExeCommand attribute for running the > custom action. > > Best regards, > Sebastian Brand > > Deployment consultant > E-Mail: sebast...@instyler.com > Blog: www.sebastianbrand.com > > > > > > On 19.11.2009, at 14:57, Arun Perregatturv wrote: > > > <Dialog Id="InstallDlg" Width="370" Height="270" > Title="!(loc.SetupTypeDlg_Title)" NoMinimize="yes"> > > <Control Id="Next" Type="PushButton" X="236" Y="243" > Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" > > > <Publish Event="AddLocal" > Value="CompleteServer"><![CDATA[(INSTALLTYPE > ="CompleteServer")]]></Publish> > > <Publish Event="Remove" > > > Value="CompleteServer"><![CDATA[NOT(INSTALLTYPE="CompleteServer")] > ]></ > > Publish> > > > > <Publish Event="AddLocal" > Value="CompleteDatabaseServer"><![CDATA[(INSTALLTYPE > ="CompleteDatabaseServer")]]></Publish> > > <Publish Event="Remove" > > > Value="CompleteDatabaseServer"><![CDATA[NOT(INSTALLTYPE="Complete > Datab > > aseServer")]]></Publish> > > > > <Publish Event="AddLocal" > Value="CompleteWorkstation"><![CDATA[(INSTALLTYPE="CompleteWorkst > ation")]]></Publish> > > <Publish Event="Remove" > > > Value="CompleteWorkstation"><![CDATA[NOT(INSTALLTYPE="CompleteWo > rkstat > > ion")]]></Publish> > > > > </Control> > > <Control Id="RadioButtonGroupID" Type="RadioButtonGroup" > X="49" Y="64" Width="188" Height="68" Property="INSTALLTYPE" Text="This > is My Group" > > > <RadioButtonGroup Property="INSTALLTYPE" > > > <RadioButton Value="CompleteServer" X="0" Y="0" Width="100" > Height="10" Text="CardAccess Server" /> > > <RadioButton Value="CompleteDatabaseServer" X="0" Y="15" > Width="150" Height="10" Text="CardAccess Database Server" /> > > <RadioButton Value="CompleteWorkstation" X="0" Y="45" > Width="180" Height="10" Text="CardAccess Workstation" /> > > </RadioButtonGroup> > > </Control> > > <Property Id="INSTALLTYPE" Value="CompleteServer" /> > > > > This code works with selected feature it installs only those files but I need > to know to in order to run CustomAction commandline. > > > > Maybe if I can check the value of INSTALLTYPE in CustomAction I can do it, > but how do I check that value? > > > > Thanks, > > Arun Perregattur > > > > -----Original Message----- > > From: Sebastian Brand (Instyler Software) > > [mailto:wix+us...@instyler.com] > > Sent: Thursday, November 19, 2009 3:22 AM > > To: General discussion for Windows Installer XML toolset. > > Subject: Re: [WiX-users] Feature selection and CustomAction > > commandline > > > > If you have a radio button group, we don't use the property you have > associated with the radiobutton group in the commandline. > > > > How are you setting the InstallLevel using the radio buttons? > > > > > > Best regards, > > Sebastian Brand > > > > Deployment consultant > > E-Mail: sebast...@instyler.com > > > > Instyler Setup - Creating WiX-based MSI installations, elegantly. > > http://www.instyler.com > > > > On 18.11.2009, at 18:19, Arun Perregatturv wrote: > > > >> Hi, > >> > >> I created a custom dialog for feature selection that has 3 radio > >> button options - > >> > >> 1. Server > >> > >> 2. Workstation > >> > >> 3. DB Server > >> > >> I would like to know which of the feature the user has selected in order to > run a customaction with a commandline value. > >> Code looks something like this > >> > >> <Feature Id="WorkstationFeature" Title="CardAccess Workstation" > >> Level="1" > <Feature Id="ServerFeature" Title="Server" Level="2" > > >> <Feature Id="DBServerFeature" Title="DB Server" Level="3" > > >> > >> Now, > >> <UI> > >> <UIRef Id="caWixUI_Mondo"/> > >> <Publish Dialog="ExitDialog" > >> Control="Finish" > >> Event="DoAction" > >> > >> Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 > and NOT Installed</Publish> </UI> > >> <CustomAction Id="ExecuteTools" > >> Directory="APPLICATION_TOOLS_DIRECTORY" > >> ExeCommand="[#caAutoCreateUpdateDB.exe]" > ============> I have to add commandline value here based on the > selection (feature 1 = 1, feature 2 = 2 or feature 3 = 3. How do I do that. > >> Return="asyncWait" /> > >> <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" > Value="Launch Access"/> > >> <Property Id="WixShellExecTarget" Value="[#ConsoleApp.exe]" > /> > >> <CustomAction Id="LaunchApplication" > >> BinaryKey="WixCA" > >> DllEntry="WixShellExec" > >> Impersonate="yes"/> > >> <InstallExecuteSequence> > >> <Custom Action="ExecuteTools" After ="InstallFinalize">NOT > Installed</Custom> > >> <RemoveExistingProducts After="InstallFinalize"/> > >> </InstallExecuteSequence> > >> > >> Arun Perregattur > >> > >> --------------------------------------------------------------------- > >> --------- Let Crystal Reports handle the reporting - Free Crystal > >> Reports 2008 30-Day trial. Simplify your report design, integration > >> and deployment - and focus on what you do best, core application > >> coding. Discover what's new with Crystal Reports now. > >> http://p.sf.net/sfu/bobj-july > >> _______________________________________________ > >> WiX-users mailing list > >> WiX-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ---------------------------------------------------------------------- > > -------- Let Crystal Reports handle the reporting - Free Crystal > > Reports 2008 30-Day trial. Simplify your report design, integration > > and deployment - and focus on what you do best, core application > > coding. Discover what's new with Crystal Reports now. > > http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ---------------------------------------------------------------------- > > -------- Let Crystal Reports handle the reporting - Free Crystal > > Reports 2008 30-Day trial. Simplify your report design, integration > > and deployment - and focus on what you do best, core application > > coding. Discover what's new with Crystal Reports now. > > http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > ---------------------------------------------------------------------------- -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with Crystal > Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ---------------------------------------------------------------------------- -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with Crystal > Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users