From 49c6e19382cb24b3e9d71fce6632389376c1e950 Mon Sep 17 00:00:00 2001 From: Samson Date: Mon, 16 Nov 2015 13:21:50 -0500 Subject: [PATCH] Installer should replace existing versions of files. --- Ev3DL/ev3dl.nsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Ev3DL/ev3dl.nsi b/Ev3DL/ev3dl.nsi index 06a879f..c7a9a2c 100644 --- a/Ev3DL/ev3dl.nsi +++ b/Ev3DL/ev3dl.nsi @@ -44,12 +44,21 @@ Section "Section" Sec SetOutPath "$INSTDIR" +;Remove old files + Delete "$INSTDIR\Uninstall.exe" + Delete "$INSTDIR\Ev3DL.exe" + Delete "$INSTDIR\Lego.Ev3.Desktop.dll" + Delete "$INSTDIR\Lego.Ev3.Desktop.XML" + Delete "$INSTDIR\icon.ico" + ;ADD YOUR OWN FILES HERE... + File Ev3DL.exe File Lego.Ev3.Desktop.dll File Lego.Ev3.Desktop.XML File icon.ico File /r "lmsapi" + ;Add Start Menu Shortcut createDirectory "$SMPROGRAMS\Ev3DL" createShortCut "$SMPROGRAMS\Ev3DL\Ev3DL.lnk" "$INSTDIR\Ev3DL.exe" "" "$INSTDIR\icon.ico"