Can the -svc switch trigger a UAC prompt?

Have a suggestion for "Everything"? Please post it here.
Post Reply
Ethan
Posts: 19
Joined: Fri Feb 01, 2013 7:26 pm

Can the -svc switch trigger a UAC prompt?

Post by Ethan »

Pretty much what the title says.
I like to use Everything in a portable way, without installing it on the host. And I work with a limited account. So, to use Everything, I first start an elevated command prompt and run

Code: Select all

everything -svc
, then from a limited prompt I run

Code: Select all

everything -startup
. However, I'd like that Everything triggered a UAC prompt in the first case, should I forgot to use an elevated command prompt and use a regular one instead.
By the way, I'm using the latest alpha.
Last edited by NotNull on Mon Jun 28, 2021 5:28 pm, edited 1 time in total.
Reason: Moved topic to forum  "Everything 1.5 Alpha"
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: Can the -svc switch trigger a UAC prompt?

Post by NotNull »

You should get the UAC prompt when starting everything.exe -svc from a non-elevated account.
It does so on Everything 1.4, but indeed: not on 1.5 ... ( v. 1261a here)
void
Developer
Posts: 17166
Joined: Fri Oct 16, 2009 11:31 pm

Re: Can the -svc switch trigger a UAC prompt?

Post by void »

I'll fix this for the next alpha update.
Thank you for bringing the issue to my attention.

For now, please try:
Everything.exe -svc -admin
Ethan
Posts: 19
Joined: Fri Feb 01, 2013 7:26 pm

Re: Can the -svc switch trigger a UAC prompt?

Post by Ethan »

Thank you void, your suggestion works ;)
void
Developer
Posts: 17166
Joined: Fri Oct 16, 2009 11:31 pm

Re: Can the -svc switch trigger a UAC prompt?

Post by void »

Everything 1.5.0.1267a will now automatically request admin privileges when launched with the -svc command line option.
Ethan
Posts: 19
Joined: Fri Feb 01, 2013 7:26 pm

Re: Can the -svc switch trigger a UAC prompt?

Post by Ethan »

Thanks,it works now!
One thing I noticed with the help of Process Hacker:
- in 1266a, the -svc -admin switches result in one process only, elevated
- in 1267a, the -svc results in two processes, a non-elevated parent one, and an elevated child one
Not a big deal anyway, because the service seems to work as database is correctly created, and the gui shows and opens the files I'm looking for.
void
Developer
Posts: 17166
Joined: Fri Oct 16, 2009 11:31 pm

Re: Can the -svc switch trigger a UAC prompt?

Post by void »

Both Everything.exe -svc -admin and Everything.exe -svc should have two processes.

The first process does nothing and simply waits for the second process (that is running as admin) to return.

This allows you to perform wait functions on the first process.
Possible synchronization issues might occur if the first process does not wait for the second process to return.


If there is only one process, it should indicate Everything was already launched as an admin.
Post Reply