+
Skip to content

jcoester/WinGet.lnk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

WinGet.lnk

A simple shortcut to quickly upgrade your apps using WinGet. No nonsense. Just 4 KB in size.

Why use WinGet.lnk?

Alice: "winget upgrade" is two words! I don't need a shortcut for that!

Bob: The shortcut is a visual reminder, a nudge, to occasionally check for updates. Beginners don’t need to remember any command prompts. Power users conveniently switch to custom prompts.

Perfect for:

  • Minimalists who believe less is more 🔧
  • Friends who fear the command line 😱
  • Parents who forget updates exist 🧓

Features

  • For Everyone: Not everyone is tech-savvy. It helps you, family, and friends stay updated.
  • Shareable: Create once, share anywhere. Copy it to a flash drive or send it via Email or a messenger.
  • Safe and Secure: No explicit admin rights required, no execution policy changes, no browser interaction.
  • Full Control: No autostart, no scheduling, no interruptions — you decide when to run.
  • Zero Nonsense: No third-party tools, no background processes, no notifications.

Basic Demo

Create WinGet.lnk in Under 30 Seconds

This script creates a WinGet.lnk shortcut on the Desktop. It assigns PowerShell as target, and icon 46 from shell32.dll.

  1. Copy the following script

    $shell = New-Object -ComObject WScript.Shell
    $shortcut = $shell.CreateShortcut([System.Environment]::GetFolderPath('Desktop') + '\WinGet.lnk')
    $shortcut.TargetPath = 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
    $shortcut.Arguments = '-NoExit -Command "winget upgrade; Write-Host ''''; $i = Read-Host ''Upgrade all packages? (Y/N)''; if ($i -match ''^[Yy]$'') { winget upgrade --all } else { Write-Host '''' }"'
    $shortcut.IconLocation = '%SystemRoot%\System32\shell32.dll,46'
    $shortcut.Save()
    exit
    
  2. Press Win + X, then select Windows PowerShell / Terminal from the menu.

  3. Paste (Right-Click) the copied script into your PowerShell window. Confirm the multi-line warning. Window closes automatically.

  4. (Optional) Once the shortcut is created, you can pin it to your Taskbar or Start Menu for easy access. Run it on Demand.

Technical info

The shortcut itself runs the following command in PowerShell:

-NoExit -Command "
    winget upgrade; Write-Host '';                  # Lists available upgrades
    $i = Read-Host 'Upgrade all packages? (Y/N)';   # Asks user how to proceed
    if ($i -match '^[Yy]$') {                       
        winget upgrade --all                        # Y ✅ : Upgrades apps automatically. Prompts UAC only when needed.
    } else {
        Write-Host ''                               # N ❌ : Lets user run custom prompts. Convenient for power users.
    }"

Custom Demo

Made with ❤️ for simplicity.

About

A simple shortcut to quickly upgrade your apps using WinGet. No nonsense. Just 4 KB in size.

Topics

Resources

Stars

Watchers

Forks

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载