next-ucap-messenger/config/build/win/nsis/installer.nsh

44 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2019-12-30 08:21:26 +00:00
!macro customInit
# Uninstallation of UC ware
2020-01-02 06:18:09 +00:00
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DS Talk_is1" "UninstallString"
${If} $0 != ""
ExecWait $0 $1
${EndIf}
# Installation of .NET Framework
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" "Release"
IntCmp $0 460798 is_equal is_less is_greater
is_equal:
Goto dnf_install_not_needed
is_greater:
Goto dnf_install_not_needed
is_less:
Goto dnf_install_needed
dnf_install_needed:
NSISdl::download "http://go.microsoft.com/fwlink/?LinkId=825298" "$TEMP\dotNET47Web.exe"
Pop $R0
${If} $R0 != "success"
MessageBox MB_OK|MB_ICONEXCLAMATION "Unable to download .NET Framework. ${PRODUCT_NAME} will be installed, but will not function without the Framework!"
Goto done_dotNET
${Else}
ExecWait '"$TEMP\dotNET47Web.exe" /showrmui /passive /norestart' $1
${If} $1 = 1641
${OrIf} $1 = 3010
SetRebootFlag true
${EndIf}
${EndIf}
dnf_install_not_needed:
Goto done_dotNET
done_dotNET:
2019-12-30 08:21:26 +00:00
!macroend
!macro customInstall
2019-12-30 08:21:26 +00:00
!macroend