winget-create icon indicating copy to clipboard operation
winget-create copied to clipboard

Cannot update if name of EXE file has changed inside ZIP

Open rakleed opened this issue 1 year ago • 1 comments

Brief description of your issue

wingetcreate cannot update if the name of the EXE file inside the ZIP has changed.

Steps to reproduce

wingetcreate update -u https://download.gigabyte.com/FileList/Utility/GCC_24.05.01.01.zip -v 24.05.01.01 GIGABYTE.GigabyteControlCenter

Expected behavior

Manifest successfully creates.

Actual behavior

Error: Nested installer not found in zip archive: GIGABYTE Control Center_2024_Mar_release_All_Setup_B24032901.exe. Please use the interactive mode to update this package.

Environment

Windows Package Manager Manifest Creator v1.6.1.0
Operating System: Microsoft Windows NT 10.0.22631.0
System Architecture: X64

rakleed avatar May 07 '24 17:05 rakleed

I'm pretty sure this is intended behavior based on the error message shown. If there are multiple EXE's inside the zip file, selecting the correct one for the update could be inaccurate. Perhaps if there is only one EXE inside it could be autodetected, and that would be a great feature request

Trenly avatar May 13 '24 13:05 Trenly