diff --git a/wingetSetup.ps1 b/wingetSetup.ps1 index ce7b97e..439b544 100644 --- a/wingetSetup.ps1 +++ b/wingetSetup.ps1 @@ -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 \ No newline at end of file + +# 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