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

Reply via email to