Solved Ms Paint in context menu


DMD

Well-known member
Member
Local time
10:53 PM
Posts
130
OS
W11
Good morning
I am asking if there is a better way to add Paint in the context menu.
I copied the .ico image to the path "%windir%\SysWOW64"

Then I created the .reg file
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Paint]
@="Paint"
"icon"="%windir%\\SysWOW64\\Microsoft_Paint.ico"
"Position"="Bottom"

[HKEY_CLASSES_ROOT\Directory\Background\shell\Paint\command]
@="C:\\Program Files\\WindowsApps\\Microsoft.Paint_11.2304.17.0_x64__8wekyb3d8bbwe\\PaintApp\\mspaint.exe"

The doubt is if the version of Paint is updated, the reg command no longer works as the version name changes.
That is why I ask if there is a better way.
Thank you.
 

My Computer

System One

  • OS
    W11
    Computer type
    PC/Desktop
    CPU
    CPU AMD Ryzen 9 7950X
    Motherboard
    ASUS ROG Strix X670E-F Gaming WiFi
    Memory
    G.Skill Flare X5 32GB Kit DDR5-6000 CL32 (F5-6000J3238F16GX2-FX5)
    Monitor(s) Displays
    LG E2381VR
    Screen Resolution
    1920x1080
    Hard Drives
    1x Samsung Memorie MZ-V8P1T0B 980 PRO SSD 1TB
    2x Western Digital WD Red Nas 4TB
    PSU
    SEASONIC FOCUS PX-850 Plus Platinum
    Case
    Corsair 4000D Airflow
    Cooling
    ARCTIC Liquid Freezer II 280 A-RGB
    Keyboard
    Logitech G510
    Mouse
    Logitech G502 HERO
    Browser
    Firefox
    Antivirus
    Avg free
    Other Info
    Download: 90 Mbps
    Upload: 20Mbps
Most UWP apps have a default AppID, which is meant to be called from Explorer. You're not supposed to invoke the EXE file directly in the UWP programming model, but use the provided AppID.

Always search for the correct alias, instead of assuming they all follow the same pattern.
Code:
powershell "Get-StartApps | where { $_.Name -like \"*Paint*\" }"

Name  AppID
----  -----
Paint Microsoft.Paint_8wekyb3d8bbwe!App

The correct way to launch Paint from the command line is:
explorer shell:appsFolder\Microsoft.Paint_8wekyb3d8bbwe!App

UWP app icons present a different set of problems:
- They're hidden in a protected "\Program Files\WindowsApps" folder under a version-numbered App folder
- App icons are in PNG format

Search for the file PaintAppList.scale-100.ico in one of Paint's folders and copy to your own path (where you have read permission). Then convert PNG to ICO using one of those online sites.

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Paint]
@="Paint"
"icon"="C:\\Users\\GARLIN\\Downloads\\PaintAppList.scale-100.ico"
"Position"="Bottom"

[HKEY_CLASSES_ROOT\Directory\Background\shell\Paint\command]
@="explorer shell:appsFolder\\Microsoft.Paint_8wekyb3d8bbwe!App"

1696174318021.png
 

My Computer

System One

  • OS
    Windows 7
You are Great!!!
Thank you very much.
Just asking if they update the version will the link still work?

Immagine-2023-10-01-190347.png
 

My Computer

System One

  • OS
    W11
    Computer type
    PC/Desktop
    CPU
    CPU AMD Ryzen 9 7950X
    Motherboard
    ASUS ROG Strix X670E-F Gaming WiFi
    Memory
    G.Skill Flare X5 32GB Kit DDR5-6000 CL32 (F5-6000J3238F16GX2-FX5)
    Monitor(s) Displays
    LG E2381VR
    Screen Resolution
    1920x1080
    Hard Drives
    1x Samsung Memorie MZ-V8P1T0B 980 PRO SSD 1TB
    2x Western Digital WD Red Nas 4TB
    PSU
    SEASONIC FOCUS PX-850 Plus Platinum
    Case
    Corsair 4000D Airflow
    Cooling
    ARCTIC Liquid Freezer II 280 A-RGB
    Keyboard
    Logitech G510
    Mouse
    Logitech G502 HERO
    Browser
    Firefox
    Antivirus
    Avg free
    Other Info
    Download: 90 Mbps
    Upload: 20Mbps
