remove W10privacy

This commit is contained in:
Mylloon 2024-04-08 18:00:12 +02:00
parent 02eeb3621a
commit 54f9dd5125
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -175,25 +175,6 @@ PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/vencord_installer.bat
:: PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_obs_shortcut.bat -OutFile '!local!\fix_obs_shortcut.bat'" :: PowerShell -Command "Invoke-WebRequest -Uri !repo!/windows/fix_obs_shortcut.bat -OutFile '!local!\fix_obs_shortcut.bat'"
:: === W10Privacy ==
:: TODO: Flagged as a virus by Defender
:: ECHO W10Privacy...
:: PowerShell -Command "Invoke-WebRequest -Uri !repo!/W10Privacy.ini -OutFile '%HOMEPATH%\Downloads\W10Privacy.ini'"
:: ECHO Ensuite, utilise W10Privacy avec le fichier present dans %HOMEPATH%\Downloads.
:: PowerShell -Command "" ^
:: "$archive = '%TEMP%\W10Privacy.zip';" ^
:: "Invoke-WebRequest -Uri https://www.w10privacy.de/app/download/12302828636/W10Privacy.zip -OutFile $archive;" ^
:: "Expand-Archive -Path $archive -DestinationPath $env:TEMP -Force;" ^
:: "$file = $env:TEMP + '\\' + (Get-ChildItem $env:TEMP\W10Privacy*.exe).BaseName + '.exe';" ^
:: "Start-Process $file /S -NoNewWindow -Wait -PassThru;" ^
:: "$shortcut = '%APPDATA%\Microsoft\Windows\Start Menu\Programs\W10Privacy.lnk';" ^
:: "$bytes = [System.IO.File]::ReadAllBytes($shortcut);" ^
:: "$bytes[0x15] = $bytes[0x15] -bor 0x20;" ^
:: "[System.IO.File]::WriteAllBytes($shortcut, $bytes);" ^
:: "Remove-Item -Force $archive;" ^
:: "Remove-Item -Force $file"
:: === Geek Uninstaller == :: === Geek Uninstaller ==
ECHO Geek Uninstaller... ECHO Geek Uninstaller...
PowerShell -Command "" ^ PowerShell -Command "" ^