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

ZIP extraction fails when %temp% is set to a RAMDisk #4520

Open
ben20471 opened this issue May 31, 2024 · 2 comments
Open

ZIP extraction fails when %temp% is set to a RAMDisk #4520

ben20471 opened this issue May 31, 2024 · 2 comments
Labels
Command-Install Issue related to WinGet Install Issue-Bug It either shouldn't be doing this or needs an investigation. Portable Issue related to portable package

Comments

@ben20471
Copy link

Brief description of your issue

Note: I will use git-cola.git-cola as an example package for this issue, but this works with any other package that uses a zip archive during install

I use a RAMDisk to put temporary files on it, and whenever I attempt to install a program that uses a zip file (regardless of the contents being a portable package or an exe installer), the extraction always fails. The problem started to appear when I started to put temporary file on the said RAMDisk, without updating winget or anything else.

Steps to reproduce

  1. Download the ImDisk Toolkit and install it to the default location
  2. Open C:\Program Files\ImDisk\RamDiskUI.exe
  3. Create a RAMDisk of any size big enough for the download
  4. Set both %temp% and %tmp% to any folder under the RAMDisk
  5. Restart
  6. Use winget install git-cola.git-cola

Expected behavior

Silently extracts the zip and successfully installs package

Actual behavior

The package installation fails with the following error:
weakly_canonical: Fonction incorrecte.: "R:\Temp\WinGet\git-cola.git-cola.4.6.1\extracted\git-cola-4.6.1.exe"

Environment

Using winget --info:

Gestionnaire de package Windows v1.7.11261
Copyright (c) Microsoft Corporation. Tous droits réservés.

Windows: Windows.Desktop v10.0.19045.4474
Architecture du système : X64
Package : Microsoft.DesktopAppInstaller v1.22.11261.0

Répertoires Winget
-----------------------------------------------------------------------------------------------------------------------------------------
Journaux                                     %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
Paramètres utilisateurs                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Répertoire des liens portables (utilisateur) %LOCALAPPDATA%\Microsoft\WinGet\Links
Répertoire des liens portables (ordinateur)  C:\Program Files\WinGet\Links
Racine de package portable (utilisateur)     %LOCALAPPDATA%\Microsoft\WinGet\Packages
Racine du package portable                   C:\Program Files\WinGet\Packages
Racine de package portable (x86)             C:\Program Files (x86)\WinGet\Packages
Téléchargements du programme d’installation  %USERPROFILE%\Downloads

Liens
---------------------------------------------------------------------------------------------
Déclaration de confidentialité        https://aka.ms/winget-privacy
Contrat de licence                    https://aka.ms/winget-license
Avis de tiers                         https://aka.ms/winget-3rdPartyNotice
Page d’accueil                        https://aka.ms/winget
Conditions générales du Windows Store https://www.microsoft.com/en-us/storedocs/terms-of-sale

Paramètre administrateur                  État
---------------------------------------------------
LocalManifestFiles                        Activé
BypassCertificatePinningForMicrosoftStore Désactivé
InstallerHashOverride                     Désactivé
LocalArchiveMalwareScanOverride           Désactivé

Temporary folders environment variables:
TEMP                           R:\Temp
TMP                            R:\Temp
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label May 31, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@ben20471
Copy link
Author

ben20471 commented May 31, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Just checked, this issue provides a different error. Additionally, while the error in the issue mentioned by the bot is happening before the download even starts, the error mentioned in my issue happens only after downloading and extracting.

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Command-Install Issue related to WinGet Install Portable Issue related to portable package and removed Needs-Triage Issue need to be triaged labels May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-Install Issue related to WinGet Install 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

2 participants