Run As Administrator
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 5.1k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
Changing the value of
requestedExecutionLevel level="asInvoker" uiAccess="false"
to
requestedExecutionLevel` level="requireAdministrator" uiAccess="false"
at Remotely/Desktop.Win/app.manifest Line 19
will result of having a portable version running as administrator which what we need, but this way the build will fail when it comes to ClickOnce build files and it skips that.
I know ClickOnce doesn't support sunning with this level, but is there anything we can do to have the portable version running as administrator while for the ClickOnce it's ok to run as invoker but at least it gets built for us and there to use it.
I noticed that after the build, if going to the download page and get the setup.exe for installed version then right click and run the setup.exe file as admin it will install and then it will automatically run Remotely_Desktop as admin. but if I click the Remotely_Desktop we never get it to run as admin unless we run it from elevated cmd or such technique.
have a look at this info, which seriously not sure how to apply it to this but it might help:
https://stackoverflow.com/a/46080075
Thanks in advance for such a GREAT PROJECT.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at Remotely/Desktop.Win/app.manifest line 19 and inspect how the portable and ClickOnce build files use the requested execution level. Review the ClickOnce limitation and the linked Stack Overflow guidance, then verify that the portable build runs elevated while the ClickOnce build still completes and runs as invoker.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system, desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100