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:
- double use of identfier (in case
install_de
) - wrong key name; not prefix
hkey_current_user
search path,root="hkcu"
takes care of it - missing "
!
", incdata
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
Post a Comment