- package: tis-add-vscode-right-click
- name: Add VSCode in right click context menu
- version: 1-3
- categories: System,Utilities
- maintainer: WAPT Team,Tranquil IT,Flavien SCHELFAUT
- licence: proprietary_free
- locale: all
- target_os: windows
- architecture: all
- signature_date:
- size: 6.42 Ko
- depends:
package : tis-add-vscode-right-click
version : 1-3
architecture : all
section : base
priority : optional
name : Add VSCode in right click context menu
categories : System,Utilities
maintainer : WAPT Team,Tranquil IT,Flavien SCHELFAUT
description : Add 'Open with Code' to the Windows right-click context menu
depends : tis-vscode
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.5
sources :
installed_size :
impacted_process :
description_fr : Ajout de l'option 'Open with Code' au clic droit de Windows
description_pl : Dodaje opcję „Otwórz za pomocą kodu” do menu kontekstowego Windows dostępnego po kliknięciu prawym przyciskiem myszy.
description_de : Fügt dem Windows-Kontextmenü mit der rechten Maustaste die Option „Mit Code öffnen“ hinzu
description_es : Añade «Abrir con código» al menú contextual del botón derecho de Windows.
description_pt : Adiciona “Abrir com código” ao menu de contexto do botão direito do rato do Windows
description_it : Aggiunge “Apri con codice” al menu contestuale del clic destro di Windows.
description_nl : BVoegt ‘Openen met code’ toe aan het contextmenu van Windows met rechtermuisknop.
description_ru : Добавляет «Открыть с помощью кода» в контекстное меню Windows, вызываемое правой кнопкой мыши
audit_schedule :
editor :
keywords :
licence : proprietary_free
homepage :
package_uuid : e9124b8a-051b-4397-920d-352d1a9dc36b
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 10.0
max_os_version :
icon_sha256sum : 7891f1ca19ac8a9e41cb2963c0833bb3424a1dcc3f89e6ae484b1841a67063b2
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-06-09T08:00:56.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature : EsmOmQWyDmuzIsLq3GaLOwkhXHsZKlw/ow0NN85b1Lja5B6qKgKJicD214Na5lywyJv+luMePtMRdmdv261zqvCplwpefU2P9tvpumtPBaJwOFYUXdCzPsUIOArNpXU2VupgBsH809uDSyZ12Wbwpipu7aaPr/5osUQRyeggRQGNQqurpkjrXRAtuqCNrhlTIkC0z3dfgtXF+QUjQqcjv5ei+a2fgLNHz6WrXhozcG5Nu8zVxkCvxwbhcjL+PPE6TpRmHloUpiqnO52ALHQmXdTxFNPwtkzksyM5BWR68N1QwajgtyJf6dKtX646Z8jDlERQZJ9xj//5E5X8rxDq7g==
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
def install():
# if params.get("running_as_luti"):
# time.sleep(120)
install_location_vscode = installed_softwares('Microsoft Visual Studio Code')[0]['install_location']
bin_name_path_vscode = makepath(install_location_vscode, 'Code.exe')
print("Adding VSCode to the right click menu")
registry_set(HKEY_CLASSES_ROOT, r'*\shell\VSCode', '', 'Open w&ith Code', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'*\shell\VSCode', 'Icon', f'"{bin_name_path_vscode}"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'*\shell\VSCode\command', '', f'"{bin_name_path_vscode}" "%1"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\Background\shell\VSCode', '', 'Open w&ith Code', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\Background\shell\VSCode', 'Icon', f'"{bin_name_path_vscode}"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\Background\shell\VSCode\command', '', f'"{bin_name_path_vscode}" "%V"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\shell\VSCode', '', 'Open w&ith Code', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\shell\VSCode', 'Icon', f'"{bin_name_path_vscode}"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\shell\VSCode\command', '', f'"{bin_name_path_vscode}" "%V"', REG_EXPAND_SZ)
def uninstall():
print("Removing VSCode to the right click menu")
vscode_registry_entries = [
(HKEY_CLASSES_ROOT, r'*\shell', 'VSCode'),
(HKEY_CLASSES_ROOT, r'Directory\Background\shell', 'VSCode'),
(HKEY_CLASSES_ROOT, r'Directory\shell', 'VSCode')
]
for root_key, subkey_path, key_name in vscode_registry_entries:
full_path = f"{subkey_path}\\{key_name}"
if reg_key_exists(root_key, full_path):
registry_deletekey(root_key, subkey_path, key_name, recursive=True)
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
4464c101d60654470666ab6a594fb383668af828fa8f778ce781ab4bc784b2cb : WAPT/control
7891f1ca19ac8a9e41cb2963c0833bb3424a1dcc3f89e6ae484b1841a67063b2 : WAPT/icon.png
233fe591cbe4885e19c070de3aba041edb0567f6283b4e3c7cf93aa15bf367e3 : luti.json
a5a655e2a5588772f0099807f051ae974523f86dadd5b915813c7a2cf9438322 : setup.py