Re: [WiX-users] Feature selection and CustomAction commandline
Thanks, I did some search on the net as I didn't get any response from wix for a while. This is how I was able to fix I used a SetProperty as recommended by Sebastian Brand SetProperty Id=SERVERVALUE Value=2 After=CostFinalizeINSTALLTYPE=CompleteWorkstation/SetProperty I even tried to display that value which was correct then use this custom action to execute the application CustomAction Id=ExecuteTools FileKey=caAutoCreateUpdateDB.exe ExeCommand=[SERVERVALUE] Execute=immediate Impersonate=no Return=asyncWait HideTarget=no/ Which work fine. Hope this helps someone. Now, if only someone can tell how to set BootStrapper sequence it would be great. Arun Perregattur -Original Message- From: salever.lee [mailto:salever@gmail.com] Sent: Tuesday, November 24, 2009 3:53 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Feature selection and CustomAction commandline Features have some action states and installed state. Using or ! operator can gain the state of the features in feature tree. eg. !FeatureName = 1. Does this meet you? 2009-11-24 salever.lee 发件人: Blair 发送时间: 2009-11-24 14:24:57 收件人: 'General discussion for Windows Installer XML toolset.' 抄送: 主题: Re: [WiX-users] Feature selection and CustomAction commandline Try changing the first line to: Property Id=SERVERVALUE Value=0 Secure=yes/ and tell us if it works. -Original Message- From: Arun Perregatturv [mailto:aperregatt...@napcosecurity.com] Sent: Friday, November 20, 2009 10:49 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Feature selection and CustomAction commandline No. No its not working. I tried different ways. Let me copy the code here and show what exactly I changed. This is the custom dialog code Property Id=SERVERVALUE Value=0/ UI 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 Property =SERVERVALUE Value=0INSTALLTYPE =CompleteServer/Publish Publish Property =SERVERVALUE Value=0INSTALLTYPE =CompleteDatabaseServer/Publish Publish Property =SERVERVALUE Value=3INSTALLTYPE=CompleteWorkstation/Publish Publish Event=AddLocal Value=CompleteServer![CDATA[(INSTALLTYPE =CompleteServer)]]/Publish Publish Event=Remove Value=CompleteServer![CDATA[NOT(INSTALLTYPE=CompleteServer)]]/Publis h Publish Event=AddLocal Value=CompleteDatabaseServer![CDATA[(INSTALLTYPE =CompleteDatabaseServer)]]/Publish Publish Event=Remove Value=CompleteDatabaseServer![CDATA[NOT(INSTALLTYPE=CompleteDatabaseSer ver)]]/Publish Publish Event=AddLocal Value=CompleteWorkstation![CDATA[(INSTALLTYPE=CompleteWorkstation)]] /Publish Publish Event=Remove Value=CompleteWorkstation![CDATA[NOT(INSTALLTYPE=CompleteWorkstation)] ]/Publish /Control Am I doing something wrong here This is the custom action CustomAction Id=ExecuteTools FileKey=caAutoCreateUpdateDB.exe ExeCommand=[SERVERVALUE] Execute=immediate Impersonate=no Return=asyncWait HideTarget=no/ I even tried to display the SERVERVALUE using a message box it shows blank. CustomAction Id=ShowProperty Script=vbscript Execute=deferred ![CDATA[ MsgBox Session.Property(SERVERVALUE) ]] /CustomAction InstallExecuteSequence Custom Action=ShowProperty Before=InstallFinalizeNot Installed/Custom Custom Action=ExecuteTools After=InstallFinalize/ ScheduleReboot After='InstallFinalize' / /InstallExecuteSequence Please help. Also, I have another problem with the BootStrapper I have to install the following pre-requisite in the same order 1. Windows Installer 4.5 2..NET 3.5 SP1 3. SQL 2008 4. Crystal Reports runtime basic But, on a Pristine Windows XP, Crystal Reports starts to install first and Installer fails because it has no W Installer 45 and .NET 35 Where do I set the sequence of which installation should start first? Thanks, Arun Perregattur -Original Message- From: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] Sent: Friday, November 20, 2009 2:39 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Feature selection and CustomAction commandline 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
Re: [WiX-users] Feature selection and CustomAction commandline
Try changing the first line to: Property Id=SERVERVALUE Value=0 Secure=yes/ and tell us if it works. -Original Message- From: Arun Perregatturv [mailto:aperregatt...@napcosecurity.com] Sent: Friday, November 20, 2009 10:49 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Feature selection and CustomAction commandline No. No its not working. I tried different ways. Let me copy the code here and show what exactly I changed. This is the custom dialog code Property Id=SERVERVALUE Value=0/ UI 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 Property =SERVERVALUE Value=0INSTALLTYPE =CompleteServer/Publish Publish Property =SERVERVALUE Value=0INSTALLTYPE =CompleteDatabaseServer/Publish Publish Property =SERVERVALUE Value=3INSTALLTYPE=CompleteWorkstation/Publish Publish Event=AddLocal Value=CompleteServer![CDATA[(INSTALLTYPE =CompleteServer)]]/Publish Publish Event=Remove Value=CompleteServer![CDATA[NOT(INSTALLTYPE=CompleteServer)]]/Publis h Publish Event=AddLocal Value=CompleteDatabaseServer![CDATA[(INSTALLTYPE =CompleteDatabaseServer)]]/Publish Publish Event=Remove Value=CompleteDatabaseServer![CDATA[NOT(INSTALLTYPE=CompleteDatabaseSer ver)]]/Publish Publish Event=AddLocal Value=CompleteWorkstation![CDATA[(INSTALLTYPE=CompleteWorkstation)]] /Publish Publish Event=Remove Value=CompleteWorkstation![CDATA[NOT(INSTALLTYPE=CompleteWorkstation)] ]/Publish /Control Am I doing something wrong here This is the custom action CustomAction Id=ExecuteTools FileKey=caAutoCreateUpdateDB.exe ExeCommand=[SERVERVALUE] Execute=immediate Impersonate=no Return=asyncWait HideTarget=no/ I even tried to display the SERVERVALUE using a message box it shows blank. CustomAction Id=ShowProperty Script=vbscript Execute=deferred ![CDATA[ MsgBox Session.Property(SERVERVALUE) ]] /CustomAction InstallExecuteSequence Custom Action=ShowProperty Before=InstallFinalizeNot Installed/Custom Custom Action=ExecuteTools After=InstallFinalize/ ScheduleReboot After='InstallFinalize' / /InstallExecuteSequence Please help. Also, I have another problem with the BootStrapper I have to install the following pre-requisite in the same order 1. Windows Installer 4.5 2..NET 3.5 SP1 3. SQL 2008 4. Crystal Reports runtime basic But, on a Pristine Windows XP, Crystal Reports starts to install first and Installer fails because it has no W Installer 45 and .NET 35 Where do I set the sequence of which installation should start first? Thanks, Arun Perregattur -Original Message- From: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] Sent: Friday, November 20, 2009 2:39 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Feature selection and CustomAction commandline 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=1INSTALLTYPE=CompleteServer/Publish Publish Property =SERVERVALUE Value=2INSTALLTYPE=CompleteDatabaseServer/Publish Publish Property =SERVERVALUE Value=3INSTALLTYPE=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=1INSTALLTYPE=CompleteServer/Publish
Re: [WiX-users] Feature selection and CustomAction commandline
No. No its not working. I tried different ways. Let me copy the code here and show what exactly I changed. This is the custom dialog code Property Id=SERVERVALUE Value=0/ UI 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 Property =SERVERVALUE Value=0INSTALLTYPE =CompleteServer/Publish Publish Property =SERVERVALUE Value=0INSTALLTYPE =CompleteDatabaseServer/Publish Publish Property =SERVERVALUE Value=3INSTALLTYPE=CompleteWorkstation/Publish 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=CompleteDatabaseServer)]]/Publish Publish Event=AddLocal Value=CompleteWorkstation![CDATA[(INSTALLTYPE=CompleteWorkstation)]]/Publish Publish Event=Remove Value=CompleteWorkstation![CDATA[NOT(INSTALLTYPE=CompleteWorkstation)]]/Publish /Control Am I doing something wrong here This is the custom action CustomAction Id=ExecuteTools FileKey=caAutoCreateUpdateDB.exe ExeCommand=[SERVERVALUE] Execute=immediate Impersonate=no Return=asyncWait HideTarget=no/ I even tried to display the SERVERVALUE using a message box it shows blank. CustomAction Id=ShowProperty Script=vbscript Execute=deferred ![CDATA[ MsgBox Session.Property(SERVERVALUE) ]] /CustomAction InstallExecuteSequence Custom Action=ShowProperty Before=InstallFinalizeNot Installed/Custom Custom Action=ExecuteTools After=InstallFinalize/ ScheduleReboot After='InstallFinalize' / /InstallExecuteSequence Please help. Also, I have another problem with the BootStrapper I have to install the following pre-requisite in the same order 1. Windows Installer 4.5 2..NET 3.5 SP1 3. SQL 2008 4. Crystal Reports runtime basic But, on a Pristine Windows XP, Crystal Reports starts to install first and Installer fails because it has no W Installer 45 and .NET 35 Where do I set the sequence of which installation should start first? Thanks, Arun Perregattur -Original Message- From: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] Sent: Friday, November 20, 2009 2:39 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Feature selection and CustomAction commandline 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=1INSTALLTYPE=CompleteServer/Publish Publish Property =SERVERVALUE Value=2INSTALLTYPE=CompleteDatabaseServer/Publish Publish Property =SERVERVALUE Value=3INSTALLTYPE=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=1INSTALLTYPE=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
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=LaunchApplicationWIXUI_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 =InstallFinalizeNOT 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
Re: [WiX-users] Feature selection and CustomAction commandline
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=CompleteDatabaseServer)]]/Publish Publish Event=AddLocal Value=CompleteWorkstation![CDATA[(INSTALLTYPE=CompleteWorkstation)]]/Publish Publish Event=Remove Value=CompleteWorkstation![CDATA[NOT(INSTALLTYPE=CompleteWorkstation)]]/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=LaunchApplicationWIXUI_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 =InstallFinalizeNOT 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
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=1INSTALLTYPE=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=CompleteDatabaseServer)]]/Publish Publish Event=AddLocal Value=CompleteWorkstation![CDATA[(INSTALLTYPE=CompleteWorkstation)]]/Publish Publish Event=Remove Value=CompleteWorkstation![CDATA[NOT(INSTALLTYPE=CompleteWorkstation)]]/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=LaunchApplicationWIXUI_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 =InstallFinalizeNOT Installed/Custom RemoveExistingProducts After
Re: [WiX-users] Feature selection and CustomAction commandline
I tried as you said Publish Property =SERVERVALUE Value=1INSTALLTYPE=CompleteServer/Publish Publish Property =SERVERVALUE Value=2INSTALLTYPE=CompleteDatabaseServer/Publish Publish Property =SERVERVALUE Value=3INSTALLTYPE=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=1INSTALLTYPE=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=CompleteDatabaseServer)]]/Publish Publish Event=AddLocal Value=CompleteWorkstation![CDATA[(INSTALLTYPE=CompleteWorkstation)]]/Publish Publish Event=Remove Value=CompleteWorkstation![CDATA[NOT(INSTALLTYPE=CompleteWorkstation)]]/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=LaunchApplicationWIXUI_EXITDIALOGOPTIONALCHECKBOX
Re: [WiX-users] Feature selection and CustomAction commandline
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=1INSTALLTYPE=CompleteServer/Publish Publish Property =SERVERVALUE Value=2INSTALLTYPE=CompleteDatabaseServer/Publish Publish Property =SERVERVALUE Value=3INSTALLTYPE=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=1INSTALLTYPE=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