156 |
|
|
157 |
# extended (via http://mail.python.org/pipermail/python-list/2003-December/198390.html) |
# extended (via http://mail.python.org/pipermail/python-list/2003-December/198390.html) |
158 |
|
|
159 |
# for folders |
# for directory background |
160 |
background_key = _winreg.CreateKey(_winreg.HKEY_CLASSES_ROOT, "Directory\\Background\\shellex") |
background_key = _winreg.CreateKey(_winreg.HKEY_CLASSES_ROOT, "Directory\\Background\\shellex") |
161 |
background_subkey = _winreg.CreateKey(background_key, "ContextMenuHandlers") |
background_subkey = _winreg.CreateKey(background_key, "ContextMenuHandlers") |
162 |
background_subkey2 = _winreg.CreateKey(background_subkey, ShellExtension._reg_name_) |
background_subkey2 = _winreg.CreateKey(background_subkey, ShellExtension._reg_name_) |
183 |
# extended (via http://mail.python.org/pipermail/python-list/2003-December/198390.html) |
# extended (via http://mail.python.org/pipermail/python-list/2003-December/198390.html) |
184 |
|
|
185 |
try: |
try: |
186 |
|
# for directory background |
187 |
|
background_key = _winreg.DeleteKey(_winreg.HKEY_CLASSES_ROOT, |
188 |
|
"Directory\\Background\\shellex\\ContextMenuHandlers\\" + ShellExtension._reg_name_) |
189 |
# for folders |
# for folders |
190 |
folder_key = _winreg.DeleteKey(_winreg.HKEY_CLASSES_ROOT, |
folder_key = _winreg.DeleteKey(_winreg.HKEY_CLASSES_ROOT, |
191 |
"Folder\\shellex\\ContextMenuHandlers\\" + ShellExtension._reg_name_) |
"Folder\\shellex\\ContextMenuHandlers\\" + ShellExtension._reg_name_) |