Skip to content

Commit

Permalink
This fixes the installer to not append \Winamp to non-default paths a…
Browse files Browse the repository at this point in the history
…nd will correctly ask to close running Winamp instances related to the changed install location
  • Loading branch information
dr0biwan committed Jul 29, 2016
1 parent 610d2b5 commit 1e0c5bd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ UninstallIcon "..\installer.ico"
!insertmacro GetSize

; The default installation directory
InstallDir $PROGRAMFILES\Winamp
InstallDir "$PROGRAMFILES\Winamp\"
InstProgressFlags smooth

; detect Winamp path from uninstall string if available
Expand Down Expand Up @@ -131,14 +131,13 @@ process:
Delete $R3
FunctionEnd

Function .onInit
Call FindAndCloseWinamp
FunctionEnd

;--------------------------------

Function directoryLeave
; check that it's a supported Winamp version
Call CheckWinampVersion
; and if it is then ensure it's not running
Call FindAndCloseWinamp
FunctionEnd

Function .onInstSuccess
Expand Down

0 comments on commit 1e0c5bd

Please sign in to comment.