@@ -37,6 +37,7 @@ ${StrTrimNewLines}
37
37
!insertmacro VersionCompare
38
38
!include " Sections.nsh"
39
39
!include WinVer.nsh
40
+ !include x64.nsh
40
41
!include " EnvVarUpdate.nsh"
41
42
!include PathUpdate.nsh
42
43
@@ -53,7 +54,8 @@ ${StrTrimNewLines}
53
54
!define MBED_CLI_VERSION " mbed-cli-1.10.0"
54
55
!define MBED_CLI_ENV " MBED_CLI_TOOLS"
55
56
!define PRODUCT_PUBLISHER " Arm Mbed"
56
- !define PYTHON_INSTALLER " python-2.7.14.amd64.msi"
57
+ !define PYTHON_INSTALLER " python-2.7.14.msi"
58
+ !define PYTHON_INSTALLER_64 " python-2.7.14.amd64.msi"
57
59
!define GCC_EXE " gcc-arm-none-eabi-6-2017-q2-update-win32.exe"
58
60
!define GIT_INSTALLER " Git-2.17.1.2-32-bit.exe"
59
61
!define MERCURIAL_INSTALLER " Mercurial-4.1.1.exe"
@@ -137,11 +139,18 @@ Section "python" SecPython
137
139
${endif}
138
140
${EndIf}
139
141
pythonInstall:
142
+ ; Install options for python taken from https://www.python.org/download/releases/2.5/msi/
143
+ ; configure python to add itsself to the path.
144
+ ; check for 64-bit Windows
145
+ ${If} ${RunningX64}
146
+ File " ..\prerequisites\${PYTHON_INSTALLER_64}"
147
+ nsExec::ExecToStack ' "msiexec" /i "$INSTDIR\${PYTHON_INSTALLER_64}" ALLUSERS=1 ADDLOCAL=ALL /qn'
148
+ Delete $INSTDIR \${PYTHON_INSTALLER_64}
149
+ ${Else}
140
150
File " ..\prerequisites\${PYTHON_INSTALLER}"
141
- ; Install options for python taken from https://www.python.org/download/releases/2.5/msi/
142
- ; This gets python to add itsself to the path.
143
151
nsExec::ExecToStack ' "msiexec" /i "$INSTDIR\${PYTHON_INSTALLER}" ALLUSERS=1 ADDLOCAL=ALL /qn'
144
152
Delete $INSTDIR \${PYTHON_INSTALLER}
153
+ ${EndIf}
145
154
pythonExit:
146
155
SectionEnd
147
156
0 commit comments