PDA

View Full Version : Action on in use files



NewsArchive
06-03-2008, 01:44 AM
Hi Friedrich,

I remember that SB4 (or 5) had a feature that allowed to check in use files
before the installation starts. Now I can't find this anymore; instead SB
suggests to reboot to install the in use files after the installation
finished. That might be nice but in our case causes some problems.

Thanks for your help as always
Hanspeter

NewsArchive
06-03-2008, 01:45 AM
Hi Friedrich,

RTFM, I guess I have to use the "Check In-use Folder Tree" function, right?

Hanspeter

NewsArchive
06-03-2008, 01:45 AM
Hi Hanspeter,

>
> RTFM, I guess I have to use the "Check In-use Folder Tree" function,
> right?
>

Correct <g>

Friedrich

NewsArchive
06-03-2008, 01:45 AM
Works great and - as usual - easy to use

Hanspeter

NewsArchive
06-03-2008, 01:54 AM
Friedrich:

>> RTFM, I guess I have to use the "Check In-use Folder Tree" function,
>> right?
>
> Correct <g>

How does that function work? Does it use some special API or just tries to
write to the file and report "in use" when it fails?

I had a confusing report from a client where they said they couldn't install
an update to a network volume because my installer reported "in-use" files
and they were sure there wasn't any. At the end they solved it, and said
the problem was related to windows user permissions. Is this possible?

Thanks.

Carlos Gutierrez

NewsArchive
06-04-2008, 01:48 AM
Carlos,

> How does that function work? Does it use some special API or just tries to
> write to the file and report "in use" when it fails?
>
> I had a confusing report from a client where they said they couldn't
> install an update to a network volume because my installer reported
> "in-use" files and they were sure there wasn't any. At the end they solved
> it, and said the problem was related to windows user permissions. Is this
> possible?

It uses Windows APIs to check if a file is "in-use" (or not writable). The
function checks if exclusive access to that file is possible. If not, it
returns "1". If access to the file is denied (because of restriced user
permissions, etc.), it also returns "1" because the file cannot be written
(replaced).

Does this help?

Friedrich

NewsArchive
06-04-2008, 01:48 AM
> It uses Windows APIs to check if a file is "in-use" (or not writable).
> The
> function checks if exclusive access to that file is possible. If not, it
> returns "1". If access to the file is denied (because of restriced user
> permissions, etc.), it also returns "1" because the file cannot be written
> (replaced).
>
> Does this help?

Yes thanks.

For a future version, it would be nice to have a way to report to the user
if the problem is because a file is opened or is related to permissions (if
technically possible).

Carlos Gutierrez

NewsArchive
06-04-2008, 01:49 AM
Hi Carlos,

>> Does this help?
>
> Yes thanks.
>
> For a future version, it would be nice to have a way to report to the user
> if the problem is because a file is opened or is related to permissions
> (if
> technically possible).

Unfortunately, that is not possible.

Friedrich