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

Failed to install dotnet, exit code: 1. dotnet-install: The current user doesn't have write access to the installation root 'C:\Program Files\dotnet #571

Open
4 tasks
Miguel-AgRz opened this issue Dec 30, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Miguel-AgRz
Copy link

Description:
installer is trying to install in program files

Task version:
6.0.x

Platform:

  • Ubuntu
  • macOS
  • [x ] Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.

Expected behavior:
it should install in user environment or work folder

Actual behavior:
A description of what is actually happening.

@Miguel-AgRz Miguel-AgRz added bug Something isn't working needs triage labels Dec 30, 2024
@aparnajyothi-y
Copy link

Hello @Miguel-AgRz, Thank you for creating this issue and we will look into it :)

@mahabaleshwars mahabaleshwars self-assigned this Dec 31, 2024
@mahabaleshwars
Copy link

Hi @Miguel-AgRz,
The installation process fails because the user doesn't have write access to 'C:\Program Files\dotnet'. This is a common issue when trying to install software in directories that require elevated permissions.

Suggested Solutions

  1. Change Installation Directory: Modify the workflow to install .NET in a directory that the user has write access to, such as a user-specific directory.
  2. Elevate Permissions: Run the installation process with elevated permissions if possible.

Let us know if either of these solutions resolves the issue. If the problem persists, please provide the repro steps or a link to a repository so we can investigate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants