New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NTLite fails to run PowerShell script with Chocolatey CLI commands #3411
Comments
Are you a Chocolatey for Business customer? If so, can you run 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:
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. UPDATE: I've fixed the formatting above and can now read it. You said this:
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? |
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. |
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 |
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) |
Yes. For open-source Chocolatey CLI, in areas we support.
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? |
Dear contributor, As this issue seems to have been inactive for quite some time now, it has been automatically closed. |
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
The text was updated successfully, but these errors were encountered: