Skip to content

Commit

Permalink
Uninstall previous version when installing to same directory
Browse files Browse the repository at this point in the history
  • Loading branch information
grulja committed Oct 31, 2023
1 parent e3311d1 commit 743bce6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/win/mediawriter.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ function .onInit
functionEnd

section "install"
; Uninstall previous version when installing to same directory
ExecWait '"$INSTDIR\uninst.exe" /S _?=$INSTDIR'

# Files for the install directory - to build the installer, these should be in the same directory as the install script (this file)
SetOutPath $INSTDIR
SetOverwrite on
Expand Down
3 changes: 3 additions & 0 deletions dist/win/mediawriter_native.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ function .onInit
functionEnd

section "install"
; Uninstall previous version when installing to same directory
ExecWait '"$INSTDIR\uninst.exe" /S _?=$INSTDIR'

# Files for the install directory - to build the installer, these should be in the same directory as the install script (this file)
SetOutPath $INSTDIR
SetOverwrite on
Expand Down

0 comments on commit 743bce6

Please sign in to comment.