Add Pycharm in right click context menu
Paquet d’installation silencieuse pour Add Pycharm in right click context menu
1-5
System
Utilities
System
Utilities
- package: tis-add-pycharm-right-click
- name: Add Pycharm in right click context menu
- version: 1-5
- categories: System,Utilities
- maintainer: WAPT Team,Tranquil IT,Flavien SCHELFAUT
- licence: proprietary_free
- locale: all
- target_os: windows
- architecture: x64
- signature_date:
- size: 6.34 Ko
- depends:
package : tis-add-pycharm-right-click
version : 1-5
architecture : x64
section : base
priority : optional
name : Add Pycharm in right click context menu
categories : System,Utilities
maintainer : WAPT Team,Tranquil IT,Flavien SCHELFAUT
description : Add 'Open with Pycharm' to the Windows right-click context menu
depends : tis-pycharm
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 Pycharm' au clic droit de Windows
description_pl : Dodano opcję „Otwórz za pomocą Pycharm” do menu prawego przycisku myszy systemu Windows.
description_de : Hinzufügen der Option 'Open with Pycharm' zum Rechtsklick in Windows
description_es : Se ha añadido la opción «Abrir con Pycharm» al menú contextual de Windows.
description_pt : Adicionada a opção “Abrir com o Pycharm” ao menu do botão direito do rato do Windows
description_it : Aggiunta l'opzione “Apri con Pycharm” al menu del tasto destro del mouse di Windows.
description_nl : De optie 'Openen met Pycharm' toegevoegd aan het rechtsklikmenu van Windows
description_ru : В меню правой кнопки мыши Windows добавлена опция «Открыть с помощью Pycharm».
audit_schedule :
editor :
keywords :
licence : proprietary_free
homepage :
package_uuid : e16cb5c5-98c9-457b-94e8-4f6be9183b78
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-11-29T15:10:19.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 : EGUBnjg1qUJFwc57HijvapNcWzKWTvj9AxXMpeSg+0c9OiZpf7tmHpJ9fZ3AAgxxIB8+EEyZ5CesuHQaZOrZVasXEK+BpBMQvKsd0P5JIg+nhoNh3o9awM8sVpue7rPnh/pOtO1pVloGL88qDZsfvzvJ6d6TCanTQSiK7Q/9HDoqQpt0sPexlXZ3W45d3zkxmzcntuaQLpbsriBBu8V3ZZVP6C20buXQyz3/68ECzsEQeJSkY288UvNYPsQhVnzxk6i197SHpZ1oWb+W5+MjdNig8MrMQIjZAeT2vkSIwT4wjwrTcPMWf7B2++16sflsV1h5wp89ES0c1uFFElfYCA==
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
def install():
install_location_pycharm_community = sorted(installed_softwares('PyCharm'), key=lambda x: Version(x["name"].split(" ")[-1]), reverse=True)[0]['install_location']
bin_name_path_pycharm_cummunity = makepath(install_location_pycharm_community, 'bin', 'pycharm64.exe')
print("Adding Pycharm to the right click menu")
registry_set(HKEY_CLASSES_ROOT, r'*\shell\Open with PyCharm', '', 'Edit with PyCharm', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'*\shell\Open with PyCharm', 'Icon', f'"{bin_name_path_pycharm_cummunity}"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'*\shell\Open with PyCharm\command', '', f'"{bin_name_path_pycharm_cummunity}" "%1"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\Background\shell\PyCharm', '', 'Open Folder as PyCharm Project', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\Background\shell\PyCharm', 'Icon', f'"{bin_name_path_pycharm_cummunity}"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\Background\shell\PyCharm\command', '', f'"{bin_name_path_pycharm_cummunity}" "%V"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\shell\PyCharm', '', 'Open Folder as PyCharm Project', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\shell\PyCharm', 'Icon', f'"{bin_name_path_pycharm_cummunity}"', REG_EXPAND_SZ)
registry_set(HKEY_CLASSES_ROOT, r'Directory\shell\PyCharm\command', '', f'"{bin_name_path_pycharm_cummunity}" "%V"', REG_EXPAND_SZ)
def uninstall():
print("Removing Pycharm to the right click menu")
pycharm_registry_entries = [
(HKEY_CLASSES_ROOT, r'*\shell', 'Open with PyCharm'),
(HKEY_CLASSES_ROOT, r'Directory\Background\shell', 'PyCharm'),
(HKEY_CLASSES_ROOT, r'Directory\shell', 'PyCharm')
]
for root_key, subkey_path, key_name in pycharm_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
13bce2edb7965d536b3313846cd47a5043c55e0b253fb7a0fd0915a0dad5b420 : WAPT/control
7891f1ca19ac8a9e41cb2963c0833bb3424a1dcc3f89e6ae484b1841a67063b2 : WAPT/icon.png
c53a1120868396f67ccf5473db98aacb32067f3d4c37399e7c3ea3df1bab1732 : luti.json
f45086180718b77353cd4212a922a256872d3af6868993480bd253ab6e46e307 : setup.py