Code: Select all
tc*.exe /I0".\"RSHG0D0 ".\totalcmd"
But this operation trigger UAC!
This is absolutely should not be in a portable use case! Help me get rid of this

Moderators: Hacker, petermad, Stefan2, white
Code: Select all
tc*.exe /I0".\"RSHG0D0 ".\totalcmd"
Code: Select all
@echo off
REM Silent Install TC
SET __COMPAT_LAYER=RunAsInvoker
tc*.exe /A1I0".\"RSHG0D0L1M0K %1
Just try /I0".\"RSHG0D0 ".\totalcmd" -- and get UAC prompt!ghisler(Author) wrote: 2025-06-18, 09:49 UTC so when you run it as an unprivileged user, it will install without UAC as far as it gets.
In fact:ghisler(Author) wrote: 2025-06-18, 09:49 UTC The installer is set to "highestAvailable", so when you run it as an unprivileged user, it will install without UAC as far as it gets. If the user chooses a protected directory, it asks for UAC consent.
move to bug reports plznsp wrote: 2025-06-18, 11:37 UTC In fact:
if the current user have admin right, installer always ask for UAC even to install to non protected folders.
Well, it's expected behavior when an executable's manifest is set to highestAvailable. The same happens with regedit.exe - it always triggers a UAC prompt when the user is a member of the Administrators group (and the parent process isn't already running elevated).
PS: As I said previously: Use an archiver if you need to update a portable TC, especially if you don't let the installer create any shortcuts or write to the registry.ghisler(Author) wrote: 2018-06-25, 10:36 UTC Currently the installer uses level="highestAvailable", so non-admin users can still install TC to a directory like c:\Totalcmd, which does not require admin rights.
It would be better to first collect user data with normal rights and then ask for admin rights. Unfortuantely this would require a lot of changes, so I cannot add it quickly.