aojdk-updatewatcher icon indicating copy to clipboard operation
aojdk-updatewatcher copied to clipboard

[Feauture Request] CLI Output

Open hxr404 opened this issue 3 years ago • 7 comments

First of all, thank you for creating this!!!! Its really useful! Now the Feature Request :D

Is your feature request related to a problem? Please describe. When running it from command line, there is no output.

I'm sure that it's not a 'known-not-a-bug' ✅ Yes

Describe the solution you'd like It would be nice if it would output some kind of status indicators e.g. Checking for Updates (xyz)... (xyz) is up to date! or Downloading (xyz)... Installing (xyz)... Update successfull! or Error (xyz): Error

Describe alternatives you've considered Only having the output when using a -verbose Flag

Additional context This is just a draft. The output could also look different, the main thing is that users see whats happening and don't just stare at a blinking cursor xD

hxr404 avatar Mar 12 '21 12:03 hxr404

Hello,

Thank you for your suggestion.

Currently the updater is GUI only. I should check, whether it's possible to attach a console to the WPF app.

  • If yes, logging "status/debug" information to console is somewhat simpler (may think about it, definitely with a kind of -console flag).
  • Making a console-only interactive mode (without GUI interaction) will require a significant effort and is not planned in nearby future.

tushev avatar Mar 12 '21 19:03 tushev

ok. Thank You. If its too complicated to add a console flag, it would be enough to be able to pass custom flags to the msi Installer.

In my case I'd e.g. add the ADDLOCAL=FeatureMain INSTALLDIR=$directory /quiet /qn flag manually in config mode, so the user just has to click on Update once (in the updatewatcher's GUI) and not going through the whole MSI Installer.

hxr404 avatar Mar 20 '21 16:03 hxr404

In my case I'd e.g. add the ADDLOCAL=FeatureMain INSTALLDIR=$directory /quiet /qn flag manually in config mode, so the user just has to click on Update once (in the updatewatcher's GUI) and not going through the whole MSI Installer.

That's a good idea, thank you for your suggestion! I think this will significantly improve UX.

tushev avatar Mar 20 '21 17:03 tushev

Nice I’m looking forward to the update! But there would be still one issue left: The MSI Installer always creates an entry in the "programs and features" list. This isn't good for portable applications that come bundled with a runtime.

This could be fixed by adding an option "Download and Extract Zip instead of Installer" that can be set in config mode. This would also fix the problem that fourth digit updates and major updates don't replace the outdated Versions

I really appreciate the effort you put into this and especially reading through all my feedback :D. Thx

hxr404 avatar Mar 29 '21 10:03 hxr404

Well, it looks like I forgot to document this, but one can always download ZIPs manually using context menu in Update dialog starting from v. 2.0.0.0:

image.

and major updates doesn't replace the outdated Versions

Once https://github.com/AdoptOpenJDK/openjdk-api-v3/issues/206 is closed, I will start working on a new version, that will be able to detect outdated AdoptOpenJDK versions and suggest updating to the latest (LTS) release. However, there is no due date yet.

I really appreciate the effort you put into this and especially reading through all my feedback :D. Thx

Thanks :)

tushev avatar Mar 29 '21 12:03 tushev

user just has to click on Update once (in the updatewatcher's GUI) and not going through the whole MSI Installer.

@tushev any update on this?

maverick74 avatar Mar 21 '22 12:03 maverick74

@maverick74 It's in TODO list for the next release but there is no estimated date yet...

tushev avatar Mar 21 '22 14:03 tushev