bugfix: set location to dotfiles repo for admin processes

This commit is contained in:
Baipyrus 2024-11-24 22:39:20 +01:00
parent ff07ff7d17
commit 8c6dcd4590
3 changed files with 3 additions and 3 deletions

View File

@ -13,5 +13,5 @@ function ChocolateyInstall
# Start admin process, import this script, run 'InstallPackages' function
Start-Process powershell.exe -Verb RunAs -Wait `
-ArgumentList "-ExecutionPolicy", "Bypass", `
"-C", "Import-Module ./util/chocolatey.psm1; InstallPackages"
"-C", "cd $pwd; ipmo ./util/chocolatey.psm1; InstallPackages"
}

View File

@ -17,7 +17,7 @@ function WingetInstall
# Start admin process, import this script, run 'InstallPackages' function
Start-Process powershell.exe -Verb RunAs -Wait `
-ArgumentList "-ExecutionPolicy", "Bypass", `
"-C", "Import-Module ./util/winget.psm1; InstallWinget"
"-C", "cd $pwd; ipmo ./util/winget.psm1; InstallWinget"
}
winget.exe install -s winget --accept-source-agreements (Get-Content ./util/winget.list)

View File

@ -23,7 +23,7 @@ function WSLInstall
# Start admin process, import this script, run 'InstallPackages' function
Start-Process powershell.exe -Verb RunAs -Wait `
-ArgumentList "-ExecutionPolicy", "Bypass", `
"-C", "Import-Module ./util/wsl.psm1; InstallWSL"
"-C", "cd $pwd; ipmo ./util/wsl.psm1; InstallWSL"
}
wsl.exe --install -d Ubuntu