Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Child processes won't elevate #488

Closed
DailenG opened this issue Jun 16, 2023 Discussed in #487 · 5 comments
Closed

[BUG] Child processes won't elevate #488

DailenG opened this issue Jun 16, 2023 Discussed in #487 · 5 comments
Assignees

Comments

@DailenG
Copy link

DailenG commented Jun 16, 2023

Discussed in #487

Originally posted by DailenG June 16, 2023
I'm running System Tray Menu on a user with no admin privileges and using shortcuts that launch chocolatey to install an application. I have SystemTrayMenu running with elevated privileges, I have chocolatey set to always run with admin privileges, but if I launch a shortcut from System Tray Menu it launches without elevation or prompting for elevation (either is ok). If I launch the shortcut directly it will prompt for elevation.

Am I doing something wrong or is there a workaround? I'm not sure how to get it to prompt aside from using a third party like gsudo to induce elevation.

@Hofknecht
Copy link
Owner

@DailenG
Thank you for the feedback!

i need to test with user without admin rights

Normally UAC should work like here with Admin user:
1
2

@Hofknecht
Copy link
Owner

@DailenG

ok now with normal user i can reproduce.
found this: https://stackoverflow.com/questions/16926232/run-process-as-administrator-from-a-non-admin-application
and with the change
Verb = "runas",
it works

@Hofknecht
Copy link
Owner

@DailenG will be in the next version (but i assume this takes a while), we added you to the thanks section : )

@Hofknecht
Copy link
Owner

when admin privliges then process does not start when using verb "runas"
checks for Admin not working so still open topic
we need to revert current change

@Hofknecht Hofknecht reopened this Aug 2, 2023
@Hofknecht Hofknecht self-assigned this Aug 2, 2023
@Hofknecht Hofknecht changed the title Child processes won't elevate [BUG] Child processes won't elevate Aug 2, 2023
topeterk added a commit that referenced this issue Aug 11, 2023
(cherry picked from commit a296df3)
@Hofknecht
Copy link
Owner

@topeterk
The first solution was bad.
Now there is a new one [1.3.2.6], hope this works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants