From 07f3f8981bbc0794d1eab70b094e1854f9324fa9 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Thu, 26 Oct 2023 11:03:09 -0300 Subject: [PATCH] Add skyrim to toggle updates --- SteamToggleUpdate/ToggleSkyrimUpdates.ps1 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 SteamToggleUpdate/ToggleSkyrimUpdates.ps1 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