installer - Property value set in WiX based on registry key value -


i want set install_de property value 1 if registry entry hkey_current_user\control panel\international\localename has value de-de.

i wrote below code.

<property id="install_de">     <registrysearch         id="netframework20"         root="hkcu"         key="hkey_current_user\control panel\international"         name="localename"         type="raw" /> </property>  <setproperty id="install_de" after="appsearch" value="1">     <[cdata[install_de="de-de"]]> </setproperty> 

how correct it?

following sample code close possible, see 3 problems:

  1. double use of identfier (in case install_de)
  2. wrong key name; not prefix hkey_current_user search path, root="hkcu" takes care of it
  3. missing "!", in cdata

write e.g.

<property id="local_name">     <registrysearch id="netframework20"             root="hkcu"             key="control panel\international"             name="localename"             type="raw" /> </property>  <setproperty id="install_de" after="appsearch" value="1">     <![cdata[local_name="de-de"]]> </setproperty> 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -