wix guid using rules -


for example have:

    <component id='mainexecutable' guid='0436e0ca-8612-4330-a70d-642910d9f19a'>       <file id='foobarexe' name='foobarappl10.exe' diskid='1' source='foobarappl10.exe' keypath='yes'>       </file>     </component> 

if create update package should use same guid component include foobarexe? know rule product, upgradecode etc rule other guids? scope?

the component id versioning rules tricky. have found real explanation in old books (german only). depending on update creating several rules apply.

  • update

update (only patch or add files, no remove or relocation allowed) component id has stay same.

  • minor upgrade (product code remains stable) update rules relaxed. stay clear should stick update or major upgrade easier reason about. rules when product code must changed described here.

  • major upgrade uninstall (the msi action removeexistingproducts called) , reinstall. there have full freedom.

it advice put every file, registry key, environment variable separate component since many of pitfalls arise fact cannot remove files component during minor upgrade. tricks can remove entire component.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -