[wix-users] Adding file to the install package

Edwin Castro egcastr at gmail.com
Tue Aug 7 09:28:18 PDT 2018


So you usually want to overwrite unversioned files that were modified by a
user guaranteeing you will lose their modifications? That seems bad to me.

The Windows Installer knows that the proper way to update a modified,
unversioned file is to perform some kind of migration process on the file
and, by definition, such a process would need to be a custom action or
should be performed by the application itself.

The Windows Installer will overwrite unversioned files that have not been
modified which is what you do want for sure.

--
Edwin G. Castro


On Tue, Aug 7, 2018 at 9:00 AM, Walter Dexter via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> In my experience is thats only good advice for versioned resources. If
> it’s a bunch of text files, Windows Installer will refuse to overwrite
> modified files which is the opposite of what I usually want.
>
> > On Aug 6, 2018, at 8:49 AM, Elena Aralla via wix-users <
> wix-users at lists.wixtoolset.org> wrote:
> >
> > Hi,
> >
> > in the WIX documentation I find written:
> >
> > "In general, you should restrict yourself to a single file per
> component. The Windows Installer is designed to support thousands of
> components in a single installer, so unless you have a very good reason,
> keep to one file per component. Every component must have its own unique
> GUID. Failure to follow these two basic rules can lead to many problems
> down the road when it comes to servicing."
> >
> > Why?
> > Can someone explain me well why for every file that I add to the setup,
> it must be inserted in a component, with its own guid?
> >
> > Why can not I put files of the same type in a single component?
> >
> > Thanks so much!
> >
> >
> > ____________________________________________________________________
> > 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