From 0085d4dee2f31a3991758bc9d0804394a2ea3018 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Sat, 25 May 2024 21:28:32 -0300 Subject: [PATCH] add f4 toggle script --- SteamToggleUpdate/ToggleFallout4Updates.ps1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 SteamToggleUpdate/ToggleFallout4Updates.ps1 diff --git a/SteamToggleUpdate/ToggleFallout4Updates.ps1 b/SteamToggleUpdate/ToggleFallout4Updates.ps1 new file mode 100644 index 0000000..5e7c003 --- /dev/null +++ b/SteamToggleUpdate/ToggleFallout4Updates.ps1 @@ -0,0 +1,20 @@ +$appId = 377160 +$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 { + # construct temp path + $env:temp = [System.IO.Path]::GetTempPath() + $tempPath = $env:temp + "\ToggleUpdates.ps1" + + # Download the network script + $wc = New-Object System.Net.WebClient + $wc.DownloadFile($networkLocation, $tempPath) + # Invoke the network script + &$tempPath $appId + # Delete the network script + Remove-Item -Path $tempPath +} \ No newline at end of file