235 |
236 |
236 def uninstallWindowsLinks(): |
237 def uninstallWindowsLinks(): |
237 """ |
238 """ |
238 Clean up the Desktop and Start Menu entries for Windows. |
239 Clean up the Desktop and Start Menu entries for Windows. |
239 """ |
240 """ |
240 try: |
241 if importlib.util.find_spec("pywintypes") is None: |
241 from pywintypes import com_error # __IGNORE_WARNING__ |
|
242 except ImportError: |
|
243 # links were not created by install.py |
242 # links were not created by install.py |
244 return |
243 return |
245 |
244 |
246 regPath = ( |
245 regPath = ( |
247 "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer" |
246 "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer" |