Author Topic: Program update with no restart required?  (Read 3674 times)

0 Members and 1 Guest are viewing this topic.

Offline RejZoR

  • Polymorphic Sheep
  • Serious Graphoman
  • *****
  • Posts: 9406
  • We are supersheep, resistance is futile!
    • RejZoR's Flock of Sheep
Program update with no restart required?
« on: April 08, 2004, 07:07:13 PM »
Is it possible to make avast! program update painless as much as possible... I have restart option in mind...

If you turn off all processes and stop services,than you can update without restart i guess. This would be very cool feature,since restarting takes time... Or are there other low level components that can be updated only by restarting machine?

Thx for info :)
Visit my webpage Angry Sheep Blog

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11849
    • AVAST Software
Re:Program update with no restart required?
« Reply #1 on: April 08, 2004, 08:06:58 PM »
That's my wish, too.
Unfortunatelly, it's quite a problem I'm afraid. Some parts are hard to unload... drivers, Script Blocker (having DLLs shared through all the processes).... It would certainly be nice, but I'm not very optimistic.

kubecj

  • Guest
Re:Program update with no restart required?
« Reply #2 on: April 08, 2004, 08:29:11 PM »
drivers are AFAIK unloadable - so not 'hard' but impossible to unload.
also every dll which acts as a hook is loaded in every process' address space, also unloadable.

Shell extensions would require Explorer restart.
What about Outlook plugin? Should we simply close Outlook under your hands writing the mail?  ;)

etc.

Reboot method is the only safe one in the Windows world.

Offline pk

  • Avast team
  • Super Poster
  • *
  • Posts: 2078
Re:Program update with no restart required?
« Reply #3 on: April 08, 2004, 09:27:24 PM »
It's not impossible to unload the driver, but it's not always safe - IO Manager does not keep track of what file operations might be pending inside a given file system stack. It's possible to wait approx. 5sec in unload fn during its unloading and reloading - and it would work in most cases; but stability is more important then your slow restart :P. In fact, avast 4.5 - as vlk announced today - will have 100%-ly unloadable driver for WinXP (later for Win2k) users; other problems with script blocker, OE plugin, ... remain.
« Last Edit: April 08, 2004, 09:31:15 PM by pk »

Offline Vlk

  • Avast CEO
  • Serious Graphoman
  • *
  • Posts: 11658
  • Please don't send me IM's. Email only. Thx.
    • ALWIL Software
Re:Program update with no restart required?
« Reply #4 on: April 08, 2004, 09:49:10 PM »
Reboot issues are only solvable by having fixed stubs that provide the load/unload capability for the real modules.
If at first you don't succeed, then skydiving's not for you.