POV-Ray : Newsgroups : povray.off-topic : An annoying thing in Windows (which mostly doesn't happen in Linux) Server Time
1 Dec 2026 11:14:31 EST (-0500)
  An annoying thing in Windows (which mostly doesn't happen in Linux) (Message 29 to 78 of 78)  
<<< Previous 28 Messages Goto Initial 50 Messages
From: clipka
Subject: Re: An annoying thing in Windows (which mostly doesn't happeninLinux)
Date: 20 Sep 2009 12:59:23
Message: <4ab65f6b$1@news.povray.org>
Fredrik Eriksson schrieb:
> On Sun, 20 Sep 2009 18:11:27 +0200, clipka <ano### [at] anonymousorg> 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.
>>
>> (The only thing which is a real nuisance there is that this doesn't 
>> allow you to /delete/ registry keys.)
> 
> Of course it does. What makes you think otherwise?

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.)


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:04:26
Message: <4ab6609a@news.povray.org>
clipka wrote:
> Indeed, a clear line cannot always be drawn; for instance, are POV-Ray 
> .ini files settings for POV-Ray, or are they part of the scene?

Generally, if the user can change them, they shouldn't be in the 
program-files directory. :-)

> Most software is pretty sane about this, 

Mainly because that's the only place users have permissions to write. :)

Altho I have had software that was licensed per-user that stored its 
licensing settings in the per-machine area. It was broken in many other ways 
too, and written by the CEO's son, so I wasn't surprised.

-- 
   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: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

From: Orchid XP v8
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 20 Sep 2009 13:51:39
Message: <4ab66bab$1@news.povray.org>
Darren New wrote:

> if you compile and install from source, it's not going to bump 
> the use count on your libraries.

Excellent fun. Compile something from source, and the package manager 
doesn't know you have it, and tries to install it again.

Weirdly, most software you compile from scratch has an uncanny ability 
to figure out what libraries are installed, no matter whether you're 
using RPM or DEB or EMERGE or...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Orchid XP v8
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 20 Sep 2009 13:54:57
Message: <4ab66c71@news.povray.org>
>> 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"

Yeah, I think I tried that too. Basically there was something or other 
"magical" about that folder. Windows Explorer could delete it, but from 
the DOS box is was unclear whether it existed, couldn't quite be 
deleted, etc. I don't know if it was the attributes or the desktop.ini 
file or just a magic path hard-coded into the system or what... Tcl 
killed it without difficulty though. Haskell too. (All the more amusing, 
since Haskell is running under a Unix emulator...)

>> 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.

Not programatically. And not on a roaming profiles folder on the server.

> Damn, you need a new job.

Really?! o_O

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


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 14:42:05
Message: <4ab6777d$1@news.povray.org>
Orchid XP v8 wrote:
> Darren New wrote:
> 
>> if you compile and install from source, it's not going to bump the use 
>> count on your libraries.
> 
> Excellent fun. Compile something from source, and the package manager 
> doesn't know you have it, and tries to install it again.

Or you get to make up a package file by hand.

The worst I ever dealth with was a package that needed a very specific 
version of Boost, and since Linux doesn't do the whole "side by side" thing 
very well,

> Weirdly, most software you compile from scratch has an uncanny ability 
> to figure out what libraries are installed, no matter whether you're 
> using RPM or DEB or EMERGE or...

It's not that uncanny. It tries to compile the code, and if the compiler 
returns error messages, it knows why.

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


Post a reply to this message

From: Warp
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 20 Sep 2009 14:53:51
Message: <4ab67a3f@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> Weirdly, most software you compile from scratch has an uncanny ability 
> to figure out what libraries are installed, no matter whether you're 
> using RPM or DEB or EMERGE or...

  Most libraries are installed in a directory which the compiler directly
checks when you tell it to link that library in. Thus to check whether the
library is in the system it's enough to try and compile something which
tries to link that library and see if it succeeds.

  Moreover, all libraries are installed in the same few semi-standard system
directories in all popular Unix-based operating systems, so even if the
compiler is not used to check for the existence of the library, it's just a
matter of looking for them in those established directories.

-- 
                                                          - Warp


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 14:54:42
Message: <4ab67a72$1@news.povray.org>
Orchid XP v8 wrote:
>> You can do this with "disk cleanup" tho.
> Not programatically. And not on a roaming profiles folder on the server.

True. Not without COM, and not if the profiles aren't logged in.

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


Post a reply to this message

From: Warp
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 20 Sep 2009 14:55:13
Message: <4ab67a91@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> 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. :-)

  What's the package manager going to do? Scan the entire system for
