Multi Commander > Feature Requests and Suggestions

Quirky Administrator Mode

<< < (2/3) > >>

Mathias (Author):
I was not able to recreate the delete issue (2) But I found a bug with MoveFile and that has now been fixed.

GrantSP:
Mathias thanks for the quick turn-around. I just upgraded to the Beta you updated v2.1.0 (build 1022).

I can narrow down the behaviour I described to only not working when using the internal operations provided by MultiCommander.
By that I mean if I hit the "F8", "Delete" or click the "Delete button" the operation asks for privileges but fails to provide them.
However if I invoke the right-click menu and select any command that requires Admin privileges the commands proceed as normal. Also I can 'Drag' files in and out of the folder as you would expect them to work.

The update you provided has fixed ALL problems with "Cut/Copy" or "Move" operations. Whether I use 'buttons', 'hotkeys', menu commands or right-click menus the operations work as they should.

Thank you.
Excellent work

Mathias (Author):
But you still have problem with the "delete" operation ?

I have not been able to recreate the problem you have with 'delete', Can you try to describe how I could recreate the delete problem.. if possible.

GrantSP:
Okay I'll see if I can explain this.

For the sake of this example I am using the Notepad++ default installation directory, but the same behaviour occurs with all folders under UAC.
On my machine it is [C:\Program Files (x86)\Notepad++\].

The folder has the following security applied to it, as listed on the 'Security' tab of the 'Properties' dialog:

CREATOR OWNER - Special Permissions - Allow
SYSTEM - Full Control, Modify, Read & Execute, List folder contents, Read, Write - Allow
Administrators - Full Control, Modify, Read & Execute, List folder contents, Read, Write - Allow
Users - Read & Execute, List folder contents, Read - Allow
TrustedInstaller - List folder contents, Special permissions - Allow

All files found under this directory have the following security applied to them:

SYSTEM
Administrators
Users

All with the same permissions as listed above (except 'List folder contents' of course as that doesn't apply to files).

Now if I start MultiCommander from the 'StartMenu' with 'Run as administrator' no problems occur. All file operations happen as they should.
If I start MultiCommander from the shortcut without admin privileges the following happens:

Using the 'Notepad++' directory as the example if I highlight the 'readme.txt' and hit "F8", "Del" or the "Delete (F8)" button I get your confirmation dialog box asking whether "Are you sure you want to remove the file to the Recycle Bin ?" The check box for 'Delete to Recycle Bin' is selected and the radio button option 'Remove link, not link target.' is also selected.
Now I press "Yes" and the 'Error' dialog box appears which says:

"Access denied while trying to delete the file 'readme.txt'.
It might be open by another program or you do not have permission to delete it."
It has the options "Retry as Administrator", "Retry", "Skip", "Skip All", "Cancel".

I then press "Retry as Administrator" and I am continually presented with the same dialog box and options as described above. All the while the bottom right hand corner shows a progress bar with 0% and another dialog box hidden behind the 'Error' dialog box which is labelled "Multi Commander" and it has the text "Preparing ...." and a progress bar, a label saying "0 of 1 items done" and 2 buttons 'Pause' and 'Abort'.

As I mentioned this results only when operating on a file with the coded commands. If I right-click and select "Cut" or "Delete" or if I drag the file out of the folder I am presented with Windows access control dialog and then the operations continue as expected.

Whatever you changed in your code that worked on the "Move" operation that now makes it work for me isn't being applied to your code that handles deletions. Though I don't see why that would be the case?

I hope it helps.
I'm not a coder but I do understand some principles about it. If you need any further information I'm only too happy to help.

And again, excellent work! Bravo.

Mathias (Author):
Thanks.

I found what the problem is.. It is when doing delete using "Delete to Recycle Bin".
Permanently deleting the file works, But delete to recycle bin should also work.. I will try to fix that


Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version