diff --git a/SteamToggleUpdate/ToggleSkyrimUpdates.ps1 b/SteamToggleUpdate/ToggleSkyrimUpdates.ps1 new file mode 100644 index 0000000..0c2980c --- /dev/null +++ b/SteamToggleUpdate/ToggleSkyrimUpdates.ps1 @@ -0,0 +1,16 @@ +$appId = 489830 +$networkLocation = "https://raw.githubusercontent.com/IsaacShoebottom/Scripts/master/SteamToggleUpdate/ToggleUpdates.ps1" + +# Test if ToggleUpdates.ps1 exists and invoke it if it does +If (Test-Path -Path ".\ToggleUpdates.ps1" -PathType Leaf) { + .\ToggleUpdates.ps1 $appId +} +Else { + # Download the network script + $wc = New-Object System.Net.WebClient + $wc.DownloadFile($networkLocation, ".\ToggleUpdates.ps1") + # Invoke the network script + .\ToggleUpdates.ps1 $appId + # Delete the network script + Remove-Item -Path ".\ToggleUpdates.ps1" +} \ No newline at end of file