AppID is generic across all versions of the same app. That's why it has no version in the path.
 

My Computer

System One

  • OS
    Windows 7
Good evening.
I ask if it is possible to enable in the context menu "Edit with Paint" when opening an image.
Thank you
 

My Computer

System One

  • OS
    W11
    Computer type
    PC/Desktop
    CPU
    CPU AMD Ryzen 9 7950X
    Motherboard
    ASUS ROG Strix X670E-F Gaming WiFi
    Memory
    G.Skill Flare X5 32GB Kit DDR5-6000 CL32 (F5-6000J3238F16GX2-FX5)
    Monitor(s) Displays
    LG E2381VR
    Screen Resolution
    1920x1080
    Hard Drives
    1x Samsung Memorie MZ-V8P1T0B 980 PRO SSD 1TB
    2x Western Digital WD Red Nas 4TB
    PSU
    SEASONIC FOCUS PX-850 Plus Platinum
    Case
    Corsair 4000D Airflow
    Cooling
    ARCTIC Liquid Freezer II 280 A-RGB
    Keyboard
    Logitech G510
    Mouse
    Logitech G502 HERO
    Browser
    Firefox
    Antivirus
    Avg free
    Other Info
    Download: 90 Mbps
    Upload: 20Mbps
Good morning.
I managed to find the registo key to enable "Edit with Paint" when an image is selected with the right mouse button.
The icon I attached I copied it to the root "%windir%\SysWOW64"

Immagine-2023-11-03-134544.png

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Open With Paint]
@="&Edit with Paint"
"icon"="%windir%\\SysWOW64\\Microsoft_Paint.ico"


[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Open With Paint\command]
@="mspaint.exe \"%1\""
I must admit that I am having a very strange situation.
The command, worked fine for a long time, but when I updated Paint via Microsoft Store, the command to call the registry key "@="mspaint.exe \"%1\"" no longer works.
If I am not mistaken, the command should launch the executable "mspaint.exe" which is located in the path.
"C:\Program Files\WindowsApps\Microsoft.Paint_11.2309.28.0_x64__8wekyb3d8bbwe\PaintApp"
In fact launching this executable does not start..

I tried replacing the registry key call command with.
"@="explorer shell:appsFolder\Microsoft.Paint_8wekyb3d8bbwe!App"
When I select an image and run the command, Paint opens not with the selected image but with the default interface.
Any ideas?
Thank you very much.
 

Attachments

  • Microsoft_Paint.zip
    21.5 KB · Views: 2

My Computer

System One

  • OS
    W11
    Computer type
    PC/Desktop
    CPU
    CPU AMD Ryzen 9 7950X
    Motherboard
    ASUS ROG Strix X670E-F Gaming WiFi
    Memory
    G.Skill Flare X5 32GB Kit DDR5-6000 CL32 (F5-6000J3238F16GX2-FX5)
    Monitor(s) Displays
    LG E2381VR
    Screen Resolution
    1920x1080
    Hard Drives
    1x Samsung Memorie MZ-V8P1T0B 980 PRO SSD 1TB
    2x Western Digital WD Red Nas 4TB
    PSU
    SEASONIC FOCUS PX-850 Plus Platinum
    Case
    Corsair 4000D Airflow
    Cooling
    ARCTIC Liquid Freezer II 280 A-RGB
    Keyboard
    Logitech G510
    Mouse
    Logitech G502 HERO
    Browser
    Firefox
    Antivirus
    Avg free
    Other Info
    Download: 90 Mbps
    Upload: 20Mbps
Your reg file in post #6 is working for me.

Check if mspaint is correctly registered as a symlink in your AppDataLocal.
Code:
> where mspaint
C:\Users\GARLIN\AppData\Local\Microsoft\WindowsApps\mspaint.exe

> powershell "get-item C:\Users\GARLIN\AppData\Local\Microsoft\WindowsApps\mspaint.exe | select Attributes"
           Attributes
           ----------
