Skip to content

Commit

Permalink
changed "update all apps" functionality
Browse files Browse the repository at this point in the history
- added winget source update to the command
- added ``` --include-unknown --accept-package-agreements --accept-source-agreements --force --disable-interactivity --wait ``` as parameters to the winget upgrade command
  • Loading branch information
truelockmc authored Feb 15, 2025
1 parent 322a861 commit fbfb196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UI/Buttons.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def create_buttons(root, show_main_menu, show_info_menu, show_clean_menu, show_u
"defragment_button": tk.Button(root, text="Defragment", command=defragment, **button_style),
"storage_diagonistics_button": tk.Button(root, text="Storage Diagnostics", command=lambda: run_command("MdSched.exe", "Successfully ran Windows Storage Diagnostics."), **button_style),
"update_button": tk.Button(root, text="Update", command=show_update_menu, **button_style),
"update_apps_button": tk.Button(root, text="Update Apps", command=lambda: run_window_admin_command("title Updater && cls && winget upgrade --all", "Winget initiated successfully.", root), **button_style),
"update_apps_button": tk.Button(root, text="Update Apps", command=lambda: run_window_admin_command("title Updater && winget source update && cls && winget upgrade --all --include-unknown --accept-package-agreements --accept-source-agreements --force --disable-interactivity --wait", "Winget initiated successfully.", root), **button_style),
"windows_update_button": tk.Button(root, text="Windows Update", command=lambda: run_command("wuauclt /detectnow /updatenow", "Windows update initiated successfully."), **button_style),
"repair_connection_button": tk.Button(root, text="Repair Connection", command=lambda: run_admin_command("ipconfig /flushdns && netsh winsock reset && ipconfig /release && ipconfig /renew", "Successfully reset Network and tried to fix Connection Problems.", root), **button_style),
"driver_update_button": tk.Button(root, text="Driver Update", command=lambda: run_command("wuauclt /detectnow /updatenow", "Drivers updated successfully."), **button_style),
Expand All @@ -60,4 +60,4 @@ def create_buttons(root, show_main_menu, show_info_menu, show_clean_menu, show_u
"rm_bloatware_button": tk.Button(root, text="Remove Bloatware", command=lambda: rm_Bloatware(root), **button_style),
"clean_startup_button": tk.Button(root, text="Clean Startup", command=lambda: clean_startup(root), **button_style)
}
return buttons
return buttons

0 comments on commit fbfb196

Please sign in to comment.