Closed arafelp closed 2 months ago
For all examples in this repo using WinGet to install an application, the .intunewin
file is a dummy file with no content. Found here:
.intunewin
file you can create tour own. 😊The install command for the Intune Win32 app calls WinGet on the computer/client directly, and not something inside the .intunewin
file.
@arafelp: I added an untested example for GIMP in user context:
To be sure WinGet tries to install GIMP in user context I'd change your command (add --scope user
):
cmd /c ""%LOCALAPPDATA%\Microsoft\WindowsApps\winget.exe" install --exact --id GIMP.GIMP --silent --source winget --accept-package-agreements --accept-source-agreements"
cmd /c ""%LOCALAPPDATA%\Microsoft\WindowsApps\winget.exe" install --exact --id GIMP.GIMP --scope user --silent --source winget --accept-package-agreements --accept-source-agreements"
and I didn't quite understand what the mention of this script is for?https://github.com/o-l-a-v/winget-intune-win32/blob/main/User%20context%20-%20Install/App%20-%20GIMP/WinGet%20-%20GIMP%20-%20Install%20parameters.md#script---app-installer--winget-minimum-version
A new enough version of WinGet must be present for the install command to work.
simply, if I understand correctly, these actions assume that winget is already installed/updated on the computer?
Please excuse me, but what is the way to pre-install\update winget on curnt user, using the Requirements from the link you provided?
simply, if I understand correctly, these actions assume that winget is already installed/updated on the computer?
Yes.
Please excuse me, but what is the way to pre-install\update winget on curnt user, using the Requirements from the link you provided?
I haven't solved that part yet. Microsoft Store will update apps eventually, and when App Installer ( https://apps.microsoft.com/detail/9nblggh4nns1?hl=en-us&gl=us ) eventuallly are updated, a recent enough version of WinGet will be present.
I started some work in progress stuff here to manually update App Installer and WinGet, but never went further than that:
Maybe this project can be used:
But as I state in the root README.md:
[!WARNING]
- I haven't been working with Intune for years now, so I don't know whether all this still works.
- Feel free to open an issue or create a PR if you find any problems. 🙂
- Files and info in this repo is provided as is. I'm not responsible for what you decide to push to your clients.
- If logic in this repo breaks, I do not commit to fix it in a timely manner.
Understood, thank you very much for your work and for your answer
You're welcome. 😊 I'll close the issue. Feel free to comment if there is anything more.
I'm sorry, I just started using Intune + winget, I didn't fully understand how to deploy the application in the user context (without admin rights) such as GIMP. The question is which script to use to create the .intunewin file, and if I understood correctly, in the Install field you need to use something like cmd /c ""%LOCALAPPDATA%\Microsoft\WindowsApps\winget.exe" install --exact --id GIMP. GIMP --silent --source winget --accept-package-agreements --accept-source-agreements"