Hi John,

Thank you for all your information. I have to allow for downgrades so I am
now removing the file if it exists and then installing the new one
regardless of versioning, etc. Thank you again

Kind Regards,

Natalie Carr

-----Original Message-----
From: John Ludlow [mailto:john.ludlow...@gmail.com] 
Sent: Friday, January 18, 2013 12:30 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Installing files that already exist on target
machine

The first thing you need to do is read these two topics:

 * Aaron Stebner on file replacement :
http://blogs.msdn.com/b/astebner/archive/2005/08/30/458295.aspx
 * MSDN docs: http://msdn.microsoft.com/en-us/library/aa368267(v=vs.85).aspx

If the files in question are versioned files (dlls and exes) then as long as
the version numbers increase then by default will be replaced based on a
highest-version-wins bases.  This helps insure that you don't damage the
system by installing an older version.

If the files are unversioned, then the creation time and modification time
are compared, and if they are different then the file has been edited since
installation (as those two dates are synced up at installation time) and the
file is considered user data which is not safe to overwrite (the user may
have changed some settings which they want to keep, etc).

You'll have to consider whether those rules are sufficient for your needs.
If not, then you will need to look into the REINSTALLMODE
(http://msdn.microsoft.com/en-gb/library/windows/desktop/aa371182(v=vs.85).a
spx)
property, possibly setting it to "amus" (which means replace all files
regardless of versions or dates, and is generally not recommended).

On 18 January 2013 12:06, Natalie Carr <natalie.c...@measuresoft.com> wrote:
> Hi,
>
>
>
> My setup currently installs hundreds of files but some of these files 
> may already exist on the target machine, is there any way to ensure 
> all of my files get installed even if they already exist?
>
>
>
> Kind Regards,
>
>
>
> Natalie Carr
>
>
>
>
>
> ----------------------------------------------------------------------
> -------- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API 
> and much more. Get web development skills now with LearnDevNow -
> 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
> SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122812
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

----------------------------------------------------------------------------
--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more.
Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to