{"id":13576320,"url":"https://github.com/Romanitho/Winget-Install","last_synced_at":"2025-04-05T05:31:28.570Z","repository":{"id":37080500,"uuid":"454170553","full_name":"Romanitho/Winget-Install","owner":"Romanitho","description":"Powershell scripts for Winget with SCCM/Intune","archived":false,"fork":false,"pushed_at":"2025-01-24T13:01:55.000Z","size":127,"stargazers_count":245,"open_issues_count":0,"forks_count":43,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-03T20:09:22.599Z","etag":null,"topics":["winget"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Romanitho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-31T21:08:19.000Z","updated_at":"2025-04-03T15:16:31.000Z","dependencies_parsed_at":"2023-02-16T19:20:31.851Z","dependency_job_id":"8e5d04b7-2df6-48d2-ad1b-368699d5ff7c","html_url":"https://github.com/Romanitho/Winget-Install","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanitho%2FWinget-Install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanitho%2FWinget-Install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanitho%2FWinget-Install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanitho%2FWinget-Install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Romanitho","download_url":"https://codeload.github.com/Romanitho/Winget-Install/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294320,"owners_count":20915333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["winget"],"created_at":"2024-08-01T15:01:09.152Z","updated_at":"2025-04-05T05:31:23.559Z","avatar_url":"https://github.com/Romanitho.png","language":"PowerShell","funding_links":[],"categories":["others","PowerShell"],"sub_categories":[],"readme":"# Winget-Install (Will be part of WAU - Work in progress)\nPowershell scripts to install Winget Packages with SCCM/Intune (or similar) or even as standalone in system context (Inspired by [o-l-a-v](https://github.com/o-l-a-v) work)\n\n## Install\n### SCCM\n- Create an application and put the \"winget-install.ps1\" script as sources\n- For install command, put this command line:  \n`powershell.exe -ExecutionPolicy bypass -File winget-install.ps1 -AppIDs Notepad++.Notepad++`\n\n![image](https://user-images.githubusercontent.com/96626929/152222570-da527307-ecc9-4fc2-b83e-7891ffae36ee.png)\n\n### Intune\n- Create Intunewin with the \"winget-install.ps1\" script\n- Create a Win32 application in Intune\n- Put this command line as Install Cmd (Must call 64 bits powershell in order to work):  \n`\"%systemroot%\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe\" -NoProfile -ExecutionPolicy Bypass -File winget-install.ps1 -AppIDs Notepad++.Notepad++`\n\n\u003e You can also use **WingetIntunePackager** tool to package apps from a GUI: https://github.com/Romanitho/WingetIntunePackager\n\n### Use Winget native parameters\nYou can add custom parameter in your `AppIDs` argument. Don't forget to escape the quote:  \n`powershell.exe -Executionpolicy Bypass -File winget-install.ps1 -AppIDs \"Citrix.Workspace --override \\\"/silent /noreboot /includeSSON /forceinstall\\\"\"`  \nDetails: https://github.com/Romanitho/Winget-Install/discussions/20\n\n### Multiple apps at once\n- Run this command  \n`powershell.exe -Executionpolicy Bypass -Command .\\winget-install.ps1 -AppIDs \"7zip.7zip, Notepad++.Notepad++\"`\n\n## Detection method\n- Use the \"winget-detect.ps1\" with SCCM or Intune as detection method.\n- Replace \"$AppToDetect\" value by your App ID  \n`$AppToDetect = \"Notepad++.Notepad++\"`\n\n## Updates\nhttps://github.com/Romanitho/Winget-autoupdate\n\n## Uninstall\n- To uninstall an app, you can use:  \n`powershell.exe -ExecutionPolicy bypass -File winget-install.ps1 -AppIDs Notepad++.Notepad++ -Uninstall`\n\nbut most of the time, winget does not manage silent uninstall correcty.\n- I would suggest to use the original application uninstaller method, something like this:  \n`C:\\Program Files\\Notepad++\\uninstall.exe /S`\n\n## Custom (Mods)\n\nThe **Mods feature** allows you to run additional scripts before/when/after installing or uninstalling an app.  \nJust put the script with the **AppID** followed by the suffix to be considered in the **Mods directory**:  \n**AppID**`-preinstall.ps1`, `-install.ps1`, `-installed-once.ps1`, `-installed.ps1`, `-preuninstall.ps1`, `-uninstall.ps1` or `-uninstalled.ps1`  \n\n\u003e Example:  \n\u003e Runs before install: `AppID-preinstall.ps1`  \n\u003e Runs during install (before install check): `AppID-install.ps1`  \n\u003e Runs after install has been confirmed (one time): `AppID-installed-once.ps1`  \n\u003e Runs after install has been confirmed: `AppID-installed.ps1`  \n\u003e Runs before uninstall: `AppID-preuninstall.ps1`  \n\u003e Runs during uninstall (before uninstall check): `AppID-uninstall.ps1`  \n\u003e Runs after uninstall has been confirmed: `AppID-uninstalled.ps1`  \n\nIf you're using [**WAU** (Winget-AutoUpdate)](https://github.com/Romanitho/Winget-AutoUpdate) they get copied to the **WAU mods** directory (except `-installed-once.ps1/-preuninstall.ps1/-uninstall.ps1/-uninstalled.ps1`) and also runs when upgrading apps in **WAU**.\n\n`AppID-installed-once.ps1` runs instead of `AppID-installed.ps1` from **Winget-Install**.  \n\nThey are deleted from **WAU** on an uninstall (if deployed from **Winget-Install**)\n\n## Other ideas and approaches\nhttps://github.com/o-l-a-v/winget-intune-win32\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRomanitho%2FWinget-Install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRomanitho%2FWinget-Install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRomanitho%2FWinget-Install/lists"}