Update wingetSetup.ps1

This commit is contained in:
Ryan 2024-09-08 03:20:26 +00:00
parent 224c65f4b0
commit 032cdc7da2

View File

@ -1,4 +1,18 @@
#winget install --id Git.Git -e --source winget
#Get-ExecutionPolicy
#Set-ExecutionPolicy RemoteSigned
#cd "$env:USERPROFILE\Downloads" ; git clone https://hmg.studio/HomeHosted/winget.git ; cd winget
# Command 1: Install Git without admin privileges
winget install --id Git.Git -e --source winget
# Command 2: Get current execution policy without admin privileges
Get-ExecutionPolicy
Set-ExecutionPolicy RemoteSigned
cd "$env:USERPROFILE\Downloads" ; git clone https://hmg.studio/HomeHosted/winget.git ; cd winget
# Command 3: Set execution policy to RemoteSigned with admin privileges
Start-Process powershell -ArgumentList "Set-ExecutionPolicy RemoteSigned -Scope CurrentUser" -Verb RunAs -Wait
# Command 4: Change directory, clone repository, and change directory without admin privileges
cd "$env:USERPROFILE\Downloads" ; git clone https://hmg.studio/HomeHosted/winget.git ; cd winget