Update fails if files have been modified

9 messages Options
Embed this post
Permalink
Thomas Singer-8

Update fails if files have been modified

Reply Threaded More More options
Print post
Permalink
We are using Wix to install our (Java) application. Updating works fine,
even launched application (and service) are handled gracefully.

For providing users who report bugs a very quick bug-fix build we offer a
plain zip file containing just the replaced few binary (.jar) files which
they can replace themself in the installed application (we don't want to
create a separate installer for several reasons). Unfortunately, if such
binaries are replaced, the official next update Wix-based release (full
bundle which will not require a previous installation) will NOT replace them
with the new files. It looks like Wix automatically detects that the files
were changed (by content or file time?) and then rejects to remove them when
updating or uninstalling.

What is the easiest way to tell Wix to uninstall/update the replaced files, too?

Thanks in advance,
Tom

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Kelly Leahy-2

Re: Update fails if files have been modified

Reply Threaded More More options
Print post
Permalink
This isn't a WiX problem.  It's MSI, and there's nothing you can really do
about it in the setup authoring, as far as I know.  The only way I'm aware
of to change it is to use MSIEXEC command line parameters to tell MSI to
overwrite changed files.

You should really look into using patches or MSI-supported techniques for
these "quick fixes".

Kelly




Thomas Singer <[hidden email]>

11/04/2009 10:18 AM
Please respond to
"General discussion for Windows Installer XML toolset."
<[hidden email]>


To
[hidden email]
cc

Subject
[WiX-users] Update fails if files have been modified






We are using Wix to install our (Java) application. Updating works fine,
even launched application (and service) are handled gracefully.

For providing users who report bugs a very quick bug-fix build we offer a
plain zip file containing just the replaced few binary (.jar) files which
they can replace themself in the installed application (we don't want to
create a separate installer for several reasons). Unfortunately, if such
binaries are replaced, the official next update Wix-based release (full
bundle which will not require a previous installation) will NOT replace
them
with the new files. It looks like Wix automatically detects that the files
were changed (by content or file time?) and then rejects to remove them
when
updating or uninstalling.

What is the easiest way to tell Wix to uninstall/update the replaced
files, too?

Thanks in advance,
Tom

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users




**************************************************************************************
This communication is intended solely for the addressee and is
confidential. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. Unless indicated
to the contrary: it does not constitute professional advice or opinions
upon which reliance may be made by the addressee or any other party,
and it should be considered to be a work in progress. Unless otherwise
noted in this email or its attachments, this communication does not form
a Statement of Actuarial Opinion under American Academy of Actuaries guidelines.
**************************************************************************************
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Chad Petersen

Re: Update fails if files have been modified

Reply Threaded More More options
Print post
Permalink
In reply to this post by Thomas Singer-8
Take a look at the <RemoveFile> element. It will get rid of existing
files before the new files are copied in to place. Might help in this
situation.

Chad

-----Original Message-----
From: Thomas Singer [mailto:[hidden email]]
Sent: Wednesday, November 04, 2009 10:13 AM
To: [hidden email]
Subject: [WiX-users] Update fails if files have been modified

We are using Wix to install our (Java) application. Updating works fine,
even launched application (and service) are handled gracefully.

For providing users who report bugs a very quick bug-fix build we offer
a
plain zip file containing just the replaced few binary (.jar) files
which
they can replace themself in the installed application (we don't want to
create a separate installer for several reasons). Unfortunately, if such
binaries are replaced, the official next update Wix-based release (full
bundle which will not require a previous installation) will NOT replace
them
with the new files. It looks like Wix automatically detects that the
files
were changed (by content or file time?) and then rejects to remove them
when
updating or uninstalling.

What is the easiest way to tell Wix to uninstall/update the replaced
files, too?

Thanks in advance,
Tom

------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
trial. Simplify your report design, integration and deployment - and
focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Blair-2

Re: Update fails if files have been modified

Reply Threaded More More options
Print post
Permalink
In reply to this post by Thomas Singer-8
Look on MSDN for the REINSTALLMODE property to get you out of your breaking
your own component rules.

Also, best practice is to create an MSP for replacing a few jar files, not a
ZIP, since the band-aid of REINSTALLMODE can bite you (it is not granular
and cannot be made such).

-----Original Message-----
From: Thomas Singer [mailto:[hidden email]]
Sent: Wednesday, November 04, 2009 10:13 AM
To: [hidden email]
Subject: [WiX-users] Update fails if files have been modified

We are using Wix to install our (Java) application. Updating works fine,
even launched application (and service) are handled gracefully.

For providing users who report bugs a very quick bug-fix build we offer a
plain zip file containing just the replaced few binary (.jar) files which
they can replace themself in the installed application (we don't want to
create a separate installer for several reasons). Unfortunately, if such
binaries are replaced, the official next update Wix-based release (full
bundle which will not require a previous installation) will NOT replace them
with the new files. It looks like Wix automatically detects that the files
were changed (by content or file time?) and then rejects to remove them when
updating or uninstalling.

What is the easiest way to tell Wix to uninstall/update the replaced files,
too?

