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

The 7z self-extracting package cannot be decompressed #864

Closed
ystyle opened this issue Apr 13, 2021 · 5 comments
Closed

The 7z self-extracting package cannot be decompressed #864

ystyle opened this issue Apr 13, 2021 · 5 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback Issue needs attention from issue or PR author
Milestone

Comments

@ystyle
Copy link

ystyle commented Apr 13, 2021

Brief description of your issue

The 7z self-extracting package cannot be decompressed。
And tips: there is no such archive

Steps to reproduce

winget install -m ./kaf-cli.yaml

Id: ystyle.kaf-cli
Version: 1.1.11
Name: kaf cli
Publisher: ystyle
Author: ystyle
License: MulanPSL
LicenseUrl: https://github.com/ystyle/TmdTextEpub/raw/master/LICENSE
Description: 把txt文本转成epub和mobi电子书的命令行工具
Homepage: https://github.com/ystyle/TmdTextEpub
Commands: kaf-cli
InstallerType: exe
Installers:
    - Arch: x64
      Url: https://github.com/ystyle/TmdTextEpub/releases/download/v1.1.11/TmdTextEpub-windows.exe
      InstallerType: exe
      Sha256: c278b23d6148ec11538f597b958782185bca2d35090f76e52db812a0a45a9a09
ManifestVersion: 0.1.0

Expected behavior

The 7z self-extracting package is decompressed correctly.

copy the archive to other dir can be decompressed correctly.

Actual behavior


Environment

➜ winget --info
Windows Package Manager v0.2.10771 预览
版权所有 (C) Microsoft Corporation。保留所有权利。

Windows: Windows.Desktop v10.0.19042.867
程序包: Microsoft.DesktopAppInstaller v1.11.10771.0

日志: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

链接
-----------------------------------------------
隐私声明   https://aka.ms/winget-privacy
许可协议   https://aka.ms/winget-license
第三方声明 https://aka.ms/winget-3rdPartyNotice
主页       https://aka.ms/winget
@ghost ghost added the Needs-Triage Issue need to be triaged label Apr 13, 2021
@jedieaston
Copy link
Contributor

Try adding the silent install flags to the manifest:

 InstallerSwitches: 
        Silent: -o C:\Program Files\TmdTextEpub\
        SilentWithProgress: -o C:\Program Files\TmdTextEpub\

(per https://stackoverflow.com/questions/17687390/how-do-i-silently-install-a-7-zip-self-extracting-archive-to-a-specific-director)

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Apr 13, 2021
@ystyle
Copy link
Author

ystyle commented Apr 15, 2021

Try adding the silent install flags to the manifest:

 InstallerSwitches: 
        Silent: -o C:\Program Files\TmdTextEpub\
        SilentWithProgress: -o C:\Program Files\TmdTextEpub\

(per https://stackoverflow.com/questions/17687390/how-do-i-silently-install-a-7-zip-self-extracting-archive-to-a-specific-director)

This can be run on the command line

.\TmdTextEpub-windows.exe -y -o"E:\\TmdTextEpub"

But using Winget still prompt

➜ winget install -m .\kaf-cli.yaml
已找到 kaf cli [ystyle.kaf-cli]
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
Downloading https://github.com/ystyle/TmdTextEpub/releases/download/v1.1.11/TmdTextEpub-windows.exe
  ██████████████████████████████  4.89 MB / 4.89 MB
已成功验证安装程序哈希
正在启动程序包安装...
Installer failed with exit code: 255

PS: Could it be that the length of the path exceeds the limit of windows?

@ystyle
Copy link
Author

ystyle commented Apr 15, 2021

I think the path length exceeds the limit of windows,
The first picture is run directly at the location where Winget downloaded, and the second picture is run in the working directory

image
image

@denelon
Copy link
Contributor

denelon commented May 21, 2021

Looks like this also depends on #970 for a resolution. Be sure to 👍 that issue to raise its priority.

@denelon denelon added this to the v.Next - Windows Package Manager milestone May 21, 2021
@denelon denelon added the Needs-Author-Feedback Issue needs attention from issue or PR author label Sep 16, 2021
@denelon
Copy link
Contributor

denelon commented Sep 21, 2021

We have not been able to reproduce this issue.

@denelon denelon closed this as completed Sep 21, 2021
@denelon denelon modified the milestones: v.Next-Client, v1.2 Client, v1.1-Client Oct 1, 2021
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. Needs-Author-Feedback Issue needs attention from issue or PR author
Projects
None yet
Development

No branches or pull requests

3 participants