Skip to content

Commit

Permalink
Installer should replace existing versions of files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samson committed Nov 16, 2015
1 parent 01c979e commit 49c6e19
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Ev3DL/ev3dl.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 49c6e19

Please # to comment.