disable w10 privacy (#19)

This commit is contained in:
Mylloon 2024-04-08 17:56:21 +02:00
parent 2f3664568f
commit 9d58ba3f71
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

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