Closed C8H17OH closed 1 year ago
It also happen to me also.
@C8H17OH @BrandonWanHuanSheng, Is this still occurring in 1.2.6.0? Could you kindly provide an example of a package that you are experiencing this issue with?
By the way, I never know how to not use interactive mode if multiple architectures share the same installer. It always alerts "The number of new installer packages must match the number of existing installer packages," even if I provide duplicate URLs after -u.
You can use the architecture override syntax described in the docs
e.g., wingetcreate update <PackageId> --version <PackageVersion> --urls "<InstallerUrl>|x86", "<InstallerUrl>|x64"...
If the InstallerUrl is same for different scopes, you can append |user
, |machine
as well
Not sure. I need to confirm afterward.
@C8H17OH @BrandonWanHuanSheng, Is this still occurring in 1.2.6.0? Could you kindly provide an example of a package that you are experiencing this issue with?
By the way, I never know how to not use interactive mode if multiple architectures share the same installer. It always alerts "The number of new installer packages must match the number of existing installer packages," even if I provide duplicate URLs after -u.
You can use the architecture override syntax described in the docs
e.g.,
wingetcreate update <PackageId> --version <PackageVersion> --urls "<InstallerUrl>|x86", "<InstallerUrl>|x64"...
If the InstallerUrl is same for different scopes, you can append
|user
,|machine
as well
It does not occur on v 1.2.6.0 The issue was gone.
Ok, so I could reproduce the issue in 1.2.6.0 with a couple of packages
Microsoft.WindowsTerminal
. This package uses same InstallerUrl for all architectures.
wingetcreate update Microsoft.WindowsTerminal -i
This also occurs with updating Microsoft.WingetCreate
, Microsoft.PowerShell
in interactive mode (so maybe it's an msixbundle only thing?) I couldn't reproduce with other packages that use the same Url for different architectures i.e., LutzRoeder.Netron
, Microsoft.PerfView
I think most likely is msixbundle.
Brief description of your issue
Cannot download duplicate installer file in interactive mode update (v1.2.5.0)
Steps to reproduce
In interactive mode update (
wingetcreate update -i
), provide the same URL for installers of different architectures.Expected behavior
Correctly download the file again and generate the manifest in final.
Actual behavior
WingetCreate v1.2.5.0 will throw System.IO.IOException as below:
Seems after downloading the previous installer, the process still locks the file just downloaded. This happens on v1.2.5.0, but I haven't seen it in previous versions.
By the way, I never know how to not use interactive mode if multiple architectures share the same installer. It always alerts "The number of new installer packages must match the number of existing installer packages," even if I provide duplicate URLs after
-u
.Environment