From 47010fb85d0de24adc77dd6c541963ecba14de93 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 11 Jul 2007 21:32:33 +0000 Subject: [PATCH] Uninstall USB drivers during libprs500 uninstall --- windows_installer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/windows_installer.py b/windows_installer.py index e9934111ac..6645f3b3b2 100644 --- a/windows_installer.py +++ b/windows_installer.py @@ -184,6 +184,9 @@ SectionEnd ;Uninstaller Section Section "Uninstall" + ; Uninstall USB drivers + ExecWait '"$INSTDIR\driver\devcon.exe" remove "USB\VID_054C&PID_029B"' $0 + DetailPrint "devcon returned exit code $0" ;ADD YOUR OWN FILES HERE... RMDir /r "$INSTDIR" !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP @@ -206,8 +209,7 @@ Section "Uninstall" DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" ; Remove installation directory from PATH Push "$INSTDIR" - Call un.RemoveFromPath - + Call un.RemoveFromPath SectionEnd ''' def __init__(self, name, py2exe_dir, output_dir):