Add winget repair helper and remove winget configure --enable prerequisite
Initialize-Winget.ps1 refreshes PATH, re-registers App Installer and falls back to the provisioned package before exiting with a Store link. All scripts that call winget now dot-source this helper instead of failing on a missing winget. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
# Script d'installation de logiciels avec winget
|
||||
# Permet de choisir les logiciels a installer
|
||||
|
||||
# Verification que winget est installe
|
||||
if (-not (Get-Command winget -ErrorAction SilentlyContinue)) {
|
||||
Write-Host "ERREUR: winget n'est pas installe sur ce systeme." -ForegroundColor Red
|
||||
Write-Host "Veuillez installer le 'App Installer' depuis le Microsoft Store." -ForegroundColor Yellow
|
||||
exit 1
|
||||
}
|
||||
. (Join-Path $PSScriptRoot "Initialize-Winget.ps1")
|
||||
Initialize-Winget
|
||||
|
||||
Write-Host "===========================================================" -ForegroundColor Cyan
|
||||
Write-Host " Script d'installation de logiciels avec winget" -ForegroundColor Cyan
|
||||
|
||||
Reference in New Issue
Block a user