Giter Club home page Giter Club logo

sergeiown / winget_upgrade Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 75 KB

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.

Home Page: https://github.com/sergeiown/Winget_Upgrade

License: MIT License

JavaScript 73.37% Batchfile 26.63%
node-js nodejs upgrade upgrade-tool upgrading windows winget

winget_upgrade's Introduction

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 and appearance
Dependencies image
Console appearance 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

winget_upgrade's People

Contributors

sergeiown avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.