Live data from Hacker News

Microsoft suggests command line fiddling to get Windows 10 update installed

theregister.com

111–120 of 223 posts

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#111

Glad to see that Microsoft is making Windows more and more similar to Linux by every passing day :)

You mean 90's Linux?

Yeah, in OpenSUSE I'd just rollback a bad update like this. Automatic snapshotting before and after all package manager operations is very nice.

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#112

Earlier quoted context omitted.

You mean 90's Linux?

Are you claiming that using Linux in 2023 will not pretty much require "command line fiddling" to some unavoidable degree (unless you have somebody else do the setup for you and day to day just use what's there)? Because, if so, that would very much not be my experience. Broadly speaking, what advancements am I likely missing out on?

Depends on distro and usage, but once installed Linux does not need command line fiddling. There are GUIs for installing and updating the OS and applications and pretty much everything else an average user does.

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#113

"These instructions are not for the faint of heart. The first link requires the user to open a command prompt window with administrative privileges. It's downhill from there ..."

sudo cmd.e×e | /bin/exorcise

(edit: the actual extension triggered HN's blocker..)

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#114

Earlier quoted context omitted.

Oh you definitely apply the same attitude to happy path at the end after scrutinizing the exception/error path options.

> This is why I am extra vigilant, pendantic and strict when writing or reviewing code that handles exception and error paths. I realize that this is a different person from you, but that's the attitude I am replying to.

Perhaps the implication is not

"extra vigilant ... [compared to my level of vigilance on the happy path]",

but rather

"extra vigilant ... [compared to other people I work or have worked with]"

The latter is how I read it, because I have definitely worked on teams where the happy path was heavily scrutinised, but error handling was treated as an afterthought, and rarely inspected too closely, leading to anything from error strings copied from another part of the application with names not updated to match the new location to throwing XException but only handling YException, so the XException bubbles up to a much less useful handler.

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#115
post #55
post #30

Earlier quoted context omitted.

Yeah, this isn't Linux. Linux is better than this these days.

I use Linux. You absolutely need to drop down to the command line at times. Upgrading my Kennel, or Graphics driver breaks something like 20% of the time for me.

nVidia, I would guess?

I realise it doesn't help now, but in the future you may want to avoid hardware that's specifically hostile to Linux.

there's a reason I chose my latest laptop specifically because it was Ryzen.

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#116

FTA: "Showing an unhelpful error message and then requiring a user to delve into the world of the command line to fix things. What is this? Linux?" What did the author want, a button to push for each solution to every possible exotic error, even critical ones that would require to resize a system partition from a running OS? Seriously!? Of course one solve this through the command line. Or, if that wasn't what the au…

Its typical flamebait The Register is very fond of. I have seen entirely unnecessary references to everything from Brexit to religion on The Register.

it works too. Lots of comments both on their own site and here purely in response to mentioning Linux in the subheading.

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#118
post #7

When installing the update, some users are finding themselves faced with an 0x80070643 error, a generic failure message. Unfortunately, according to Microsoft, "because of an error in the error code handling routine," this might not be the correct error. Error in the error code code is giving the wrong error code for the error. I'm curious how often the error code code needs touching that there is an error in there t…

This is how I imagine the error code looks. How else can you even return the wrong error? ```c# public class FooError { public Message(){ //TODO: I copy pasted this from somewhere else. I still need to update to a meaningful message return "this is a BarError" } } ```

The code which outputs the error message is probably getting it from GetLastError() or similar (the Windows equivalent to POSIX's errno). But meanwhile, some error handling code has called some library functions (probably to restore the system to a sane state), and one of these library functions accidentally overwrote the global per-thread "last error" variable. That is, the error in the error handling routine would simply be a lack of doing a "saved = GetLastError()" at the start and then a "SetLastError(saved)" at the end.

This kind of mistake is very common when dealing with GetLastError() or errno, since most library functions you might call while handling an error do not overwrite these values... until something in one of them fails (sometimes even a non-fatal error which is handled internally by them) and overwrites that per-thread variable.

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#119
post #58
post #14

I've followed the instructions and understand that they may seem overwhelming for some users. Instead of using command line methods, I opted for Windows Disk Management to shrink the drive's partitions and create the necessary space. It's surprising that a script hasn't been provided for this process, which suggests the complexity and potential pitfalls involved. This leads me to believe that the absence of a scripte…

I'd expect that "automatic disk and partition changes" have a rather high risk of severe data-loss.

It has, especially for non technical users who cannot double check the "automatic" parameters of the change

Re: Microsoft suggests command line fiddling to get Windows 10 update installed

#120

Earlier quoted context omitted.

Hey! Some of us still use Linux the old "hacker command line" way

It doesn't mean that you have to.

It's hard to avoid. I know I can open the GUI file manager to look at a directory, and sometimes I try to force myself to do that, but way too often I quickly open a terminal and type a "ls" command. It's just what I got used to when I first started using computers back in the 1990s, and habits can be hard to break.
Post reply on HN