executables which might be using that library? Sure, it could do that,
if you want to wait.

-- 
                                                          - Warp


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 16:26:25
Message: <4ab68ff1$1@news.povray.org>
Warp wrote:
>   What's the package manager going to do? Scan the entire system for
> executables which might be using that library? Sure, it could do that,
> if you want to wait.

Even that wouldn't necessarily work. Note I didn't say there was an easy fix 
for the problem. I was mocking the attitude that since there isn't an *easy* 
fix, then it *should* break.  I.e., that the attitude is "this should be 
broken" rather than "this is regrettably broken."

But sure, if you uninstall stuff and it leaves libraries around, I can 
imagine a button you could push that says "Scan all the executables right 
now and tell me what libraries are installed that no executable references." 
Along with "tell me the last time someone loaded this library."  Then you 
could clean things up that stopped being used when you deleted some package 
six months ago.

-- 
   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 happen inLinux)
Date: 20 Sep 2009 18:49:44
Message: <4ab6b188$1@news.povray.org>
Darren New schrieb:

>> 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.

Yes, but I *can* roll my own installer to do it.

And it's standardized. It's not like I'd need to make an installer for 
Debian, another for Ubuntu, yet another for what-have-you-not...


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 19:03:19
Message: <4ab6b4b7$1@news.povray.org>
Orchid XP v8 schrieb:
> 
> Weirdly, most software you compile from scratch has an uncanny ability 
> to figure out what libraries are installed, no matter whether you're 
> using RPM or DEB or EMERGE or...

Have you ever had a look how that actually works?

Just look at the "configure" script for POV-Ray for an example.

That script actually goes ahead and generates source code for tiny test 
programs, and checks if they compile, link and run. For instance, if the 
script manages to compile and run a program that tries to call 
png_access_version_number(), it knows that libpng is there - and also 
what version number it is.

Of course the script first verifies that the shell is compatible with 
the command syntax used in the script, goes on to find out what compiler 
to use, and so on...


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 20:14:39
Message: <4ab6c56f@news.povray.org>
clipka wrote:
> Yes, but I *can* roll my own installer to do it.

And you can in Debian too, at least. It's just annoying to have to do it, 
but that's what you get when you are compiling source. Basically, you make 
up a fake package description and say "here, I just installed this."

> And it's standardized. It's not like I'd need to make an installer for 
> Debian, another for Ubuntu, yet another for what-have-you-not...

Nah. One for XP, one for Vista, one for Win7... ;-)

-- 
   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 20:15:41
Message: <4ab6c5ad$1@news.povray.org>
clipka wrote:
> Of course the script first verifies that the shell is compatible with 
> the command syntax used in the script, goes on to find out what compiler 
> to use, and so on...

Yes, it's one of those lovely systems where you write code to describe the 
code that describes the code that gets compiled, because otherwise it's just 
too much a PITA.

-- 
   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 happen inLinux)
Date: 20 Sep 2009 21:02:40
Message: <4ab6d0b0$1@news.povray.org>
Darren New schrieb:
> Yes, it's one of those lovely systems where you write code to describe 
> the code that describes the code that gets compiled, because otherwise 
> it's just too much a PITA.