Archive, ReparsePoint
 

My Computer

System One

  • OS
    Windows 7
Where can one find a list of AppID's for windows 11 UWP apps? I am having trouble finding anything.

EDIT: Never mind, I am blind.

Always search for the correct alias, instead of assuming they all follow the same pattern.
Code:
powershell "Get-StartApps | where { $_.Name -like \"*Paint*\" }"

Name  AppID
----  -----
Paint Microsoft.Paint_8wekyb3d8bbwe!App
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build: 22631.3374
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 1 x 24" LG M38H 1 x 32" LF6300 TV Monitor 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    2 x WD something Something 8TB HDD's / 2 x WD something Something 4TB HDD's / 1 x EVO 1TB SSD / 2 x QVO 1TB SSD's / 1 x EVO 250 GB SSD / 2 x QVO 1TB (External Hub) / 1 x EVO 1TB (Portable Backup Case)
    PSU
    Silverstone 1500
    Case
    NZXT Full Tower
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 22621.2215
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Graphics processor is an Intel Iris Xe
    Sound Card
    optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Other Info
    …still on a horse.
Your reg file in post #6 is working for me.

Check if mspaint is correctly registered as a symlink in your AppDataLocal.
Code:
> where mspaint
C:\Users\GARLIN\AppData\Local\Microsoft\WindowsApps\mspaint.exe

> powershell "get-item C:\Users\GARLIN\AppData\Local\Microsoft\WindowsApps\mspaint.exe | select Attributes"
           Attributes
           ----------
Archive, ReparsePoint

I ran the powershell command, it goes verify seems ok to me
Code:
PS C:\Windows\system32> powershell "get-item C:\Users\MIMMO\AppData\Local\Microsoft\WindowsApps\mspaint.exe | select Attributes"

           Attributes
           ----------
Archive, ReparsePoint

In the meantime, I tried doing some research on the web and experimented with a modified registry key.
This solution also seems to work with the updated version of Paint.
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Edit]
"AppUserModelID"="Microsoft.Paint_8wekyb3d8bbwe!App"
"ContractId"="Windows.File"
"Default.orig"="@{Microsoft.Paint_8wekyb3d8bbwe!App-resource://Microsoft.Paint/Resources/ShellContextMenuEdit}"
"DesiredInitialViewState"=dword:00000000
"DesktopAppXActivateOptions"=dword:00000020
"icon"="%windir%\\SysWOW64\\Microsoft_Paint.ico"
"PackageId"="Microsoft.Paint_8wekyb3d8bbwe!App"
"PackageRelativeExecutable"="PaintApp\\mspaint.exe"
"Parameters"="\"%1\""
@="Edit with Paint"

[HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\Edit\command]
"DelegateExecute"="{BFEC0C93-0B7D-4F2C-B09C-AFFFC4BDAE78}"
@="\"C:\\Program Files\\WindowsApps\\Microsoft.Paint_8wekyb3d8bbwe!App\\PaintApp\\mspaint.exe\" \"%1\""
 

My Computer

System One

  • OS
    W11
    Computer type
    PC/Desktop
    CPU
    CPU AMD Ryzen 9 7950X
    Motherboard
    ASUS ROG Strix X670E-F Gaming WiFi
    Memory
    G.Skill Flare X5 32GB Kit DDR5-6000 CL32 (F5-6000J3238F16GX2-FX5)
    Monitor(s) Displays
    LG E2381VR
    Screen Resolution
    1920x1080
    Hard Drives
    1x Samsung Memorie MZ-V8P1T0B 980 PRO SSD 1TB
    2x Western Digital WD Red Nas 4TB
    PSU
    SEASONIC FOCUS PX-850 Plus Platinum
    Case
    Corsair 4000D Airflow
    Cooling
    ARCTIC Liquid Freezer II 280 A-RGB
    Keyboard
    Logitech G510
    Mouse
    Logitech G502 HERO
    Browser
    Firefox
    Antivirus
    Avg free
    Other Info
    Download: 90 Mbps
    Upload: 20Mbps
Back
Top Bottom