From 888a5056cb42d875b15c5a18c34eeac2a62e70c7 Mon Sep 17 00:00:00 2001 From: amd64fox Date: Sat, 26 Nov 2022 05:38:14 +0300 Subject: [PATCH] Additional parameters in the web request to define new versions --- Install.ps1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Install.ps1 b/Install.ps1 index ff3905c..965bddf 100644 --- a/Install.ps1 +++ b/Install.ps1 @@ -537,8 +537,8 @@ function DesktopFolder { [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Stop-Process -Name Spotify - -if ($PSVersionTable.PSVersion.major -ge 7) { +$psv = $PSVersionTable.PSVersion.major +if ($psv -ge 7) { Import-Module Appx -UseWindowsPowerShell -WarningAction:SilentlyContinue } @@ -698,6 +698,9 @@ if ($spotifyInstalled) { Method = 'POST' Body = @{ 'entry.620327948' = $version + 'entry.1402903593' = $win_os + 'entry.860691305' = $psv + 'entry.2067427976' = $online + " меньше чем " + $offline } } Invoke-WebRequest @Parameters | Out-Null