Click here to Skip to main content
14,549,626 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: There are times when I hate updaters. Pin
phil.o12-Jan-20 23:45
mvephil.o12-Jan-20 23:45 
GeneralRe: There are times when I hate updaters. Pin
Mark_Wallace13-Jan-20 0:19
MemberMark_Wallace13-Jan-20 0:19 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen13-Jan-20 1:40
professionalEddy Vluggen13-Jan-20 1:40 
GeneralRe: There are times when I hate updaters. Pin
OriginalGriff13-Jan-20 1:52
mveOriginalGriff13-Jan-20 1:52 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen13-Jan-20 2:04
professionalEddy Vluggen13-Jan-20 2:04 
GeneralRe: There are times when I hate updaters. Pin
musefan13-Jan-20 2:47
Membermusefan13-Jan-20 2:47 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen13-Jan-20 4:46
professionalEddy Vluggen13-Jan-20 4:46 
GeneralRe: There are times when I hate updaters. Pin
Member 798912213-Jan-20 22:21
MemberMember 798912213-Jan-20 22:21 
Eddy Vluggen wrote:
If you want to write over a file, it cannot be in use. Not something new, is it?
40 years ago, when I was still a student, I learned about how computer controlled phone switches did updates by managing two parallell versions of a code module, both active. When the updated module is installed, all new connections use it, but already established connections continue to use the old version. As soon as the reference count for the old one drops to zero, it is released from memory.

For years I have been reading about the Windows facilites for marking a file for deletion at reboot (although I haven't actually made use of it myself). The file is no longer visible in the file system directories, but it remains available on disk for processes that have already opened it. This certainly has been available since the arrival of Windows 7, but I would guess that it came with XP (or that it has always been present in the NT family).

So you can certainly replace a file that is still in use. If you insist on using exactly the same physical disk pages, all the users of it must have opened the file in the proper mode, but you don't need that neither to delete a program system nor to update to a new version.
Eddy Vluggen wrote:
Sounds like it wasn't updating the UI for a bit.
Isn't that exactly the complaint? If the procedure doesn't care to make any update between 20% and 75% completion, it really needs no progress bar. A message "Operation started" says it all. I sometimes use that myself when the operation involves running software over which I have no control, but for an uninstall procedure, the software manufacturer certainly should kow what is to be done!

Even if you activate the uninstall from the running application, this may activate the uninstaller as a separate program, running as a detached process, and then terminate. If the uninstaller is set up to run from a paged image, it may delete both the application files and its own program file; the .exe needs not to be kept open if all code has been read in for paging. There are scores of uninstallers that do a complete uninstall, including deleting the uninstaller itself. If it happens, it must be possible.
Eddy Vluggen wrote:
If the blocks you move are of different sizes, then the speed will differ during the operation, meaning the average changes.
The uninstaller knows which files to delete, how many and their size. In any case it should start out with a rough idea of the performance you can expect from a typical disk, both in time to create / open / delete a file, read / write a megabyte etc. Maybe, if the uninstaller doesn't care to check if the disk it an old rotating one or a flash disk, the first estimate may be a little off, but simply looking at how long the first few operations took should quickly correct that first guess.

As the operation progresses, with the number of completed operations continously increasing, the estimates ought to be more and more stable, not jump all over the place. If you have deleted X files, releasing Y Mbytes of disk space, you should expect the next file delete to require 1/X as much fixed time plus Z/Y (with Z being the size of the file) in variable time. Of course you can add other factors into the calculation as well, but even a primitive fixedTime + volumeDependentTime estimate based on previous operations ought to give us far more stable progress bar progress than we see in most programs.
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen14-Jan-20 1:26
professionalEddy Vluggen14-Jan-20 1:26 
GeneralRe: There are times when I hate updaters. Pin
Member 798912214-Jan-20 3:02
MemberMember 798912214-Jan-20 3:02 
GeneralRe: There are times when I hate updaters. Pin
Eddy Vluggen14-Jan-20 3:10
professionalEddy Vluggen14-Jan-20 3:10 
GeneralRe: There are times when I hate updaters. Pin
dandy7213-Jan-20 3:59
Memberdandy7213-Jan-20 3:59 
GeneralRe: There are times when I hate updaters. Pin
Cp-Coder13-Jan-20 7:26
MemberCp-Coder13-Jan-20 7:26 
GeneralRe: There are times when I hate updaters. Pin
OriginalGriff13-Jan-20 8:07
mveOriginalGriff13-Jan-20 8:07 
GeneralFinally saw The Last Jedi... Pin
glennPattonWork12-Jan-20 22:47
professionalglennPattonWork12-Jan-20 22:47 
GeneralRe: Finally saw The Last Jedi... Pin
Johnny J.12-Jan-20 22:56
professionalJohnny J.12-Jan-20 22:56 
GeneralRe: Finally saw The Last Jedi... Pin
OriginalGriff12-Jan-20 23:01
mveOriginalGriff12-Jan-20 23:01 
GeneralRe: Finally saw The Last Jedi... Pin
glennPattonWork12-Jan-20 23:02
professionalglennPattonWork12-Jan-20 23:02 
GeneralRe: Finally saw The Last Jedi... Pin
OriginalGriff12-Jan-20 23:09
mveOriginalGriff12-Jan-20 23:09 
GeneralRe: Finally saw The Last Jedi... Pin
Johnny J.12-Jan-20 23:22
professionalJohnny J.12-Jan-20 23:22 
GeneralRe: Finally saw The Last Jedi... Pin
Mark_Wallace13-Jan-20 0:17
MemberMark_Wallace13-Jan-20 0:17 
GeneralRe: Finally saw The Last Jedi... Pin
Mark_Wallace13-Jan-20 0:20
MemberMark_Wallace13-Jan-20 0:20 
GeneralRe: Finally saw The Last Jedi... Pin
glennPattonWork12-Jan-20 23:01
professionalglennPattonWork12-Jan-20 23:01 
GeneralRe: Finally saw The Last Jedi... Pin
Richard Deeming13-Jan-20 8:18
mveRichard Deeming13-Jan-20 8:18 
GeneralRe: Finally saw The Last Jedi... Pin
glennPattonWork13-Jan-20 12:19
professionalglennPattonWork13-Jan-20 12:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.