Comments (5)
I think we can detect the "correct" version from the installer file with high confidence only if it's an MSI or an MSIX. The example you showed is an
.exe
, which can have all sorts of different behaviors depending on how the installer is made. One way for.exe
is to look at theFileVersion
/ProductVersion
file property (that @wingetbot uses in its automation). The problem with that approach is that not all publishers set this value and even if they do, it does not match the actual version written to Registry / Apps&Features, resulting in a lot of false matches.If wingetcreate auto-fills a version for a user, I think it should be the one that's the actual DisplayVersion written to Registry, and for that I think the implementation should first target MSIX and MSIs, and then optionally see if something can be done for
.exe
's.The
wingetcreate new
command already fetches the version for MSIX's, so as a first step, we can look to replicate that behavior for theupdate
command
wingetcreate new
correctly identified version for same exe when I initially submitted the package, but during wingetcreate update
it is not detected. That is what I am saying.
from winget-create.
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:
wingetcreate update
does not parse and detect version (#177), similarity score: 0.84
Closed similar issues:
wingetcreate update
differentInstallerType
(#75), similarity score: 0.90- Can't install wingetcreate (#325), similarity score: 0.83
wingetcreate new
detected installertype that fails (#26), similarity score: 0.83- wingetcreate update fails while there is a version number in the zip archive (#414), similarity score: 0.82
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from winget-create.
It does automatically parse it if you run
wingetupdate -i
wingetcreate update -i
, not that that helps.
#177 comment mentions that -i
should detect version from installer, but it also doesn't do that.
from winget-create.
I think we can detect the "correct" version from the installer file with high confidence only if it's an MSI or an MSIX. The example you showed is an .exe
, which can have all sorts of different behaviors depending on how the installer is made. One way for .exe
is to look at the FileVersion
/ ProductVersion
file property (that @wingetbot uses in its automation). The problem with that approach is that not all publishers set this value and even if they do, it does not match the actual version written to Registry / Apps&Features, resulting in a lot of false matches.
If wingetcreate auto-fills a version for a user, I think it should be the one that's the actual DisplayVersion written to Registry, and for that I think the implementation should first target MSIX and MSIs, and then optionally see if something can be done for .exe
's.
The wingetcreate new
command already fetches the version for MSIX's, so as a first step, we can look to replicate that behavior for the update
command
from winget-create.
wingetcreate update
already downloads and parses the installer, so why can't it check for the same like wingetcreate new
.
Using -i
with command should show a similar flow with version number suggested which is detected from installer.
In my example, the package has correct display version in registry/app&features with each new version.
from winget-create.
Related Issues (20)
- Root Level overwrites Installer Level Incorrectly
- "ERROR: Path does not exist" when using trailing \ on manifest path (submit) HOT 4
- Progress bar when downloading installer HOT 1
- Architecture specific `update` doesn't work HOT 2
- [Bug report] Unable to inspect MSIX file HOT 2
- `wingetcreate update` based on GitHub release
- Crash when attempting to submit a manifest HOT 1
- Bug - Fork Sync Issue HOT 8
- wingetcreate update confuses argument for --submit in PS script HOT 2
- Cannot update manifest with additional installers HOT 3
- Support .tar.gz archives HOT 2
- Ability to update DisplayVersion in autonomous update HOT 2
- Add support for removing manifests HOT 2
- Support object input for overrides HOT 1
- `Octokit.ApiException` error when creating pull request
- wingetcreate does not update upgrade code
- wingetcreate does not update product code and upgrade code when they are present inside ARP Entries HOT 3
- zip Sha256 hash problem HOT 4
- Cannot update if name of EXE file has changed inside ZIP HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winget-create.