Yup.

So much for portability :-P


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 22:16:56
Message: <4ab6e218@news.povray.org>
clipka wrote:
> So much for portability :-P

C isn't portable. C just lets you put several versions of the source code 
into the same file. :-)

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


Post a reply to this message

From: scott
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 21 Sep 2009 03:26:29
Message: <4ab72aa5$1@news.povray.org>
>  Something like a half year ago I had 10 GB of free space in my C: drive.
> Today I had less than 4 GB,

I think the moral of the story is that nowadays you can't really survive 
with only 4GB or 10GB of free space on the C drive without performing 
regular clean-ups.  I guess most developers assume way bigger hard drive 
space so don't care about leaving around odd MBs here and there.

OOC why such a small C partition?  HDs are really cheap, I don't think you 
can even buy anything under 120GB now.


Post a reply to this message

From: clipka
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 21 Sep 2009 07:58:36
Message: <4ab76a6c$1@news.povray.org>
Darren New schrieb:

> C isn't portable. C just lets you put several versions of the source 
> code into the same file. :-)

Yeah, I guess that's a fitting description :-)


Post a reply to this message

From: Warp
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 21 Sep 2009 11:54:10
Message: <4ab7a1a2@news.povray.org>
scott <sco### [at] scottcom> wrote:
> OOC why such a small C partition?  HDs are really cheap, I don't think you 
> can even buy anything under 120GB now.

  Even if a 100 TB disk was free, I am still not eager to reinstall Windows.

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 21 Sep 2009 14:19:49
Message: <4ab7c3c5@news.povray.org>
Warp wrote:
> scott <sco### [at] scottcom> wrote:
>> OOC why such a small C partition?  HDs are really cheap, I don't think you 
>> can even buy anything under 120GB now.
> 
>   Even if a 100 TB disk was free, I am still not eager to reinstall Windows.

Depending on the version of Windows, you could get a new disk and just move 
the partitions over, one way or another.  It's really no harder than 
recovering from a HD crash.  Let me know if you are interested.

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


Post a reply to this message

From: Patrick Elliott
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 21 Sep 2009 18:06:41
Message: <4ab7f8f1@news.povray.org>
scott wrote:
>>  Something like a half year ago I had 10 GB of free space in my C: drive.
>> Today I had less than 4 GB,
> 
> I think the moral of the story is that nowadays you can't really survive 
> with only 4GB or 10GB of free space on the C drive without performing 
> regular clean-ups.  I guess most developers assume way bigger hard drive 
> space so don't care about leaving around odd MBs here and there.
> 
> OOC why such a small C partition?  HDs are really cheap, I don't think 
> you can even buy anything under 120GB now.
> 
> 
Older versions of Windows, prior to XP, you could do it, since a) 
settings didn't get saved into c:\documents and settings\, and neither 
did documents. I don't think there is any *obvious* way to move 
settings, and if you did, you would break things that assume they will 
be in the same place, instead of checking the current path for it, and 
while you can move the documents, **I know** personally that this breaks 
some applications which expect the document path to remain the same, 
after detecting they are in XP or higher.

What this means in practice is, you can't **clean up** anything, because 
any programs that store settings outside the registry, or anything else 
they need, will end up on C, even if you install them on Q, or 
something. The more things you have installed, the more caches, 
settings, data, etc. get shoved into C anyway, and the less and less 
room you have for anything else. So, under XP, if you don't do it the 
stupid way, which is, "Install everything in the same massive 
partition", you eventually run out of room, and not just because half 
the shit, including MS' own patches/installers are often too stupid to 
clean up after themselves either, never mind anyone else's.

-- 
void main () {
   If Schrödingers_cat is alive or version > 98 {
     if version = "Vista" {
       call slow_by_half();
       call DRM_everything();
     }
     call functional_code();
   }
   else
     call crash_windows();
}

