POV-Ray : Newsgroups : povray.off-topic : An annoying thing in Windows (which mostly doesn't happen in Linux) Server Time
5 Sep 2024 13:15:16 EDT (-0400)
  An annoying thing in Windows (which mostly doesn't happen in Linux) (Message 31 to 40 of 78)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 20 Sep 2009 13:06:05
Message: <4ab660fd$1@news.povray.org>
Orchid XP v8 wrote:
> remove this cache...

I've found that almost everyone stores junk with either the word "temp" in 
it or the word "cache" in it, so it's actually not too hard to do a scan and 
find most of the places accumulating cruft.

> The really fun thing is that you can't edit a user's registry chunk 
> without loading it first...

But not as the user.

-- 
   Darren New, San Diego CA, USA (PST)
   I ordered stamps from Zazzle that read "Place Stamp Here".


Post a reply to this message

From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 20 Sep 2009 13:08:18
Message: <4ab66182$1@news.povray.org>
clipka wrote:
> You could generate a registry patch (I think .reg is the extension) that 
> would be written to the HKCU tree, and somehow make sure that thing 
> executed next time the user logs in.

You have to load the hive. You don't have to load the hive under HKCU.

> (The only thing which is a real nuisance there is that this doesn't 
> allow you to /delete/ registry keys.)

Yes you can.

[HKEY_LOCAL_MACHINE\SOFTWARE\Blah\Blah\Blah]
"DeleteThisKey"=-

[-HKEY_LOCAL_MACHINE\SOFTWARE\Blah\Blah\Blah]

-- 
   Darren New, San Diego CA, USA (PST)
   I ordered stamps from Zazzle that read "Place Stamp Here".


Post a reply to this message

From: Fredrik Eriksson
Subject: Re: An annoying thing in Windows (which mostly doesn't happeninLinux)
Date: 20 Sep 2009 13:09:39
Message: <op.u0kfadl67bxctx@e6600>
On Sun, 20 Sep 2009 18:59:07 +0200, clipka <ano### [at] anonymousorg> wrote:
> Experience.
>
> Name any syntax in a .reg file that will make a registry key /disappear/  
> when that .reg file is executed.
>
> (And I'm not talking about setting it to zero or an empty string or some  
> such, I mean really /eliminating/ it.)

http://support.microsoft.com/kb/310516

Scroll down to "Deleting Registry Keys and Values".



-- 
FE


Post a reply to this message

From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 20 Sep 2009 13:09:58
Message: <4ab661e6$1@news.povray.org>
clipka wrote:
> BTW, does Linux provide such a feature as well? If so, where does the 
> "use count" live there?

Each package manager has its own way of dealing with such things. In the PM, 
it's somewhere in the mess of stuff stored under /var

I.e., it's handled by the package manager, not by install scripts and so on, 
so if you compile and install from source, it's not going to bump the use 
count on your libraries.

-- 
   Darren New, San Diego CA, USA (PST)
   I ordered stamps from Zazzle that read "Place Stamp Here".


Post a reply to this message

From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 20 Sep 2009 13:13:53
Message: <4ab662d1$1@news.povray.org>
Orchid XP v8 wrote:
> Darren New wrote:
> 
>> Now I have a bat file that deletes all the crap I can find I run 
>> before backups.
> 
> I had that.
> 
> Then I discovered that it can't delete the IE web cache. (Due to some 
> kind of weirdness with it being system and hidden or something like 
> that.)

Well, you do have to turn that off. "attrib -h -s junkdir /s"

> So I switched to a Tcl script. 

That was the first one. Now I'm more lazy. :-)

> Even built a little Tk GUI for it, 
> so you can see how much longer it's going to take. (Deleting 0.8GB of 
> web cache takes a while...)

You can do this with "disk cleanup" tho.

> And then HQ IT decided that roaming profiles were too efficient, and 
> disabled them. Now every...single...time...I set up a new PC, I have a 
> stream of people asking me to come over and configure their email 
> settings. And people whining that they have to adjust their Word 
> settings manually for every PC they use. *sigh*

Sounds like you need to point out to your boss that machine inefficiencies 
are designed to reduce human inefficiencies.  Here's an example where you 
have people on your side - everyone actually working there hates the change, 
so you can tell them "I won't be able to get to fixing the problem for three 
hours. In the meantime, tell your boss you need roaming profiles."

Damn, you need a new job.

-- 
   Darren New, San Diego CA, USA (PST)
   I ordered stamps from Zazzle that read "Place Stamp Here".


Post a reply to this message

From: clipka
Subject: Re: An annoying thing in Windows (which mostly doesn't happeninLinux)
Date: 20 Sep 2009 13:16:21
Message: <4ab66365@news.povray.org>
Fredrik Eriksson schrieb:
> http://support.microsoft.com/kb/310516
> 
> Scroll down to "Deleting Registry Keys and Values".

Ah, that's definitely news to me. So either they must have changed it 
since I looked last, or it wasn't documented back then. I must confess 
that it was quite a while ago.


Post a reply to this message

From: clipka
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 20 Sep 2009 13:21:59
Message: <4ab664b7@news.povray.org>
Darren New schrieb:
> 
> I.e., it's handled by the package manager, not by install scripts and so 
> on, so if you compile and install from source, it's not going to bump 
> the use count on your libraries.

That's what I wanted to know - thanks.

So, Windows is actually a lot better at this... /theoretically/.


Post a reply to this message

From: nemesis
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 20 Sep 2009 13:25:14
Message: <4ab6657a@news.povray.org>
clipka wrote:
> nemesis schrieb:
>> Non-package-managed software installed by hand is of no concern to the 
>> package manager.  It will uninstall swiftly.
>>
>> I'm used to compile up-to-date libs required by some hand-compiled 
>> up-to-date software and install it to my ~/lib.  It's only annoying to 
>> do the usual "LD_LIBRARY_PATH=~/lib foo" everytime, but, hey!, that's 
>> why bash history is for. :)
> 
> I have no idea what you're talking about here, nor do I know whether you 
> understood my point.
> 
> What I mean is this: Suppose I install a package-managed piece of 
> software (let's name it "FooPNG" for now) that needs the libpng package. 
> Of couse the package manager will recognize, and ask me whether I want 
> to install the package as well. (Sure I do, yes please, go ahead.)
> 
> Now I compile this strange piece of software called POV-Ray, which 
> obviously isn't package managed. But it needs the libpng nonetheless. No 
> problem here, as the libpng is already there, so it compiles (and 
> installs) fine.
> 
> Now I decide to uninstall FooPNG.
> 
> Will the package manager uninstall libpng as well, figuring that only 
> FooPNG should rely on it? Will it leave libpng alone, figuring it 
> /might/ be used by /some/ other app? Or will it actually have any way of 
> /knowing/ that POV-Ray relies on it?
> 
> (I really don't care whether the package manager will uninstall 
> /swiftly/ or /slowly/, I care /what/ it uninstalls :-))

I understood your point.  Hand-compiled and installed povray or any 
other is of no concern to the package manager.  Thus, it'll uninstall 
libpng without caring if hand-compiled povray uses it or not.  It 
doesn't even know hand-compiled povray exists.  Nor should it.

In any case, povray 3.6 is featured as part of the Ubuntu multiverse 
repositories... :)


