-
Notifications
You must be signed in to change notification settings - Fork 18
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
refactor: windows elevation #51
Conversation
Unfortunately, the two changes you mentioned above to redirect the output are not possible and throw an exception. According to the doc:
I have to set UseShellExecute to true, otherwise the Runas verb is not taken into account. I tried to hide the new window and redirect the output, without success. |
I've added a commit to this branch for the changes I had to add to your code to make it work. Let me know if you want me to create a pull request to refactor/win-elevation with these changes. By the way, well done for adding IWindowsElevationEnabled, it's cleaner that way! |
@AdrasteonDev Hey thanks! I did not have time last night to test on Windows, so I'm super grateful for all the help. By all means, open a PR into this branch and we'll get this one fixed with your corrections! |
I created PR #53 with the change I described |
Refactor/win_elevation : Ask for elevation if not elevated
@AdrasteonDev Any final changes? If it's looks good to you, we can get this merged and released. |
It looks good to me, I don't have any additional changes to make. Thanks for the time spent reviewing this PR :) |
@AdrasteonDev can you review this? I've refactored the Windows elevation, but I need to run testing on Windows still.