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] application launched from perMachine or both nsis installer still have admin privilege (elevated) #9835

Closed
anatawa12 opened this issue May 21, 2024 · 1 comment · Fixed by #9944
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@anatawa12
Copy link
Contributor

anatawa12 commented May 21, 2024

Describe the bug

application launched from perMachine or both nsis installer still have admin privilege (elevated).

It's not good to have admin privilege and some process (like Unity) denies launching admin privilege.

Reproduction

  1. install some tauri app with nsis installer
  2. launch the app from nsis installer
  3. the launched app process is elevated

Expected behavior

the app launched from installer should not elevated.

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 124.0.2478.97
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.11.1
    - npm: 10.2.4

    - CSP: unset
    - distDir: out
    - devPath: http://localhost:3000/
    - framework: React (Next.js)
    - bundler: Webpack

Stack trace

No response

Additional context

as far as i search, this method seems to work but I didn't test yet https://stackoverflow.com/questions/11169431/how-to-start-a-new-process-without-administrator-privileges-from-a-process-with

Downstream issue: vrc-get/vrc-get#1020

@anatawa12 anatawa12 added status: needs triage This issue needs to triage, applied to new issues type: bug labels May 21, 2024
@anatawa12 anatawa12 changed the title [bug] application launched from perSystem or both nsis installer still have admin privilege (elevated) [bug] application launched from perMachine or both nsis installer still have admin privilege (elevated) May 21, 2024
@Legend-Master
Copy link
Contributor

Legend-Master commented Jun 2, 2024

Having the same problem, I'll take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants