Skip to content

Commit

Permalink
v4.3.1
Browse files Browse the repository at this point in the history
- fixed some bugs
  • Loading branch information
caglaryalcin committed May 18, 2024
1 parent 6d4fd58 commit ec67b6f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
29 changes: 27 additions & 2 deletions resume.psm1
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
##########
#region Priority
##########

Function Priority {
$ErrorActionPreference = 'SilentlyContinue'
New-PSDrive -PSProvider Registry -Name HKCU -Root HKEY_CURRENT_USER | Out-Null
New-PSDrive -PSProvider Registry -Name HKLM -Root HKEY_LOCAL_MACHINE | Out-Null
New-PSDrive -PSProvider Registry -Name HKU -Root HKEY_USERS | Out-Null
New-PSDrive -Name "HKCR" -PSProvider "Registry" -Root "HKEY_CLASSES_ROOT" | Out-Null
}

Priority

Function Silent {
$Global:ProgressPreference = 'SilentlyContinue'
}

##########
#endregion Priority
##########

$wingetWarnings = @()
Function InstallSoftwares {
Write-Host `n"---------Adjusting System Settings" -ForegroundColor Blue -BackgroundColor Gray
Write-Host "---------Adjusting System Settings" -ForegroundColor Blue -BackgroundColor Gray
Write-Host "Chapter completed."
Write-Host `n"---------Adjusting Privacy Settings" -ForegroundColor Blue -BackgroundColor Gray
Write-Host "Chapter completed."
Expand Down Expand Up @@ -1060,7 +1082,7 @@ Function UnusedApps {
Silent #silently
try {
# Stop OneDrive and Explorer processes
taskkill /F /IM OneDrive.exe /IM explorer.exe /T *>$null
taskkill /f /im OneDrive.exe *>$null

# Uninstall OneDrive
$OneDriveSetupPaths = @(
Expand Down Expand Up @@ -1257,6 +1279,9 @@ Function UnusedApps {
Remove-Item $fullPath3 -ErrorAction Stop
}
}

# Start Windows Explorer
Start-Process "explorer.exe" -NoNewWindow
}
catch {
Write-Host "[WARNING] $_" -ForegroundColor Red -BackgroundColor Black
Expand Down
1 change: 1 addition & 0 deletions set.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ Function SystemSettings {
Function SetDNS {
Write-Host `n"Which DNS provider " -NoNewline
Write-Host "do you want to use?" -ForegroundColor Yellow
Write-Host "Which DNS provider do you want to set? Write 1, 2 or 3."
Write-Host `n"[1]" -NoNewline -BackgroundColor Black -ForegroundColor Yellow
Write-Host " - Cloudflare"
Write-Host "[2]" -NoNewline -BackgroundColor Black -ForegroundColor Yellow
Expand Down

0 comments on commit ec67b6f

Please sign in to comment.