Comments (5)
Hello,
any attempt to use winget via winrm will be unable to actually update source lists & unable to accept any source agreement.
Can you please provide a few examples/commands or screenshots?
Without the logs I'm not sure at what point the script fails. The script your provided is essentially what this script does at some point, it's similar but not quite the exact same.
Can you please try to get the script output? You can call the script and get the script output by doing this...
&([ScriptBlock]::Create((irm asheroto.com/winget))) -Force -DebugMode *> C:\winget-install.log
which will save the log to c:\winget-install.log
in text format.
Or if you have the script locally you can just append *> c:\winget-install.log
(space before the *
) and it will output to that location as well.
from winget-install.
Sorry just to clarify. The install script works and installs, however winget is currently not possible to run via winrm when it's installed in the standard layout. So while the install works its just not usable from winrm
The link above shows an alternate method of install that puts all of the winget requirements into a single directory which then allows winget to run and install packages from winrm.
So my request is to have a flag in the winget install script to install winget in the alternative fashion of having all the requirements in one folder and update the windows path.
from winget-install.
Ah I see. I'm trying to figure out what the difference is in the script. Maybe I can just add a line or two.
It looks like it operates the same as the script in the link you mentioned, but it does not do this...
cmd /c setx /M PATH "%PATH%;$ENV:PROGRAMFILES\WinGet"
Can you check on your winrm instance and see if winget is installed to that folder and this command corrects the issue after running this script?
I'm thinking maybe it's the setx
because that changes the path.
from winget-install.
Related Issues (20)
- License HOT 1
- does not work on server 2019 ( but it should ) HOT 3
- Winget not installing HOT 12
- WINGET NOT INSTALLING HOT 3
- issue HOT 2
- No applicable app licenses found HOT 2
- WARNING: Error: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. HOT 1
- Install as SYSTEM user HOT 20
- Error when installing HOT 13
- [Feature request]: Initializing winget without rebooting HOT 13
- [Feature request]: Automation of closing conflicting processes during installation HOT 39
- [Bug]: one-liner and conhost issue HOT 1
- [Bug]: default terminal application and powershell x86 issue HOT 12
- [Request]: -NoExit argument HOT 6
- Does this work on Server 2019/2022? HOT 4
- how to uninstall everything the .ps1 file installed HOT 1
- Check if WinGet is installed HOT 1
- Errors when installing HOT 9
- some kind of problem when installing WinGet HOT 3
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 winget-install.