Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Winget Upgrade 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 upgrade using package ignore listing, and keeps an event log for easy tracking of the process.

License

NotificationsYou must be signed in to change notification settings

sergeiown/Winget_Upgrade

Repository files navigation

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 and appearance
Dependenciesimage
Console appearanceimage

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 allowsyou to easily install, update and uninstall software directly from the command line.Winget allows you to update installed programs quickly and conveniently, making ita useful tool for keeping your system up to date.

Functionality

1. Checking the availability of Winget

Before starting the update, the program checks whether Winget is installed on the system. If Winget is not installed, the program displays an error message and stops execution, providing instructions on how to install it.

Next, the program checks the version of Winget. If the version of Winget is less than the one required for correct execution of commands, the program displays an error message and provides instructions on how to update Winget to the latest version via the Microsoft Store or the command line.

2. Upgrading programs

The Winget Upgrade program uses thewinget export andwinget import commands to update all installed programs. Upgrade process:

  • Automatically accepts the terms of the agreement.
  • Disables interactivity, allowing the upgrade process to continue without interruption.

3. Logging.

The program keeps a log of events in the filewinget_upgrade.log, which stores information about:

  • Actions performed.
  • Errors.
  • Other events related to the upgrade process.

The log filewinget_upgrade.log is stored in the folder%USERPROFILE%\documents\.

4. Limiting the size of the log

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

5. Dynamic creation and application of an ignore file

  • When the program is first launched, it generates an ignore file templateignore.json, which specifies the packages that do not need to be updated. The user has the opportunity to add all the necessary packages, it should be noted thatpackage names are case sensitive. The template has the following structure:

    {"Packages": [    {"name":"REPLACE_WITH_PACKAGE_NAME"    },    {"name":"REPLACE_WITH_PACKAGE_NAME"    }  ]}
  • Once created the program tries to apply this ignore file. If the structure of the ignore file is invalid the program displays a warning message.

  • The program displays information about packets that are ignored in the console and log, forming messages for each packet on a new line which makes it easier to read.

System requirements

Supported on Windows versions with winget (Windows Package Manager) support: Windows 10 Version 1809 (Build 17763) and later or Windows 11windows_compatibility

Usage

Use thewinget_upgrade.exe available for download in therelease or use an alternative method:

  1. Run the program using the commandnode 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.

Additionally, you can usestart_menu_shortcut_enabler.bat, which will add a shortcutwinget_upgrade.exe to the Windows Start Menu which will automatically launch Winget Upgrade with the system.

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.
  • start_menu_shortcut_enabler.bat: a batch script that adds thewinget_upgrade.exe shortcut to the Windows Start Menu or removes it if necessary.

License

Copyright (c) 2024 Serhii I. Myshko

About

Winget Upgrade 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 upgrade using package ignore listing, and keeps an event log for easy tracking of the process.

Topics

Resources

License

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp