Skip to content

bostrot/PowerToysRunPluginWinget

Repository files navigation

Winget Plugin for PowerToys Run

This is a plugin for PowerToys Run that allows you to search and install packages from the Winget package manager.

image

Features

  • Search for packages from the Winget repository
  • Install packages directly from PowerToys Run
  • View package details and version information

Installation

Use the installation script release.ps1:

.\release.ps1

Then restart PowerToys

Or manually:

  1. Download the latest release of the Winget Plugin from the releases page.
  2. Extract the zip file's contents to your PowerToys modules directory (usually %LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins).
  3. Restart PowerToys.

Usage

  1. Open PowerToys Run (default shortcut is Alt+Space).
  2. Type winget followed by your search query.
  3. Select a package from the search results and press Enter to install it.

Build

  1. Clone the PowerToys repo.
  2. cd into the PowerToys directory.
  3. Initialize the submodules: git submodule update --init --recursive
  4. Clone this repo into the PowerToys/src/modules/launcher/Plugins directory. (git clone https://github.com/bostrot/PowerToysRunPluginWinget PowerToys/src/modules/launcher/Plugins/Community.PowerToys.Run.Plugin.Winget)
  5. Open the PowerToys.sln solution in Visual Studio.
  6. Add this project to the PowerToys.sln solution. (Right-click on the PowerToys solution in the Solution Explorer (under the path PowerToys/src/modules/launcher/Plugins) and select Add > Existing Project... and select the Community.PowerToys.Run.Plugin.Winget.csproj file.)
  7. Build the solution.
  8. Run the PowerToys project.

Contributing

Contributions are welcome! Please see our contributing guidelines for more information.

License

This project is licensed under the MIT License.

Create your own PowerToys Run Plugin

I wrote an article about that in my blog which might help you to get started: How to create a PowerToys Run plugin