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.
Photo

change component destination on minor upgrade?


2 replies to this topic

SHARONC

SHARONC
  • 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.

Thanks!!!!

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 07 November 2012 - 12:22

From MSI help topic "Changing the Component Code":
QUOTE
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


SHARONC

SHARONC
  • 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,
Sharon.

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