Closed JuhaszBalint2 closed 1 month ago
Something must've changed on chocolatey's backend and I require explanation and help. And a fix.
Are you a Chocolatey for Business customer? If so, can you run choco support
to find out what your support options are?
If not, then we provide support on a best efforts basis for the free Chocolatey CLI.
Something must've changed on chocolatey's backend and I require explanation and help. And a fix.
Are you a Chocolatey for Business customer? If so, can you run
choco support
to find out what your support options are?If not, then we provide support on a best efforts basis for the free Chocolatey CLI.
Of course not, I specified the free version in the OP. I'm not a paying customer, so to speak.
The reason I ask is that you have used language such as:
require explanation and help. And a fix.
There is no expectation of support, or a fix for the free Chocolatey CLI version. It is on a best efforts basis as I said. I want to set that expectation with you just now. I also want to draw your attention to the Code of conduct when communicating.
We don't support running Chocolatey CLI within NTLite. Does the script work outside of NTLite?
UPDATE: I've fixed the formatting above and can now read it.
You said this:
IF, however, I manually open a second powershell terminal and put in the exact same script (above), everything works perfectly.
So the script works when run from PowerShell directly but doesn't work when NTLite runs it? That would suggest this is an NTLite issue. Have you raised an issue with them?
The reason I ask is that you have used language such as:
require explanation and help. And a fix.
There is no expectation of support, or a fix for the free Chocolatey CLI version. It is on a best efforts basis as I said. I want to set that expectation with you just now. I also want to draw your attention to the Code of conduct when communicating.
We don't support running Chocolatey CLI within NTLite. Does the script work outside of NTLite?
Okay I'll re-word my OP then.
Yes it does but this isn't NTLite's fault since I used this exact same script in the past in the exact same manner, nothing has changed regarding NTLite. Or my script. So the logical explanation is that Chocolatey must've been changed on the back-end.
So the logical explanation is that Chocolatey must've been changed on the back-end.
If the script works outside of NTLite, then that would confirm nothing has changed on the 'back-end'. It would also confirm that Chocolatey CLI is behaving as expected.
If the same script doesn't work inside of NTLite, then that would suggest the problem lies with NTLite.
My suggestion would be to raise an issue with NTLite in the first instance.
Thinking out loud, perhaps the version of PowerShell has been updated and NTLite doesn't work with it.
So the logical explanation is that Chocolatey must've been changed on the back-end.
If the script works outside of NTLite, then that would confirm nothing has changed on the 'back-end'. It would also confirm that Chocolatey CLI is behaving as expected.
If the same script doesn't work inside of NTLite, then that would suggest the problem lies with NTLite.
My suggestion would be to raise an issue with NTLite in the first instance.
Thinking out loud, perhaps the version of PowerShell has been updated and NTLite doesn't work with it.
All the other powershell and batch scripts work fine with NTLite tho. And I cannot see anything wrong with my scripts in the OP. I made sure there was gonna be extensive logging for this reason
Are you talking about Powershell 7.4 btw? Supposedly the latest version. I checked and my machines run on 5.1
Are you talking about Powershell 7.4 btw? Supposedly the latest version. I checked and my machines run on 5.1
Not specifically that version. But yes, a version.
Unfortunately, as the script works directly, there isn't anything we can do. I know I'm repeating myself, but we don't provide support running Chocolatey CLI through NTLite.
Are you talking about Powershell 7.4 btw? Supposedly the latest version. I checked and my machines run on 5.1
Not specifically that version. But yes, a version.
Unfortunately, as the script works directly, there isn't anything we can do. I know I'm repeating myself, but we don't provide support running Chocolatey CLI through NTLite.
But didn't you say you provide support on a best-efforts basis? So if I put enough effort into the logging and details, surely you would be willing to? You or the dev team. I suppose you're on it. (on the dev team)
But didn't you say you provide support on a best-efforts basis?
Yes. For open-source Chocolatey CLI, in areas we support.
So if I put enough effort into the logging and details, surely you would be willing to? You or the dev team. I suppose you're on it.
If you can point to the issue being in Chocolatey CLI, then absolutely. But nothing that you have provided so far indicates that.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue will be closed in 14 days if it continues to be inactive.
Dear contributor,
As this issue seems to have been inactive for quite some time now, it has been automatically closed. If you feel this is a valid issue, please feel free to re-open the issue if / when a pull request has been added. Thank you for your contribution.
Checklist
What You Are Seeing?
Choco install fails when I run my script. It's supposed to work but it's not. I have to manually restart the powershell terminal for the script to work, this is unacceptable and used to NOT be the case at all.
I use the freeware called NTLIte to call scripts as admin, I used to use this exact same script with the exact same type of logging with great success, this is no more. Something must've changed on chocolatey's backend and I'd like some help.
What is Expected?
When NTLite calls this script:
This calls the installation script block as admin and it successfully installs the chocolatey client as ADMIN.
Immediately afterwards, as the second "script call" (SEPARATE powershell window), NTLite calls this script, as admin:
Which will install the necessary packages as admin.
The problem is as follows: The second script, directly above, does NOT install the packages. It displays the prompt no problem (Gaming PC? Yes or no?) but then immediately after I type in the answer (yes or no - case insensitive), it does not install anything, and it does not create a log file (only a log directory). So the "chocolatey" part of it is NOT working.
IF, however, I manually open a second powershell terminal and put in the exact same script (above), everything works perfectly.
How Did You Get This To Happen?
See explanation ABOVE
The problem is as follows: The second script, directly above, does NOT install the packages. It displays the prompt no problem (Gaming PC? Yes or no?) but then immediately after I type in the answer (yes or no - case insensitive), it does not install anything, and it does not create a log file (only a log directory). So the "chocolatey" part of it is NOT working.
IF, however, I manually open a second powershell terminal and put in the exact same script (above), everything works perfectly.
System Details
Installed Packages
None because chocolatey fails unexpectedly
Output Log
None because chocolatey fails unexpectedly
Additional Context
Idk I'm very angry and frustrated