Install chocolatey profile for all future users

This commit is contained in:
Manuel Thalmann 2023-07-19 14:33:06 +02:00
parent b65f144d45
commit fa035a29b2
4 changed files with 17 additions and 8 deletions
scripts/Windows/Config/chocolatey

View file

@ -0,0 +1,16 @@
#!/bin/pwsh
powershell -c 'New-Item -Force $PROFILE';
choco install --force chocolatey;
Copy-Item -Force (powershell -c '$PROFILE') $PROFILE;
Push-Location ~;
$files = @((powershell -c '$PROFILE'), $PROFILE) | ForEach-Object { Resolve-Path -Relative $_ };
foreach ($profileFile in $files) {
Copy-Item -Force "~/$profileFile" "C:/Users/Default/$profileFile";
}
Pop-Location;
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1";