Replies: 11 comments 31 replies
-
Yeah, this is fine 🙂
Some Chocolatey operations require administrator rights to be properly run (for example, update sources), and it was not viable to have the user elevate every single operation (because they are sometimes automated, and there are issues with parsing live output of elevated programs). Therefore, if the user chooses so, Chocolatey will be installed within UniGetUI, on a non-admin location.
I have an automated workflow on my pc, that updates chocolatey before I build a new version. In fact, I used to do the same thing until I was able to migrate to COM APIs. Asynchronous updates also mean that the CLI output can change, and I wouldn't be able to prevent the users from updating and then having a broken integration with UniGetUI.
This shouldn't be a thing, unless you are using bundled chocolatey with WinGet, and system chocolatey on a CLI. |
Beta Was this translation helpful? Give feedback.
-
@marticliment Apologies for not coming back to you sooner about this discussion. Recently I have taken some time off work, and I am only just getting back to things just now. I wanted to go and test out a few things with regard to the comments that I made, but I have run into a bit of an issue. Not sure if this is the right place to discuss it, but thought I would start here, and I can always create an issue if required. I created a new VM so that I could test things out, and I then set about installing UniGetUI. During the installation, I noted that installing Chocolatey was selected: However, when I go into the Package Managers section when I open UniGetUI, I am seeing the following: It is saying it can't find Can you help me understand what is going on here? Why it is installing Chocolatey to one folder, but then looking for it in another one? Did I miss something during the installation of UniGetUI? Thanks |
Beta Was this translation helpful? Give feedback.
-
👋 @marticliment back with more questions! 😄 I have just come back to this, as I am still wanting to understand how things are meant / expected to work, as I am having a slightly hard time to understanding the intentions, so I wanted to make sure that I am not missing something. In the above thread I got into a problem, where UniGetUI was originally installed as an administrator user, and as a result, the local installation of Chocolatey CLI was in that user folder, rarher than another non-admin user that I had created. I created the non-admin due to the warnings that were shown within UniGetUI about not running with administrator permissions. To take things back to the start, I decided to destroy the VM that I was using and recreate it. This time around I started with a non-admin user and attempted the installation of UniGetUI. This immediately prompted for permissions to perform the installation as a UAC prompt was shown. I used the details of an administrator account that I have, and the installation continued. UniGetUI then came up, but once again it could not find Chocolatey as a Package Manager. Digging into it, the local copy of Chocolatey CLI had been installed into the admin account that I had used at the UAC prompt, rather than the non-admin user that had started the installation of UniGetUI. So, I guess my main question is... How am I meant to install UniGetUI, along with Chocolatey CLI, in a way that it will work without the warning that I initially saw when running UniGetUI in the above thread. I totally might be missing something, so feel free to tell me that I am doing something silly. I am really just trying to understand how things are expected to work, so I can understand a baseline of using UniGetUI and Chocolatey. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
When installing UniGetUI onto Windows Server 2019, the bundled version of Chocolatey isn't actually working (see screenshot below), since .NET Framework 4.8 is not installed. I noticed that the UniGetUI is installing the Visual C++ dependency, so I think that it would make sense to also install .NET Framework 4.8 when the option to install Chocolatey is selected. What do you think? |
Beta Was this translation helpful? Give feedback.
-
Hello again! I have had some time to come back to look at this, and I have some more questions 😄 This is now my fourth attempt to get things up and running, and I believe that I am making progress. I am still using a VM in Azure, but this time around I have installed Windows 10. The trick to get things working seems to be to create another local user with admin permissions, and use that, rather than the default admin user that is created when the VM is provisioned. That user seems to have more permissions, which was causing some of the issues that I saw. Things are working much more like you have described previously when I do this. First question... When I double click on a package that is coming from the Chocolatey Community Repository, I get taken to a package details page, which looks like this: Have you thought about rendering the description, which can contain markdown format, so that the headings are rendered correctly? |
Beta Was this translation helpful? Give feedback.
-
Next question... Is there a way to show which of the list of package managers is "active" on this screen? Currently, I have to drill down through into each one to see if it is enabled or not: |
Beta Was this translation helpful? Give feedback.
-
Does UniGetUI work with NuGet v3 feeds? As of Chocolatey CLI 2.x, it does, but I don't seem to be able to find any results from a v3 feed through UniGetUI. Running This would suggest that you aren't executing |
Beta Was this translation helpful? Give feedback.
-
I ran into an issue when trying to use the system version of Chocolatey, where I wasn't able to add a source through UniGetUI: Is this a known issue? |
Beta Was this translation helpful? Give feedback.
-
Once UniGetUI is installed, and it has placed Chocolatey CLI into a custom folder, actually getting Chocolatey CLI installed globally is a bit of a challenge, due to the fact that the
Do you think that this is something that should be documented somewhere in your site? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
👋 Hello, my name is Gary, and I am one of the maintainers of the Chocolatey family of projects, and I had some questions about the integration of Chocolatey CLI in to UniGetUI. I thought that raising this as a discussion was the best way to go, but if there is somewhere else that you would like to discuss this, please let me know.
Why is there a version of Chocolatey CLI bundled into UniGetUI, rather than defaulting to using Chocolatey CLI, only if it is installed on the machine (and perhaps providing an ability to install Chocolatey CLI, if it is not detected).
The issue with bundling a version into UniGetUI is that it can become outdated, as new versions of Chocolatey CLI is released. This adds work to the maintenance of UniGetUI.
In addition, running
choco list
against the bundled version of Chocolatey CLI, will report different packages as being installed, compared to the machine level installation of Chocolatey CLI.Was there something in how Chocolatey CLI works with UniGetUI that required there to be a bundled version?
Beta Was this translation helpful? Give feedback.
All reactions