Comments (15)
Hmmm... that's interesting, I only see one item here: https://github.com/microsoft/winget-pkgs/tree/master/manifests/c/Clement/bottom/0.9.6
Note that I don't use winget, so I don't know how to fix this exactly atm...
from bottom.
Just making sure, is it not fixed by any of the suggestions here? microsoft/winget-cli#282
from bottom.
Hmmm, i dont know if its a packaging issue or a winget issue.
Locally there seems to be 2 bottoms, both have the same id and same case, so the -e didnt change anything. I also cant uninstall bottom to try fresh install it.
intrestingly there searching specifcally for Clement.bottom
isnt working...
Ive installed the latest version via cargo instead, but the winget version is whats getting loaded when running btm
so, Grrrrrrr.
from bottom.
Hm, the fact that you can't uninstall it kinda makes me think it's a winget issue, but I can't confirm. The only thing I can think of that's possibly different about the bottom
0.9.6 package is that someone updated it after it was first initially added (microsoft/winget-pkgs#118291), but that doesn't look like it changed anything significant given a quick look.
bottom
in installed using an msi package when installed through winget so you might be able to find the program and uninstall it through control panel/settings? As for the potential duplicate entry in winget, if normal commands don't work I dunno if there's a way of forcefully uninstalling a program installed through it... I see some regedit solutions if I quickly look online but that's not exactly ideal.
from bottom.
Yep, there are 2 versions installs.
0.9.2 and 0.9.3
If something changed durring those versions on winget that prolly caused the issue.
I uninstalled 0.9.2 manually and am now able to upgrade to 0.9.6
Edit: After upgrading, i noticed it duplicated again
I think you might be packaging wrong? Bottom doesnt replace the old version it just installs the new version in a new location?
from bottom.
Hm, seems like from here I can apparently set upgradeBehavior: uninstallPrevious
? I can look into that.
Apparently the default behaviour of winget is to just install versions side by side according to that issue. Seems like you hit the behaviour here: microsoft/winget-cli#1865 (comment)
from bottom.
From what i can see, the install locations changed.
0.9.6 the install location is C:\Program Files\bottom\bin
But i dont know where 0.9.3 is installed.
from bottom.
Hm, I shouldn't have changed anything in between those versions off the top of my head.
from bottom.
That said, I think I found a slight mistake in the way I'm using cargo wix
which might cause some problems regarding update guid, gonna try and see if changing that fixes it.
from bottom.
Ok, did some investigations, 0.9.3 was also installed in C:\Program Files\bottom\bin
but the registery of the version wasnt removed.
But yea, the issue is, the previous version isnt being unregistered from the users PC, breaking further updates/uninstall etc etc using winget.
from bottom.
That said, I think I found a slight mistake in the way I'm using
cargo wix
which might cause some problems regarding update guid, gonna try and see if changing that fixes it.
Yea that could be the issue, Im not sure how the GUIDs are ment to work, if its specific to the application or specific per version?
0.9.3 GUID is 2D38F097-BF34-4A73-AAD3-8B59BE42F03D
0.96 GUID is 85586C1B-BA83-48C2-84CC-A719227D22CF
I dont think you should do the "uninstall previous version" no other applications do that from what i can see, they just replace the files, I think that option is more for major version changes where you want to make sure all the old version files are removed before installing the new version.
from bottom.
Yeah, so I think the problem is that when I build I would run cargo wix init
each time, but I'm supposed to just run it once - because of that, it was regenerating upgrade-guid
and path-guid
each time, which I think causes the problem of it not detecting an upgrade.
I'm gonna fix that real quick and see if that works.
from bottom.
I just checked NuShell which i use and installed via winget, they dont uninstall the previous versions on install.
https://github.com/microsoft/winget-pkgs/blob/master/manifests/n/Nushell/Nushell/0.93.0/Nushell.Nushell.installer.yaml
from bottom.
Yes, looks it the issue is that you init wix each time, checked nushell, and they havnt changed the GUID in 4 years. So looks like you need to keep the GUID the same.
https://github.com/nushell/nushell/blame/main/wix/main.wxs
and they dont init wix on build
https://github.com/nushell/nushell/blob/main/.github/workflows/release-pkg.nu#L188-L200
from bottom.
Cool, tested on a Windows VM that bumping the version will properly upgrade the existing binary.
Will make sure CI still works after changing that in the linked PR and merge in a bit. I think(?) I can try and patch the 0.9.6 binary + winget as well.
from bottom.
Related Issues (20)
- Improve temperature sensor detection on Windows
- View open file handles, organized by which processes own it
- Reset network traffic on start option HOT 1
- Disk columns HOT 1
- AIX support
- Disable keypresses / controls with a flag HOT 2
- Build failure with Rust 1.80.0 HOT 4
- Add a graphless CPU widget HOT 1
- RUSTSEC-2024-0019: Vulnerability in mio HOT 1
- Help message is distorted HOT 2
- Process widget fails to show full commands on Windows HOT 2
- default_cpu_entry option does not work HOT 1
- debian installer downloads "Not Found" HOT 2
- No GPU temps (Nvidia) after updating to 0.10 HOT 8
- Add scrollbars to some elements
- Populate the default configuration file HOT 1
- Allow filtering by user/process by default HOT 1
- Always check `$XDG_CONFIG_HOME` when initializing the default config on macOS
- The config option "theme" doesn't work
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 bottom.