Skip to content

Commit 39b285f

Browse files
Merge pull request #36 from j3hill/pyth64
On 64-bit Windows install 64-bit Python 2.7.14
2 parents 3a1d725 + 1e11665 commit 39b285f

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

prerequisites/download-prerequisites.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
12
$storageDir = $pwd
23
$webclient = New-Object System.Net.WebClient
34
#Download gcc-arm-none-eabi
@@ -25,6 +26,6 @@ $url = "https://developer.mbed.org/media/downloads/drivers/mbedWinSerial_16466.e
2526
$file = "$storageDir\mbedWinSerial_16466.exe"
2627
$webclient.DownloadFile($url,$file)
2728
#Download mbed-cli
28-
$url = "https://www.github.com/ARMmbed/mbed-cli/archive/1.9.0.zip"
29-
$file = "$storageDir\mbed-cli-1.9.0.zip"
29+
$url = "https://www.github.com/ARMmbed/mbed-cli/archive/1.10.0.zip"
30+
$file = "$storageDir\mbed-cli-1.10.0.zip"
3031
$webclient.DownloadFile($url,$file)

source/install.nsi

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ${StrTrimNewLines}
3737
!insertmacro VersionCompare
3838
!include "Sections.nsh"
3939
!include WinVer.nsh
40+
!include x64.nsh
4041
!include "EnvVarUpdate.nsh"
4142
!include PathUpdate.nsh
4243

@@ -49,11 +50,12 @@ ${StrTrimNewLines}
4950
;Config Section
5051
!define PRODUCT_NAME "Mbed CLI for Windows"
5152
!define PRODUCT_VERSION "0.4.10"
52-
!define MBED_CLI_ZIP "mbed-cli-1.9.0.zip"
53-
!define MBED_CLI_VERSION "mbed-cli-1.9.0"
53+
!define MBED_CLI_ZIP "mbed-cli-1.10.0.zip"
54+
!define MBED_CLI_VERSION "mbed-cli-1.10.0"
5455
!define MBED_CLI_ENV "MBED_CLI_TOOLS"
5556
!define PRODUCT_PUBLISHER "Arm Mbed"
5657
!define PYTHON_INSTALLER "python-2.7.14.msi"
58+
!define PYTHON_INSTALLER_64 "python-2.7.14.amd64.msi"
5759
!define GCC_EXE "gcc-arm-none-eabi-6-2017-q2-update-win32.exe"
5860
!define GIT_INSTALLER "Git-2.17.1.2-32-bit.exe"
5961
!define MERCURIAL_INSTALLER "Mercurial-4.1.1.exe"
@@ -137,11 +139,18 @@ Section "python" SecPython
137139
${endif}
138140
${EndIf}
139141
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}
140150
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.
143151
nsExec::ExecToStack '"msiexec" /i "$INSTDIR\${PYTHON_INSTALLER}" ALLUSERS=1 ADDLOCAL=ALL /qn'
144152
Delete $INSTDIR\${PYTHON_INSTALLER}
153+
${EndIf}
145154
pythonExit:
146155
SectionEnd
147156

0 commit comments

Comments
 (0)