<A HREF='http://www.daz3d.com/index.php?refid=16130551'>Get 3D Models, 
3D Content, and 3D Software at DAZ3D!</A>


Post a reply to this message

From: scott
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 22 Sep 2009 03:28:40
Message: <4ab87ca8@news.povray.org>
> while you can move the documents, **I know** personally that this breaks 
> some applications which expect the document path to remain the same, after 
> detecting they are in XP or higher.

Such an application that assumes absolute folder paths that are hard coded 
would be ridiculous.  It would mean for instance it would only work on 
English 32bit XP and nothing else.  German XP (and I suspect all other 
languages) has different folder names for My Documents, 64bit has a "Program 
Files (x86)" folder, Vista has C:\Users rather than C:\Documents and 
Settings, didn't Win2K have C:\WINNT as the windows folder or something? 
Basically such a program would suck so much, the fact that it stored it's 
data on C rather than D would be the least of your worries.

BTW Vista can trick older/badly written programs in to thinking they are 
writing to a certain location, but actually stores the files in the correct 
area.  If you tell Vista your user area is somewhere else (eg D drive) then 
really everything will be put on the D drive, even by badly behaved programs 
that try to write directly to the C drive.


Post a reply to this message

From: scott
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 22 Sep 2009 03:35:37
Message: <4ab87e49$1@news.povray.org>
>  Even if a 100 TB disk was free, I am still not eager to reinstall 
> Windows.

At some point though (if not already) you are going to have spent more time 
trying to fix these things than it would have taken to just reinstall. 
Didn't you spend ages trying to defrag this drive a while ago too?  If it 
was me I'd just bite the bullet and reinstall before I wasted any more time 
on such issues.


Post a reply to this message

From: Warp
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 22 Sep 2009 11:08:24
Message: <4ab8e868@news.povray.org>
scott <sco### [at] scottcom> wrote:
> >  Even if a 100 TB disk was free, I am still not eager to reinstall 
> > Windows.

> At some point though (if not already) you are going to have spent more time 
> trying to fix these things than it would have taken to just reinstall. 
> Didn't you spend ages trying to defrag this drive a while ago too?  If it 
> was me I'd just bite the bullet and reinstall before I wasted any more time 
> on such issues.

  The defragmentation wasn't essential. I was just wondering how I could
defragment that partition completely because it seemed to be so difficult.

  As for "biting the bullet", if it ain't broken, don't fix it.

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 22 Sep 2009 11:10:45
Message: <4ab8e8f5@news.povray.org>
Patrick Elliott <sel### [at] npgcablecom> wrote:
> Older versions of Windows, prior to XP, you could do it, since a) 
> settings didn't get saved into c:\documents and settings\, and neither 
> did documents. I don't think there is any *obvious* way to move 
> settings, and if you did, you would break things that assume they will 
> be in the same place, instead of checking the current path for it, and 
> while you can move the documents, **I know** personally that this breaks 
> some applications which expect the document path to remain the same, 
> after detecting they are in XP or higher.

  If Windows supported soft links, then it wouldn't be a problem.

  (Yes, Darren, I know NTFS supports soft links. However, Windows XP doesn't,
no matter how much you claim it does.)

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 22 Sep 2009 12:52:34
Message: <4ab900d2$1@news.povray.org>
scott wrote:
> Such an application that assumes absolute folder paths that are hard 
> coded would be ridiculous. 

You know what's ridiculous? The multimedia libraries for the box I'm working 
for cross-compile, and then explicitly use sed to put the full path to the 
libraries into the object code of the libraries, meaning you have to compile 
them in the same path as you run them, even tho those are, by definition of 
the libraries, not even the same machine.

Ridiculously lazy, I call it.

-- 
   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 in Linux)
Date: 22 Sep 2009 12:54:47
Message: <4ab90157$1@news.povray.org>
Warp wrote:
>   (Yes, Darren, I know NTFS supports soft links. However, Windows XP doesn't,
> no matter how much you claim it does.)

