Sublime Forum

Icon on context menu windows

#1

pleas, add this skript after installation on windows,
it easy,
this skript make link icon and text on explorer,
user first see icon after read text!!! it is UE (user experience)

this skript add program icon on explorer before succes install sublimetext

show this file your programer

Thank you

this is *.bat file
run after install you sublime

@echo off
@reg add “HKEY_CLASSES_ROOT*\shell\Open with Sublime Text” /t REG_SZ /v “” /d “Open with Sublime Text” /f
@reg add “HKEY_CLASSES_ROOT*\shell\Open with Sublime Text” /t REG_EXPAND_SZ /v “Icon” /d “C:\Program Files\Sublime Text 3\sublime_text.exe,0” /f
@reg add “HKEY_CLASSES_ROOT*\shell\Open with Sublime Text\command” /t REG_SZ /v “” /d "“C:\Program Files\Sublime Text 3\sublime_text.exe” “%%1"” /f
pause

Tested on Windows10

0 Likes

#2

New installs of Sublime Text use the “Open With” menu instead of adding an extra menu item.

0 Likes

#3

Hmm. I just installed a fresh ST4 4110 in a fresh Win10 VM.

What I get is an extra “Open with Sublime Text” menu item (without icon).

grafik

According to procmon, it is added by installer.

1 Like

#4

You can use @jfcherng tool to add the context menu entry. Even change/remove the icon.

0 Likes

#5

As initial post shows, “everyone” knows how to do that. Also have that assigned as of day 1. The question just was whether it could be assigned automatically by official installer.

1 Like