[8.51a] Delete by limited user: UAC+TCMADMIN non-stop

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

[8.51a] Delete by limited user: UAC+TCMADMIN non-stop

Post by *MVV »

I start TC as a limited user and try to delete files from temp dir. For some strange reason TC asks for elevation, Windows shows UAC window with login/password fields, I press Cancel, TC tells that it can't start TCMADMIN and triggers UAC again and again for every file.

I can't cancel operation because the only active windows are error message with OK button and UAC window, both modal.

Strange why TC asks for admin when its user has full access to that directory, and when I cancel UAC prompt, TC deletes file anyway.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Also it is TOO nasty to see "TCMADMIN can't be started" error message every time when I cancel UAC dialog. If I pressed Cancel, it is obvious for me that action won't be performed so this message is absolutely pointless. I hope there is a special error code to detect if user cancelled operation...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50549
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Can you give me more information when exactly you get this dialog? It doesn't make sense to me, TC aborts the operation when you cancel the UAC elevation dialog...
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I press Cancel in UAC dialog (where Windows asks for login/password) and then see mentioned TC message.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50549
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I still don't get it, sorry. Here is what I tried:
1. Delete from c:\windows\temp - I can enter it only by accepting the UAC dialog, and don't get UAC later when trying to delete someting.

2. Delete two files from c:\windows directly , choose "All as administrator", then click cancel in UAC dialog -> Message that tcmadmin couldn't be started, then message "Error, file x couldn't be deleted, remove write protection" -> clicked Cancel, function stopped. No loop.

What exactly did you do?
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I delete from folder that is owned by that user, I've mentioned user temp folder (%TEMP%). And this have been done from TC started as limited user (not administrator) using Shift+context menu item 'Run as user' (logged in user is an administrator).

Unfortunately I can't reproduce it anymore...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50549
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, if you can reproduce it again, please provide step by step instructions. Normally cancelling UAC dialog should stop the entire delete function and not cause a loop.
Author of Total Commander
https://www.ghisler.com
Post Reply