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

javascript - IndexedDB error: Uncaught DataCloneError: Failed to execute 'put' on 'IDBObjectStore': An object could not be cloned -

amazon web services - When using Cognito credentials with AWS in a browser (javascript), keep getting "missing credentials" error -

c# - How to set the datatextfield value instead of the value on a drop down list? -