Reputation: 1597
I have an MSI package which installs many features that the user can select for installing in his computer. I also have an MSP patch package that updates some components and fixes some bugs in the application. I noticed that during the Patch installation, the property ADDLOCAL gets automatically set to a list containing all the features(during CostFinalize action).
I'd like to know why the "CostFinalize" action is setting ADDLOCAL property and why is it setting it with all the "absent" features.
My problem is that the Patch is installing EVERYTHING. I really can't find an explanation to this so any help will be greatly appreciated.
Edit: Link to same issue: here
Upvotes: 1
Views: 874
Reputation: 11868
You already tried to solve this problem. That time, you found out that REINSTALL
property holds the features which were installed by the user.
Then the simple trick of assigning this value to ADDLOCAL
should help:
<CustomAction Id="CopyReinstallToADDLOCAL"
Property="ADDLOCAL" Value="[REINSTALL]"
/>
<InstallExecuteSequence>
<Custom Action="RCopyReinstallToADDLOCAL" Before="CostFinalize">
<![CDATA[PATCH]]>
</Custom>
</InstallExecuteSequence>
Upvotes: 1