Thanks in advance,
Tom

----------------------------------------------------------------------------
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Thomas Singer-8

Re: Update fails if files have been modified

Reply Threaded More More options
Print post
Permalink
In reply to this post by Thomas Singer-8
Thanks for your feed-back. I've tried to reproduce the problem today on our
up-to-date but clean W2k and WinXPPro test systems, but installing the
update correctly replaces the manually replaced files as expected. Before
changing something in our installer, I need to have some kind of procedure
to verify whether my change did the right thing.

What could be the reason why it works for me and fails for some customers?

Thanks in advance,
Tom

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Rob Mensching-7

Re: Update fails if files have been modified

Reply Threaded More More options
Print post
Permalink
You might read through the File Versioning topic in the MSI SDK. It talks
about all the rules. They aren't completely simple.

On Thu, Nov 5, 2009 at 7:29 AM, Thomas Singer <[hidden email]> wrote:

> Thanks for your feed-back. I've tried to reproduce the problem today on our
> up-to-date but clean W2k and WinXPPro test systems, but installing the
> update correctly replaces the manually replaced files as expected. Before
> changing something in our installer, I need to have some kind of procedure
> to verify whether my change did the right thing.
>
> What could be the reason why it works for me and fails for some customers?
>
> Thanks in advance,
> Tom
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


--
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Thomas Singer-8

Re: Update fails if files have been modified

Reply Threaded More More options
Print post
Permalink
Thanks for the hint to the File Versioning Rules:

 http://msdn.microsoft.com/en-us/library/aa368599(VS.85).aspx

Do I understand it correctly, that file versions and languages solely apply
to .exe/.dll or similar files, but not to, for example, .jar files which are
nothing else than .zip files? Then the following paragraph should explain my
situation well:

| Nonversioned Files are User Data—If the Modified date is later than the
| Create date for the file on the computer, do not install the file because
| user customizations would be deleted. If the Modified and Create dates
| are the same, install the file. If the Create date is later than the
| Modified date, the file is considered unmodified, install the file.

Tom


Rob Mensching wrote:
> You might read through the File Versioning topic in the MSI SDK. It talks
>  about all the rules. They aren't completely simple.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Thomas Singer-8

Re: Update fails if files have been modified

Reply Threaded More More options
Print post
Permalink
According to my understanding, I've tried to summarize all information and
the solution in our blog:

 http://blog.syntevo.net/2009/11/08/1257709020000.html

If something is wrong, please let me know. Thanks in advance.

Tom


Thomas Singer wrote:

> Thanks for the hint to the File Versioning Rules:
>
>  http://msdn.microsoft.com/en-us/library/aa368599(VS.85).aspx
>
> Do I understand it correctly, that file versions and languages solely apply
> to .exe/.dll or similar files, but not to, for example, .jar files which are
> nothing else than .zip files? Then the following paragraph should explain my
> situation well:
>
> | Nonversioned Files are User Data—If the Modified date is later than the
> | Create date for the file on the computer, do not install the file because
> | user customizations would be deleted. If the Modified and Create dates
> | are the same, install the file. If the Create date is later than the
> | Modified date, the file is considered unmodified, install the file.
>
> Tom
>
>
> Rob Mensching wrote:
>> You might read through the File Versioning topic in the MSI SDK. It talks
>>  about all the rules. They aren't completely simple.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Rob Mensching-7

Re: Update fails if files have been modified

Reply Threaded More More options
Print post
Permalink
That sounds like the correct part of the File Versioning rules. Read the
blog entry and really the "correct" way to update files installed by the
Windows Installer is to use the Windows Installer to update them. However,
since you are dealing with unversioned files your work around will probably
be fine.

On Sun, Nov 8, 2009 at 12:27 PM, Thomas Singer <[hidden email]> wrote:

> According to my understanding, I've tried to summarize all information and
> the solution in our blog:
>
>  http://blog.syntevo.net/2009/11/08/1257709020000.html
>
> If something is wrong, please let me know. Thanks in advance.
>
> Tom
>
>
> Thomas Singer wrote:
> > Thanks for the hint to the File Versioning Rules:
> >
> >  http://msdn.microsoft.com/en-us/library/aa368599(VS.85).aspx<http://msdn.microsoft.com/en-us/library/aa368599%28VS.85%29.aspx>
> >
> > Do I understand it correctly, that file versions and languages solely
> apply
> > to .exe/.dll or similar files, but not to, for example, .jar files which
> are
> > nothing else than .zip files? Then the following paragraph should explain
> my
> > situation well:
> >
> > | Nonversioned Files are User Data—If the Modified date is later than the
> > | Create date for the file on the computer, do not install the file
> because
> > | user customizations would be deleted. If the Modified and Create dates
> > | are the same, install the file. If the Create date is later than the
> > | Modified date, the file is considered unmodified, install the file.
> >
> > Tom
> >
> >
> > Rob Mensching wrote:
> >> You might read through the File Versioning topic in the MSI SDK. It
> talks
> >>  about all the rules. They aren't completely simple.
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



--
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users