Post a reply to this message

From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 20 Sep 2009 13:40:17
Message: <4ab66901@news.povray.org>
clipka wrote:
> Darren New schrieb:
>>
>> I.e., it's handled by the package manager, not by install scripts and 
>> so on, so if you compile and install from source, it's not going to 
>> bump the use count on your libraries.
> 
> That's what I wanted to know - thanks.
> 
> So, Windows is actually a lot better at this... /theoretically/.

I wouldn't say that. It's just that the installer for WIndows comes with the 
program. If I compile something from scratch on Windows and it uses some 
DLL, I'm not going to be able to ensure that DLL doesn't get deleted out of 
the system either.

It's still the "package manager" part of Windows handling it. It's just that 
Windows installers talk to the package manager as they run.  (And indeed, 
the whole "MSI" bit is making software more into Linux-style packages.)

I think the real difference is that there are relatively few DLLs that are 
shared amongst multiple programs from multiple companies but not part of the 
system. I.e., most programs that need graphics stuff either puts libpng.dll 
into the application's directory or it uses the graphics libraries that 
already come with Windows. Linux apps tend to have a lot more references to 
"random" underlying libraries that aren't officially part of "Linux" as 
such.  Windows uses "components" for the bits that are shared, and those are 
in the registry and thus tracked the way they're supposed to be. The places 
where you have lots of common functionality (e.g., Office), you have a 
"common files" directory, and your installer is set up to deal with the 
stuff in there appropriately. (I.e., there's a lot of help from Windows 
installers for shared but not universal functionality, in part because the 
writers of Windows also make a lot of money selling stuff with a lot of 
shared functionality like Office and MSSQL and such.)

-- 
   Darren New, San Diego CA, USA (PST)
   I ordered stamps from Zazzle that read "Place Stamp Here".


Post a reply to this message

From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 20 Sep 2009 13:45:04
Message: <4ab66a20$1@news.povray.org>
nemesis wrote:
> I understood your point.  Hand-compiled and installed povray or any 
> other is of no concern to the package manager.  Thus, it'll uninstall 
> libpng without caring if hand-compiled povray uses it or not.  It 
> doesn't even know hand-compiled povray exists.  Nor should it.

"It'll break your code, *and* it *should*!"  Ah, the mindset you can get 
away with when writing non-commercial software. :-)

-- 
   Darren New, San Diego CA, USA (PST)
   I ordered stamps from Zazzle that read "Place Stamp Here".


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.