Fix Adwcleaner and shutup10 not running (#96)

* Change CONTRIBUTING to a less strict policy

* Fix path not being found while downloading (#95)
- This is not a complete fix
main
Plínio Larrubia 2 years ago committed by Plínio Larrubia
parent 427d2ca059
commit d62ebe2ce6
No known key found for this signature in database
GPG Key ID: 057B0A87CB137C69

@ -21,11 +21,14 @@ function Request-FileDownload {
Write-Verbose "[?] I'm at: $PWD"
Write-Verbose "[?] Downloading at: $OutputFolder + $ExtendFolder"
$OutputFolder = Join-Path -Path $OutputFolder -ChildPath $ExtendFolder
If ($ExtendFolder) {
$OutputFolder = Join-Path -Path $OutputFolder -ChildPath $ExtendFolder
}
If (!(Test-Path $OutputFolder)) {
Write-Status -Types "@" -Status "$OutputFolder doesn't exist, creating folder..."
New-Item -Path $OutputFolder
New-Item -Path $OutputFolder -ItemType Directory
}
$FileLocation = $(Join-Path -Path $OutputFolder -ChildPath "$OutputFile")

@ -13,7 +13,7 @@ function Use-DebloatSoftware() {
If (!$Revert) {
$AdwCleanerDl = "https://downloads.malwarebytes.com/file/adwcleaner"
$AdwCleanerOutput = Request-FileDownload -FileURI $AdwCleanerDl -OutputFile "adwcleaner.exe"
[String] $AdwCleanerOutput = Request-FileDownload -FileURI $AdwCleanerDl -OutputFile "adwcleaner.exe"
Write-Status -Types "+" -Status "Running MalwareBytes AdwCleaner scanner..."
Start-Process -FilePath $AdwCleanerOutput -ArgumentList "/eula", "/clean", "/noreboot" -Wait
Remove-ItemVerified $AdwCleanerOutput -Force
@ -21,7 +21,7 @@ function Use-DebloatSoftware() {
Copy-Item -Path "$PSScriptRoot\..\configs\shutup10" -Destination "$(Get-TempScriptFolder)\downloads" -Recurse -Force
$ShutUpDl = "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe"
$ShutUpOutput = Request-FileDownload -FileURI $ShutUpDl -ExtendFolder "shutup10" -OutputFile "OOSU10.exe"
[String] $ShutUpOutput = Request-FileDownload -FileURI $ShutUpDl -ExtendFolder "shutup10" -OutputFile "OOSU10.exe"
Push-Location -Path (Split-Path -Path $ShutUpOutput)
If ($Revert) {
@ -32,7 +32,7 @@ function Use-DebloatSoftware() {
Start-Process -FilePath $ShutUpOutput -ArgumentList "ooshutup10.cfg", "/quiet" -Wait # Wait until the process closes #
}
Remove-ItemVerified "$ShutUpOutput" -Force # Leave no extra files
Remove-ItemVerified $ShutUpOutput -Force # Leave no extra files
Pop-Location
}

Loading…
Cancel
Save