It does for directories. It just doesn't have soft links to individual 
files. :-)

And that just supports my contention that the only good reason for soft 
links is to fix broken programs that shouldn't have been hard-coding 
addresses to start with.

(Actually, the one other common use, making libxyz.2.8.so point to libxyz.so 
is a pretty good one, since that would seem to be a lot of mechanism in the 
loader you can easily bypass with soft links, hard links, or copying the 
files, each of which has its own problems.)

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


Post a reply to this message

From: Warp
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 22 Sep 2009 13:12:45
Message: <4ab9058b@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> Warp wrote:
> >   (Yes, Darren, I know NTFS supports soft links. However, Windows XP doesn't,
> > no matter how much you claim it does.)

> It does for directories.

  I can't find any way of creating such a soft link in Windows XP. If I could,
I would have used that solution a long time ago.

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 22 Sep 2009 13:28:34
Message: <4ab90942$1@news.povray.org>
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> Warp wrote:
>>>   (Yes, Darren, I know NTFS supports soft links. However, Windows XP doesn't,
>>> no matter how much you claim it does.)
> 
>> It does for directories.
> 
>   I can't find any way of creating such a soft link in Windows XP. If I could,
> I would have used that solution a long time ago.

http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx

If you don't like sysinternals, you can use MS's tool:
http://support.microsoft.com/kb/205524

It helps if you know Windows calls the "junctions".

You might want to be aware of the caveats:
http://en.wikipedia.org/wiki/NTFS_junction_point
They act more like hard links than soft links in some ways.


Hope that helps! :-)

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


Post a reply to this message

From: Warp
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 22 Sep 2009 13:38:47
Message: <4ab90ba7@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx

> If you don't like sysinternals, you can use MS's tool:
> http://support.microsoft.com/kb/205524

  I suppose I could try that. The only remaining question is whether one
really can move the "Documents and Settings" directory to another partition
and replace the original with such a soft link. The directory in question
is probably always in use when Windows is running, so how to do it? Perhaps
it isn't in use when booting to safe mode?

-- 
                                                          - Warp


Post a reply to this message

From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 22 Sep 2009 13:54:28
Message: <4ab90f54@news.povray.org>
Warp wrote:
> The directory in question
> is probably always in use when Windows is running,

Only if you're logged in as that user.

Oh, you want to move the entire documents-and-settings, and not just the 
individual user directory inside? Hmmm. You could always boot a livecd to do 
it. I guess if you want to move the "all users" thing, you'd have more 
trouble than moving just yourself.

If you want to change it when you install, just do this:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q236621

If you want to move just your personal home directory, you can find a 
registry key called "ProfileList" that will list each user and the full path 
to their home directory. It works to move that after install. Log in as 
administrator, copy everything to the new place (which is easier in XP than 
Vista :-), change that in the registry, and reboot. You should wind up 
opening the new location when you go to your documents and such. I haven't 
found any program at all that disrespects *this* setting, altho some will 
use (for example) "My Documents" under your profile even if you put "My 
Documents" somewhere else in XP.

I'd still say getting a bigger disk is likely as easy. :-)

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


Post a reply to this message

From: Patrick Elliott
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 22 Sep 2009 16:08:50
Message: <4ab92ed2$1@news.povray.org>
scott wrote:
>> while you can move the documents, **I know** personally that this 
>> breaks some applications which expect the document path to remain the 
>> same, after detecting they are in XP or higher.
> 
> Such an application that assumes absolute folder paths that are hard 
> coded would be ridiculous.  It would mean for instance it would only 
> work on English 32bit XP and nothing else.  German XP (and I suspect all 
> other languages) has different folder names for My Documents, 64bit has 
> a "Program Files (x86)" folder, Vista has C:\Users rather than 
> C:\Documents and Settings, didn't Win2K have C:\WINNT as the windows 
> folder or something? Basically such a program would suck so much, the 
> fact that it stored it's data on C rather than D would be the least of 
> your worries.
> 
> BTW Vista can trick older/badly written programs in to thinking they are 
> writing to a certain location, but actually stores the files in the 
> correct area.  If you tell Vista your user area is somewhere else (eg D 
> drive) then really everything will be put on the D drive, even by badly 
> behaved programs that try to write directly to the C drive.
> 
> 
Uh. Think you misunderstand. At least one did, more or less, this:

