immense / immense/Remotely

Run As Administrator

Open
#360 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.