Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

change component destination on minor upgrade?

2 replies to this topic


  • Full Members
  • 8 posts

Posted 07 November 2012 - 11:29

Hi all,

I need to know if Windows installer allows changing a component's destination on minor upgrade (patch).
I am working with a basic MSI project.


Stefan Krueger

Stefan Krueger


  • Administrators
  • 13,269 posts

Posted 07 November 2012 - 12:22

From MSI help topic "Changing the Component Code":
Introduce a new component and assign it a unique component code when making any of the following changes:
A change in the name or target location of any file, registry key, shortcut, or other resource in the component.

Since you cannot change the ComponentCode in a minor update, you should use a Major Upgrade instead.

A potential workaround:
  • add a new component with the files in the new location
  • keep the old component in the setup, but set its component condition to 0 and revealuate condition = yes


  • Full Members
  • 8 posts

Posted 07 November 2012 - 12:34

Thanks a lot Stefan!!!

This means that after including a merge module and setting it's target path in Release,
I cannot change its target path in a minor upgrade for this relese ?!?

Thanks for your fast & helpful reply,

Edited by SHARONC, 07 November 2012 - 12:34.