+2008-05-19 Borut Razem <borut.razem AT siol.net>
+
+ * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
+ fixed typo
+
2008-05-18 Borut Razem <borut.razem AT siol.net>
* support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
2008-05-05 Borut Razem <borut.razem AT siol.net>
* 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,
${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
;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