Uninstall USB drivers during libprs500 uninstall

This commit is contained in:
Kovid Goyal 2007-07-11 21:32:33 +00:00
parent 5616a14c28
commit 47010fb85d

View File

@ -184,6 +184,9 @@ SectionEnd
;Uninstaller Section ;Uninstaller Section
Section "Uninstall" 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... ;ADD YOUR OWN FILES HERE...
RMDir /r "$INSTDIR" RMDir /r "$INSTDIR"
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP !insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
@ -207,7 +210,6 @@ Section "Uninstall"
; Remove installation directory from PATH ; Remove installation directory from PATH
Push "$INSTDIR" Push "$INSTDIR"
Call un.RemoveFromPath Call un.RemoveFromPath
SectionEnd SectionEnd
''' '''
def __init__(self, name, py2exe_dir, output_dir): def __init__(self, name, py2exe_dir, output_dir):