Skip to content

Winget Upgrader is a Node.js command line tool that automates the process of updating software on your computer using Windows Package Manager (Winget). It automatically checks for Winget on your system, performs the software updates, and keeps an event log for easy tracking of the process.

License

Notifications You must be signed in to change notification settings

sergeiown/Winget_Upgrade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Winget Upgrader

EN | UA

Winget Upgrader is a Node.js command line tool that automates the process of updating software on your computer using Windows Package Manager (Winget).

Structure:
Dependencies image

Winget Upgrader uses Winget commands to update all software installed on your computer. It automatically checks for Winget on your system, performs the software updates, and keeps an event log for easy tracking of the process.

Windows Package Manager (Winget) is a package management tool for Windows that allows
you to easily install, update and uninstall software directly from the command line.
Winget allows you to update installed programs quickly and conveniently, making it
a useful tool for keeping your system up to date.

Functionality

Check for Winget availability

Before starting the update, the program checks if Winget is installed on the system. If Winget is not installed, the program displays an error and stops working.

Updating programs

Winget Upgrader uses the winget upgrade --all command to upgrade all installed programs. It automatically accepts the terms of the agreement and disables interactivity so that the upgrade process is continuous.

Logging

The program keeps a log of events in the winget_upgrade.log file, where it stores information about actions performed, errors and other events related to the upgrade process. The winget_upgrade.log log file is saved in %USERPROFILE%\documents\ folder.

Limiting the size of the log

The log is automatically truncated if its size exceeds 256 KB to avoid file overflow.

System requirements

  1. Windows OS with Winget support.
  2. Node.js installed on your computer.

Usage

Use the winget_upgrade.exe available for download in the release or use an alternative method:

  1. Run the program using the command node main.js.
  2. The program will automatically check for Winget in the system.
  3. If Winget is present, it will start updating the entire software.
  4. The upgrade process will be displayed in the console window and written to the %USERPROFILE%\documents\winget_upgrade.log log file.
  5. After the update is complete, the program will automatically exit in 10 seconds, or you can exit manually by pressing any key.

Error messages

In case of errors, the program displays the corresponding messages in the console and writes them to the log file for further analysis.

Shutting down the program

When the program is finished updating, it automatically exits to free up system resources.

Attached files

  • main.js: The main program file.
  • utils.js: Module for executing commands and logging events.
  • settings.js: A module that contains the necessary settings for executing commands and logging events.

License

Copyright (c) 2024 Serhii I. Myshko

About

Winget Upgrader is a Node.js command line tool that automates the process of updating software on your computer using Windows Package Manager (Winget). It automatically checks for Winget on your system, performs the software updates, and keeps an event log for easy tracking of the process.

Topics

Resources

License

Stars

Watchers

Forks