From 9d40590e5707968d5c58f30cfa45270dc764d41c Mon Sep 17 00:00:00 2001 From: borutr Date: Sun, 18 May 2008 18:07:22 +0000 Subject: [PATCH] * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation, fixed typo git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5159 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 6 +++++- support/scripts/sdcc.nsi | 15 ++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7bf46a1a..43ce07a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-19 Borut Razem + + * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation, + fixed typo + 2008-05-18 Borut Razem * support/Utils/dbuf_string.[ch]: added dbuf_chomp(), @@ -49,7 +54,6 @@ 2008-05-05 Borut Razem * support/regression/Makefile.in, - support/regression/fwk/lib/testfwk.c, support/regression/ports/ds390/spec.mk, support/regression/ports/hc08/spec.mk, support/regression/ports/mcs51-common/spec.mk, diff --git a/support/scripts/sdcc.nsi b/support/scripts/sdcc.nsi index faf9895b..645ac65d 100644 --- a/support/scripts/sdcc.nsi +++ b/support/scripts/sdcc.nsi @@ -256,7 +256,7 @@ ${Function} SDCC.InstFilesLeave ${FunctionEnd} ; Finish page - add to path -!define MUI_FINISHPAGE_TEXT "Confirm the checkbox if you won to add SDCC binary directory to the PATH environment variable" +!define MUI_FINISHPAGE_TEXT "Confirm the checkbox if you want to add SDCC binary directory to the PATH environment variable" !define MUI_FINISHPAGE_SHOWREADME_TEXT "Add $INSTDIR\bin to the PATH" !define MUI_FINISHPAGE_SHOWREADME_FUNCTION SDCC.AddBinToPath !define MUI_FINISHPAGE_SHOWREADME @@ -1306,12 +1306,17 @@ ${Function} SDCC.PageLeaveReinstall ;Run uninstaller HideWindow - ClearErrors - ; ExecWait doesn't wait if _?=$INSTDIR is not defined! - ExecWait '$R1 _?=$INSTDIR' - ${If} $R0 == "2" + ; Uninstall only: uninstaller should be removed + ClearErrors + ; ExecWait doesn't wait if _?=$INSTDIR is not defined! + ExecWait '$R1' Quit + ${Else} + ; Uninstal & Reinstall: uninstaller will be rewritten + ClearErrors + ; ExecWait doesn't wait if _?=$INSTDIR is not defined! + ExecWait '$R1 _?=$INSTDIR' ${EndIf} BringToFront -- 2.30.2