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

Portable App installation fails when temp path is on a different disk #3144

Open
Huhni opened this issue Apr 11, 2023 · 1 comment
Open

Portable App installation fails when temp path is on a different disk #3144

Huhni opened this issue Apr 11, 2023 · 1 comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Portable Issue related to portable package

Comments

@Huhni
Copy link

Huhni commented Apr 11, 2023

Brief description of your issue

When setting the environment variables TEMP/TMP to a different hard drive such as F:/Temp all portable winget installs will result in the following error:

An unexpected error occurred while executing the command:
copy_file: Access is denied.: "F:\Temp\WinGet\xxx\extracted\xxx", "C:\PortableApps\Winget\xxx\platform-tools"

The directories are created and it isn't an issue of missing privileges, just the contents aren't copied over.
Setting the installation location to F:\PortableApps works as expected.

Steps to reproduce

  1. Set your TEMP and TMP user environment variables to another disk, for example F:/Temp
  2. (Make sure the install location isn't on the same disk as your TEMP directory, by setting "portablePackageUserRoot" or adding the --location option during install)
  3. install a portable package, for example winget install Google.PlatformTools --location 'C:\PortableApps\Winget'

Expected behavior

The package gets extracted and moved into the specified directory.

Actual behavior

Only the directory is created, but without contents and the following error is shown:

An unexpected error occurred while executing the command:
copy_file: Access is denied.: "F:\Temp\WinGet\Google.PlatformTools.34.0.1\extracted\platform-tools", "C:\PortableApps\Winget\platform-tools"
Portable install failed; Cleaning up...

Environment

Windows: Windows.Desktop v10.0.22621.1485
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Apr 11, 2023
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Portable Issue related to portable package and removed Needs-Triage Issue need to be triaged labels Apr 11, 2023
@denelon denelon added this to the v.Next-Client milestone Jun 5, 2023
@MatthewSteeples
Copy link

I had a similar issue because I was using a DevDrive. I had to enable the WinSetupMon filter using the following command:

fsutil devdrv setFiltersAllowed "WdFilter, WinSetupMon"

@denelon denelon removed this from the v.Next-Client milestone Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Portable Issue related to portable package
Projects
None yet
Development

No branches or pull requests

3 participants