wix - Configure via msi -


i have wix script can create regitry value if specified during execution:

"msiexec /i my.msi myprop=value"

script:

      <component id='registryconfigserver' win64='$(var.def_component_win64)' permanent="yes" >         <condition>myprop</condition>         <registrykey root='hklm' key='software\$(var.def_manufacturername)' forcecreateoninstall='yes' forcedeleteonuninstall='no' >           <registrykey key='$(var.def_productname)' forcecreateoninstall='yes' forcedeleteonuninstall='no' >                     <registryvalue type="string"  name='server' value="[myprop]" />           </registrykey>         </registrykey>       </component> 

it works. if run first: "msiexec /i my.msi" , after "msiexec /i my.msi myprop=value" - registry key not created! why? can change behavior create key?

your component installed , it's state won't reevaluate.

if need reevaluate component state, should mark component transitive.

but there side effect: if you'll start "msiexec /i my.msi myprop=value" @ first , after "msiexec /i my.msi" - component removed.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -