[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Windows restart ?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 16 Feb 2010 12:29:48 +0100

On Tue, Feb 16, 2010 at 11:26, Jens Geyer <jgx_at_vsx.net> wrote:
>> After installing a new version I always read: "... restart Windows...
> "
>
> It depends. Loaded modules and open files cannot be replaced, which is
> the main reason for the restart request.

Nope. As of XP, files in use can be replaced by msi. The problem is
that there still are apps in memory that have the old dlls loaded, and
that can conflict with new apps that will load the new dll.
And of course a slight change in the communication protocol between
the shell dll and the cache process would crash either of them if
they're not the same version.

>
>> Doesn't it be enough just to restart Windows Explorer (e.g. by closing
> a
>> running Windows Explorer instance from Task-Manager)?
>
> Not necessarily (see above) but starting with Windows Vista the Windows
> Installer may close and reopen restart-aware applications automatically.
> The conclusion is, that this does not work with all apps as expected,
> unless their developers have made them "restart manager aware".
>
> The point where I'm not really sure is the question, whether or not the
> installer package needs some special setting to make this work, or if it
> works out of the box. MSDN should know that, somewhere.

It *should* work, but it doesn't.
Msi doesn't recognize apps that have files open if they're not shown
in the taskbar. For example, apps that only reside in the system tray
or services are completely ignored by msi.
And since the desktop process also doesn't show up on the taskbar, msi
won't recognize it as having the dll loaded and in use.

> The other conclusion is, that this will not be the solution for Windows
> XP and earlier, just because it's not supported there. Then the
> suggested "killing" of the explorer process and restarting it manually
> might work instead - or not.

As I said: it's not enough to restart explorer - other apps can load
the dlls too.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2448024
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-02-16 12:30:15 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.