diff --git a/solar/install-local.ps1 b/solar/install-local.ps1 index 6db8972..893e692 100644 --- a/solar/install-local.ps1 +++ b/solar/install-local.ps1 @@ -106,6 +106,8 @@ switch ($options[$selectedIndex]) { Remove-Item -Path "C:\solar\vosk-model-small-en-us-0.15_for_deleting" -Recurse -Force Remove-Item -Path "C:\solar\vosk-model-small-en-us-0.15.zip" -Recurse -Force + + Invoke-WebRequest -Uri "https://creative-crafter.de/solar/install-local.ps1" -OutFile "C:\solar\install-local.ps1" # Change directory to solarPath @@ -431,22 +433,6 @@ $oldPath = [Environment]::GetEnvironmentVariable("Path", "User") $newPath = "$oldPath;C:\solar" [Environment]::SetEnvironmentVariable("Path", $newPath, "User") -# Get the full path of this script -$scriptPath = $MyInvocation.MyCommand.Path - -# Folder where the script currently is -$currentFolder = $PSScriptRoot - -# Destination folder (change this to what you want) -$destinationFolder = "C:\solar" - -# Create the destination folder if it doesn't exist -if (!(Test-Path $destinationFolder)) { - New-Item -ItemType Directory -Path $destinationFolder | Out-Null -} - -# Copy this script into the destination folder -Copy-Item -Path $scriptPath -Destination (Join-Path $destinationFolder (Split-Path $scriptPath -Leaf)) -Force }