[wix-users] Force Update of Specific File(s) During Major Upgrade

Brian Enderle brianke at gmail.com
Wed Mar 8 09:17:51 PST 2017


Thank you.

Should the "On" be set to both so this file is also deleted upon
uninstall?  Not sure if setting On overrides some default behavior of the
installer during uninstall.

Brian

If you can't explain it simply, you don't understand it well enough.  -
Albert Einstein

On Wed, Mar 8, 2017 at 9:58 AM, Phill Hogland <phill.hogland at rimage.com>
wrote:

> >>Is there a way to force an update (thinking of opposite of NeverOverwrite
> on the Component)?
>
>
> add this to the Component which installs the file:
>
> <RemoveFile Id="remove_theFile" Name="theFile.ext" On="install" />
>
>
>
> ________________________________
> From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of
> Brian Enderle <brianke at gmail.com>
> Sent: Wednesday, March 8, 2017 7:51:17 AM
> To: WiX Users
> Subject: [wix-users] Force Update of Specific File(s) During Major Upgrade
>
> I have a scenario where during a Major upgrade I want to maintain some
> config file that were modified by the user but not others.  This product
> relies on up to date tax codes so those config files should be updated no
> matter what during a major upgrade.  Other files, like database settings,
> should not be updated.
>
> I am using the Schedule = "afterInstallExecute" which correctly maintains
> the files that should not be updated (db configs), but is not updating the
> files that should be updated (tax configs).
>
> Is there a way to force an update (thinking of opposite of NeverOverwrite
> on the Component)?
>
> Alternatively, I do have a CA that runs before CostFinalize.  If I delete
> the files that must be updated at that point would that solve the issue
> without causing some other issue(s)?
>
> The CA makes a backup of the existing config files in case there is an
> issue during install so I would not lose anything if I deleted the files at
> that point.
>
> Thanks,
>
> Brian
>
> If you can't explain it simply, you don't understand it well enough.  -
> Albert Einstein
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-users mailing list