Skip to content

Commit

Permalink
v1.4.12.44 - Fix minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
sebdelsol committed Mar 29, 2024
1 parent 776820e commit f0a05d0
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 27 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

[^1]: External EPG doesn't work with **local** m3u accounts.
# Downloads
[<img src="https://custom-icon-badges.demolab.com/badge/Sfvip All v1.4.12.43-informational?logo=download-cloud&logoSource=feather&logoColor=white&style=flat-square" height="35"><img src="https://img.shields.io/badge/x64-informational?logo=Windows10&logoColor=lightblue&style=flat-square" height="35"><img src="https://custom-icon-badges.demolab.com/badge/clean-brightgreen?logo=shield-check&logoColor=white&style=flat-square" height="35">](https://github.com/sebdelsol/sfvip-all/releases/download/Sfvip.All.1.4.12.43/Install.Sfvip.All.1.4.12.43.x64.exe)
<sup><sup>_by MS Defender • 1.1.24020.9 • 1.407.706.0_</sup></sup>
[<img src="https://custom-icon-badges.demolab.com/badge/Sfvip All v1.4.12.44-informational?logo=download-cloud&logoSource=feather&logoColor=white&style=flat-square" height="35"><img src="https://img.shields.io/badge/x64-informational?logo=Windows10&logoColor=lightblue&style=flat-square" height="35"><img src="https://custom-icon-badges.demolab.com/badge/clean-brightgreen?logo=shield-check&logoColor=white&style=flat-square" height="35">](https://github.com/sebdelsol/sfvip-all/releases/download/Sfvip.All.1.4.12.44/Install.Sfvip.All.1.4.12.44.x64.exe)
<sup><sup>_by MS Defender • 1.1.24020.9 • 1.407.748.0_</sup></sup>

[<img src="https://custom-icon-badges.demolab.com/badge/Sfvip All v1.4.12.43-informational?logo=download-cloud&logoSource=feather&logoColor=white&style=flat-square" height="35"><img src="https://img.shields.io/badge/x86-informational?logo=Windows10&logoColor=lightblue&style=flat-square" height="35"><img src="https://custom-icon-badges.demolab.com/badge/clean-brightgreen?logo=shield-check&logoColor=white&style=flat-square" height="35">](https://github.com/sebdelsol/sfvip-all/releases/download/Sfvip.All.1.4.12.43/Install.Sfvip.All.1.4.12.43.x86.exe)
<sup><sup>_by MS Defender • 1.1.24020.9 • 1.407.706.0_</sup></sup>
[<img src="https://custom-icon-badges.demolab.com/badge/Sfvip All v1.4.12.44-informational?logo=download-cloud&logoSource=feather&logoColor=white&style=flat-square" height="35"><img src="https://img.shields.io/badge/x86-informational?logo=Windows10&logoColor=lightblue&style=flat-square" height="35"><img src="https://custom-icon-badges.demolab.com/badge/clean-brightgreen?logo=shield-check&logoColor=white&style=flat-square" height="35">](https://github.com/sebdelsol/sfvip-all/releases/download/Sfvip.All.1.4.12.44/Install.Sfvip.All.1.4.12.44.x86.exe)
<sup><sup>_by MS Defender • 1.1.24020.9 • 1.407.748.0_</sup></sup>

[<a href="https://tooomm.github.io/github-release-stats/?username=sebdelsol&repository=sfvip-all"><img src="https://img.shields.io/github/downloads/sebdelsol/sfvip-all/total?color=informational&logo=github&labelColor=informational&style=flat-square" height="25"></a><a href="https://github.com/sebdelsol/sfvip-all/issues?q=is%3Aopen"><img src="https://img.shields.io/github/issues/sebdelsol/sfvip-all?labelColor=success&style=flat-square" height="25"></a>]()

Expand Down
3 changes: 2 additions & 1 deletion build/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## 1.4.12.44
* Fix minor bugs.
* Fix UI minor bug when launching several _Sfvip All_.
* Fix uninstall old version if the installation folder differs.

## 1.4.12.43
* Option to modify _Sfvip All_ install directory.
Expand Down
6 changes: 3 additions & 3 deletions build/update_x64.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"url": "https://github.com/sebdelsol/sfvip-all/releases/download/Sfvip.All.1.4.12.43/Install.Sfvip.All.1.4.12.43.x64.exe",
"md5": "9eec25d2ee8cb6f9916143981315f85b",
"version": "1.4.12.43"
"url": "https://github.com/sebdelsol/sfvip-all/releases/download/Sfvip.All.1.4.12.44/Install.Sfvip.All.1.4.12.44.x64.exe",
"md5": "b1b3429b82409cb7c5a427701ff0c63c",
"version": "1.4.12.44"
}
6 changes: 3 additions & 3 deletions build/update_x86.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"url": "https://github.com/sebdelsol/sfvip-all/releases/download/Sfvip.All.1.4.12.43/Install.Sfvip.All.1.4.12.43.x86.exe",
"md5": "4e228bc56c4bf5b10d0d7739ae0b4fee",
"version": "1.4.12.43"
"url": "https://github.com/sebdelsol/sfvip-all/releases/download/Sfvip.All.1.4.12.44/Install.Sfvip.All.1.4.12.44.x86.exe",
"md5": "9e35983493bc1a5247b1ba5db3d8bb00",
"version": "1.4.12.44"
}
42 changes: 26 additions & 16 deletions dev/tools/nsis/template.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ShowUninstDetails hide
; install pages
; -------------
!define MUI_PAGE_CUSTOMFUNCTION_PRE "UninstallOldVersionIfNeeded"
Page Custom old.AppRunningPage old.AppRunningPageFinalize
Page Custom AppRunningPage AppRunningPageFinalize
!insertmacro MUI_PAGE_INSTFILES

Expand Down Expand Up @@ -105,12 +106,18 @@ FunctionEnd
{% endif %}
!define PowerShell "$Windir\${System}\WindowsPowerShell\v1.0\powershell.exe"
!define GetProcess "Get-Process '{{name}}' -ErrorAction SilentlyContinue"
!define CheckPath "Where-Object {$_.Path -eq '$InstDir\{{dist}}\{{name}}.exe'}"

var NbAppRunning
var OldInstDir

!macro GetNbAppRunning
nsExec::ExecToStack "${PowerShell} exit (${GetProcess} | ${CheckPath}).Count"
!macro GetNbAppRunning old
; MessageBox MB_OK "old=`${old}`"
!if `${old}` == "old."
StrCpy $0 "Where-Object {$_.Path -eq '$OldInstDir\{{dist}}\{{name}}.exe'}"
!else
StrCpy $0 "Where-Object {$_.Path -eq '$InstDir\{{dist}}\{{name}}.exe'}"
!endif
nsExec::ExecToStack "${PowerShell} exit (${GetProcess} | $0).Count"
Pop $0
StrCpy $NbAppRunning $0
!macroend
Expand All @@ -129,9 +136,9 @@ var NextButton
EnableWindow $NextButton ${enable}
!macroend

!macro AppRunningPageMacro un
Function ${un}AppRunningPage
!insertmacro GetNbAppRunning
!macro AppRunningPageMacro un old
Function ${un}${old}AppRunningPage
!insertmacro GetNbAppRunning `${old}`
${If} $NbAppRunning > 0
nsDialogs::Create 1018
; next button
Expand All @@ -150,28 +157,29 @@ var NextButton
${EndIf}
FunctionEnd

Function ${un}AppRunningPageFinalize
${NSD_CreateTimer} ${un}FlashAlreadyRunningBegin 1
!insertmacro GetNbAppRunning
Function ${un}${old}AppRunningPageFinalize
${NSD_CreateTimer} ${un}${old}FlashAlreadyRunningBegin 1
!insertmacro GetNbAppRunning `${old}`
${If} $NbAppRunning > 0
Abort ; stay on the page if running
${EndIf}
FunctionEnd

Function ${un}FlashAlreadyRunningBegin
${NSD_KillTimer} ${un}FlashAlreadyRunningBegin
Function ${un}${old}FlashAlreadyRunningBegin
${NSD_KillTimer} ${un}${old}FlashAlreadyRunningBegin
!insertmacro AlreadyRunningAndNext ${LABEL_COLOR_FLASH} 0
${NSD_CreateTimer} ${un}FlashAlreadyRunningEnd ${FLASH_DELAY}
${NSD_CreateTimer} ${un}${old}FlashAlreadyRunningEnd ${FLASH_DELAY}
FunctionEnd

Function ${un}FlashAlreadyRunningEnd
${NSD_KillTimer} ${un}FlashAlreadyRunningEnd
Function ${un}${old}FlashAlreadyRunningEnd
${NSD_KillTimer} ${un}${old}FlashAlreadyRunningEnd
!insertmacro AlreadyRunningAndNext ${LABEL_COLOR} 1
FunctionEnd
!macroend

!insertmacro AppRunningPageMacro ""
!insertmacro AppRunningPageMacro "un."
!insertmacro AppRunningPageMacro "" "old."
!insertmacro AppRunningPageMacro "" ""
!insertmacro AppRunningPageMacro "un." ""

; ------------
; Install Page
Expand Down Expand Up @@ -229,6 +237,8 @@ Function SetInstDir
${Else}
StrCpy $InstDir $0
${Endif}
; save $InstDir
StrCpy $OldInstDir $InstDir
; no directory page if /AUTOINSTDIR=yes
${GetParameters} $0
${GetOptions} $0 "/AUTOINSTDIR=" $1
Expand Down

0 comments on commit f0a05d0

Please sign in to comment.