1. Install.
2. First start up - ask OS where 'My Documents', or local equivalent is.
3. Create folders for here for the documents, then store this location.
4. I change the location in OS (And.. you would think if you had this 
option they would include an "move related documents to new location", 
option...).
5. Program breaks, since its *looking* for what was created in #3, 
rather than asking the OS if the path to 'My Documents' is the *same* as 
it was when it installed originally.

This is far more likely to be common than for my copy of XP to suddenly 
morph into 64 bit, or German. lol

-- 
void main () {
   If Schrödingers_cat is alive or version > 98 {
     if version = "Vista" {
       call slow_by_half();
       call DRM_everything();
     }
     call functional_code();
   }
   else
     call crash_windows();
}

<A HREF='http://www.daz3d.com/index.php?refid=16130551'>Get 3D Models, 
3D Content, and 3D Software at DAZ3D!</A>


Post a reply to this message

From: Patrick Elliott
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 22 Sep 2009 16:10:06
Message: <4ab92f1e$1@news.povray.org>
scott wrote:
> BTW Vista can trick older/badly written programs in to thinking they are 
> writing to a certain location, but actually stores the files in the 
> correct area.  If you tell Vista your user area is somewhere else (eg D 
> drive) then really everything will be put on the D drive, even by badly 
> behaved programs that try to write directly to the C drive.
> 
Oh, and just to be clear, who the frack wants Vista? lol

-- 
void main () {
   If Schrödingers_cat is alive or version > 98 {
     if version = "Vista" {
       call slow_by_half();
       call DRM_everything();
     }
     call functional_code();
   }
   else
     call crash_windows();
}

<A HREF='http://www.daz3d.com/index.php?refid=16130551'>Get 3D Models, 
3D Content, and 3D Software at DAZ3D!</A>


Post a reply to this message

From: scott
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 24 Sep 2009 03:13:46
Message: <4abb1c2a$1@news.povray.org>
> 1. Install.
> 2. First start up - ask OS where 'My Documents', or local equivalent is.
> 3. Create folders for here for the documents, then store this location.
> 4. I change the location in OS (And.. you would think if you had this 
> option they would include an "move related documents to new location", 
> option...).
> 5. Program breaks, since its *looking* for what was created in #3, rather 
> than asking the OS if the path to 'My Documents' is the *same* as it was 
> when it installed originally.

One has to wonder, that if the programmer went to the effort to find out 
where My Documents is, why they only did it once and then had to store the 
path somewhere!  That's even worse than not bothering to do it at all (from 
a coding point of view).

> Oh, and just to be clear, who the frack wants Vista? lol

I do, it means my 3D CAD application only takes 5 seconds to open rather 
than >1 minute under XP.  SuperFetch FTW!


Post a reply to this message

From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen in Linux)
Date: 24 Sep 2009 11:41:49
Message: <4abb933d$1@news.povray.org>
scott wrote:
> One has to wonder, that if the programmer went to the effort to find out 
> where My Documents is, why they only did it once and then had to store 
> the path somewhere! 

No, they'd store something like
"\Docs and settings\george\My Documents\Pov Ray Scenes"
instead of constructing it each time.

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


Post a reply to this message

From: Patrick Elliott
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 24 Sep 2009 17:00:47
Message: <4abbddff$1@news.povray.org>
Darren New wrote:
> scott wrote:
>> One has to wonder, that if the programmer went to the effort to find 
>> out where My Documents is, why they only did it once and then had to 
>> store the path somewhere! 
> 
> No, they'd store something like
> "\Docs and settings\george\My Documents\Pov Ray Scenes"
> instead of constructing it each time.
> 
Hmm. Example - Both Corel PSP X and X2 store things as:

c:\Documents and Settings\<user>\...

Unless its checking, once it starts up, and correcting the links...

You know, I really wish some applications like this supported a "move 
install" function. I wouldn't mind freeing up the 400M from C, which I 
stupidly made too small of the OS, by dragging PSP X off there, but 
other than manually editing all the critical locations in the system 
registry, which is to say, all 90 of them (one for each brush path, 
displacement map path, script path, path paths, path to path paths).. 
o.O And, reinstalling looses you any settings you had, which just makes 
things even more damn fun. Sigh...

Seriously. I wouldn't mind in the least if people treated applications 
like.. real world tools, and doing the equivalent of moving them out of 
the garage didn't cause your electric drill didn't stop working the 
moment you had it in the living room. If you think about it, its a damn 
stupid way to handle applications, which are basically tools, and *may* 
need to be moved around once in a while too, even if to just save space 
on the work bench.

-- 
void main () {
   If Schrödingers_cat is alive or version > 98 {
     if version = "Vista" {
       call slow_by_half();
       call DRM_everything();
     }
     call functional_code();
   }
   else
     call crash_windows();
}

<A HREF='http://www.daz3d.com/index.php?refid=16130551'>Get 3D Models, 
3D Content, and 3D Software at DAZ3D!</A>


Post a reply to this message

From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 24 Sep 2009 17:13:26
Message: <4abbe0f6$1@news.povray.org>
Patrick Elliott wrote:
> Hmm. Example - Both Corel PSP X and X2 store things as:
> c:\Documents and Settings\<user>\...

The point was that they don't store the base location of your home 
directory, but rather paths built from that base location.

> other than manually editing all the critical locations in the system 

That's what search and replace is for?

Or, make your OS partition bigger?

> If you think about it, its a damn 
> stupid way to handle applications, which are basically tools, and *may* 
> need to be moved around once in a while too, even if to just save space 
> on the work bench.

It's a cost vs benefit kind of thing. The number of sales they lose due to 
people with a too-small system disk and a second disk that's big enough 
added later is probably smaller than the cost of writing, testing, and 
supporting that functionality.

Why not just move the executable and leave the data behind?

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


Post a reply to this message

From: Patrick Elliott
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 25 Sep 2009 13:45:55
Message: <4abd01d3$1@news.povray.org>
Darren New wrote:
> Patrick Elliott wrote:
>> Hmm. Example - Both Corel PSP X and X2 store things as:
>> c:\Documents and Settings\<user>\...
> 
> The point was that they don't store the base location of your home 
> directory, but rather paths built from that base location.
> 
Yes, well. Not everyone got the point. lol

>> other than manually editing all the critical locations in the system 
> 
> That's what search and replace is for?
> 
> Or, make your OS partition bigger?
> 
Uh, regedit doesn't allow "replace", well, unless you do something 
insane, like exporting the entire tree, doing a search and replace on 
the plain text, then import again.

As for making the OS partition bigger.. Kind of problematic in my case, 
its like:

20% OS
40% data
40% Fedora - using a virtual file system, which *normal* partition 
managers can't even work with, remove, etc.

I would have to wipe the Fedora, reset the MBR to boot to windows 
properly, move the data partition up on the drive, and optionally make 
it a hair bigger too, *then* expand the C drive. :p I can live with 
cleaning the thing up and getting rid of about 4G of junk that 
accumulated, like multiple JRE updates that the installers leave, "just 
in case something needs the older JRE."

>> If you think about it, its a damn stupid way to handle applications, 
>> which are basically tools, and *may* need to be moved around once in a 
>> while too, even if to just save space on the work bench.
> 
> It's a cost vs benefit kind of thing. The number of sales they lose due 
> to people with a too-small system disk and a second disk that's big 
> enough added later is probably smaller than the cost of writing, 
> testing, and supporting that functionality.
> 
> Why not just move the executable and leave the data behind?
> 
Because the data is what is taking up 99% of the space, and not sure 
that would fix everything. Moving 500MB of program won't do you a bit of 
good if the data is 2-3GB. :p

-- 
void main () {
   If Schrödingers_cat is alive or version > 98 {
     if version = "Vista" {
       call slow_by_half();
       call DRM_everything();
     }
     call functional_code();
   }
   else
     call crash_windows();
}

<A HREF='http://www.daz3d.com/index.php?refid=16130551'>Get 3D Models, 
3D Content, and 3D Software at DAZ3D!</A>


Post a reply to this message

From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 25 Sep 2009 14:22:42
Message: <4abd0a72$1@news.povray.org>
Patrick Elliott wrote:
> Uh, regedit doesn't allow "replace", well, unless you do something 
> insane, like exporting the entire tree, doing a search and replace on 
> the plain text, then import again.

Well, yes. Or just the sub-tree of interest.  Or write a piece of program to 
do it for you in any one of the dozen languages that allow easy access to 
the registry.

> I would have to wipe the Fedora, reset the MBR to boot to windows 
> properly, move the data partition up on the drive, 

Yeah, if your disk is already full, you can have that problem. :-)

> Because the data is what is taking up 99% of the space, and not sure 
> that would fix everything. Moving 500MB of program won't do you a bit of 
> good if the data is 2-3GB. :p

Huh. I have two versions of PSP installed, and one takes about 100K for the 
data, and the other takes about 250K.

Or you could go to file->preferences->file locations and change them. I 
thought you were talking about moving the application. Moving the files is 
pretty easy.

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


Post a reply to this message

From: Patrick Elliott
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 26 Sep 2009 18:32:23
Message: <4abe9677$1@news.povray.org>
Darren New wrote:
> Huh. I have two versions of PSP installed, and one takes about 100K for 
> the data, and the other takes about 250K.
> 
> Or you could go to file->preferences->file locations and change them. I 
> thought you were talking about moving the application. Moving the files 
> is pretty easy.
> 
Well, tell you the truth, I stopped looking closely, after I got a good 
look at how many links there are in the mess. Mind, you, there "seems to 
be" a couple of "auto update" services, or something, for X and X2 that 
are in the registry too, so, moving everything some place else would 
tend to move those links as well. Basically, something would "need" to 
be fixed, even if most of the changes where simple to do later in the 
application. I wouldn't even keep X on the machine, except X2's file 
browser sucks, so I don't want to switch over, until/unless I can make 
it stop searching "all" directories (instead of the one being viewed), 
and opening fracking video files, when I can't even edit them with it.

Don't know who the bone head was that wrote that component, but...


-- 
void main () {
   If Schrödingers_cat is alive or version > 98 {
     if version = "Vista" {
       call slow_by_half();
       call DRM_everything();
     }
     call functional_code();
   }
   else
     call crash_windows();
}

<A HREF='http://www.daz3d.com/index.php?refid=16130551'>Get 3D Models, 
3D Content, and 3D Software at DAZ3D!</A>


Post a reply to this message

From: Darren New
Subject: Re: An annoying thing in Windows (which mostly doesn't happen inLinux)
Date: 26 Sep 2009 19:59:46
Message: <4abeaaf2@news.povray.org>
Patrick Elliott wrote:
> Don't know who the bone head was that wrote that component, but...

Agreed. I keep PSP8 and X2 both.  PSP8 unfortunately doesn't work well under 
Vista or I wouldn't have bothered to buy the new one.

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


Post a reply to this message

<<< Previous 28 Messages Goto Initial 50 Messages

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