File: common.nsi

package info (click to toggle)
yaz 5.27.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,184 kB
  • sloc: xml: 123,414; ansic: 72,530; sh: 5,007; tcl: 2,169; makefile: 1,321; yacc: 382
file content (43 lines) | stat: -rw-r--r-- 1,409 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
; Common NSIS macro for YAZ, Zebra, etc
; Copyright (C) Index Data
; See the file LICENSE for details.

!define VSVER "$%VisualStudioVersion%"

!define VS_REDIST_EXE "vc_redist.${VSARCH}.exe"

; VS 2017 defines VCToolsRedistDir env (and hopefully later versions too)
!if "${VSVER}" == "14.0"
!define VS_REDIST_FULL "$%VSINSTALLDIR%\VC\redist\1033\${VS_REDIST_EXE}"
!else
!define VS_REDIST_FULL "$%VCToolsRedistDir%${VS_REDIST_EXE}"
!endif

; For example can be found with regedit:
;  Microsoft Visual C++ 2013 x86 Minimum Runtime
!if "${VSARCH}" == "x64"
; 64-bit
!if "${VSVER}" == "14.0"
; Microsoft Visual C++ 2015 x64 Minimum Runtime - 14.0.23026
!define VS_REDIST_KEY "SOFTWARE\Classes\Installer\Products\51E9E3D0A7EDB003691F4BFA219B4688"
!endif
!if "${VSVER}" == "15.0"
; Microsoft Visual C++ 2017 x64 Minimum Runtime - 14.13.26020
!define VS_REDIST_KEY "SOFTWARE\Classes\Installer\Products\4BD6D1222E64C3330BB9F59453D19008"
!endif

InstallDir "$PROGRAMFILES64\$(^Name)"
!else
; 32-bit
!if "${VSVER}" == "14.0"
; Microsoft Visual C++ 2015 x86 Minimum Runtime - 14.0.23026
!define VS_REDIST_KEY "SOFTWARE\Classes\Installer\Products\55E3652ACEB38283D8765E8E9B8E6B57"
!endif
!if "${VSVER}" == "15.0"
; Microsoft Visual C++ 2017 x86 Minimum Runtime - 14.13.26020
!define VS_REDIST_KEY "SOFTWARE\Classes\Installer\Products\C6F172F8B7E6A0D359B1E6B796D487DB"
!endif

InstallDir "$PROGRAMFILES\$(^Name)"
!endif