Wix Toolset - Is there a way to validate silent install property values -


what i'd validate property values entered on msiexec /qn calls.

as example, our runtime sql server database authentication, need offer windows authentication , sql user authentication. represent these radiobuttongroup on ui dialog window. default value, "rt_db_logon_type" property, going through ui "sqlauth".

for silent installs, i'd to:

1) set default value of "rt_db_logon_type" property "sqlauth", if user enters no value "rt_db_logon_type" property on silent install command line.

2) check launch condition fail if value of "rt_db_logon_type" property set other "sqlauth or "winauth" (case insensitive).

my code (located in equivalent of product.wxs file):

<setproperty id="rt_db_logon_type" value="sqlauth" before="launchconditions" sequence="both">not rt_db_logon_type</setproperty> <condition message="!(loc.rt_db_logon_type_messg)">rt_db_logon_type ~= "sqlauth" or rt_db_logon_type ~= "winauth"</condition> 

when building wix msi package following error:

[exec] d:\stuff\scripts\testng\installation\wix_installer\dialogs\tenantdbconnectdlg.wxs(23) : error lght0094 : unresolved reference symbol 'property:rt_db_logon_type' in section 'fragment:'.

is there way type of validation in wix?

looks solved own question; @ least wix radiobuttongroup elements.

in product.wxs equivalent file, add these 2 lines

<property id="rt_db_logon_type" value="sqlauth" /> <condition message="!(loc.rt_db_logon_type_messg)">rt_db_logon_type ~= "sqlauth" or rt_db_logon_type ~= "winauth"</condition> 

in log file, works i'd like. rt_db_logon_type:

1) gets set value in property element 2) gets overridden value entered on command line (e.g. rt_db_logon_type= foo 3) gets evaluated in launch condition, captured in log file.

note: found no visual clues failure outside of log file.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -