One thing I'm not clear on - are both calls -required-?
> -Original Message-
> From: Pavel Tsekov [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 16, 2002 8:52 PM
> To: Robert Collins
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re[5]: setup.ex
Ok, I've tested it on my WinXP Home on NTFS, FAT and FAT32. The
following snippet removes the file no matter the filesystem
(the Get/SetFileAttributes is required for FAT/FAT32 only):
HANDLE hFile;
DWORD dwAttr = GetFileAttributes ("test.dat");
SetFileAttributes ("test.dat", dwAttr &
Hello Robert,
Thursday, May 16, 2002, 10:59:27 AM, you wrote:
RC> Does this work on FAT too?
I don't know - its not clear from the documentation. Someone has to
test it on FAT. However this combined with an an call to
SetFileAttributes () before it should be sufficient.
Btw the snippet below i
Does this work on FAT too?
Rob
> -Original Message-
> From: Pavel Tsekov [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 16, 2002 6:33 PM
Ok here is how to fix this issues I've just tried it on my XP Home and
it worked fine.
HANDLE h = CreateFile("test.c",
[snip]
PT> Obviously the DELETE permission is missing. You call SetFileAttributes
PT> with ~FILE_ATTRIBUTE_READONLY which shoul enable the file for reading
|
deleting ---+
P
Hello Robert,
Friday, May 03, 2002, 1:58:28 AM, you wrote:
>> -Original Message-
>> From: Corinna Vinschen [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, May 03, 2002 1:44 AM
>> To: CygWin Apps; Cygwin-Xfree
>> Subject: Re: setup.exe and inuse files for X
&
> -Original Message-
> From: Corinna Vinschen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 03, 2002 1:44 AM
> To: CygWin Apps; Cygwin-Xfree
> Subject: Re: setup.exe and inuse files for X
>
>
> On Wed, May 01, 2002 at 04:58:36PM +1000, Robert Collins wrote
On Wed, May 01, 2002 at 04:58:36PM +1000, Robert Collins wrote:
> I think I've got a handle on this... looks like read only (-r--r--r--)
> files don't delete properly, so setup fails to overwrite them.
>
> Patches gratefully accepted, it's going in the TODO for now.
I recall having sent a patch
I think I've got a handle on this... looks like read only (-r--r--r--)
files don't delete properly, so setup fails to overwrite them.
Patches gratefully accepted, it's going in the TODO for now.
Rob