From bc027d3658dde8f4c6e4bf0e17718ea411ca5d58 Mon Sep 17 00:00:00 2001 From: "Vladimir.Orlov" Date: Thu, 22 Jun 2017 21:20:45 +0300 Subject: [PATCH] EDU installation: updated parameters for run python installations in silent mode. --- python/educational-python/build/customInstallActions.nsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/educational-python/build/customInstallActions.nsi b/python/educational-python/build/customInstallActions.nsi index f70ed0e85136..e44f7ace7a89 100644 --- a/python/educational-python/build/customInstallActions.nsi +++ b/python/educational-python/build/customInstallActions.nsi @@ -53,14 +53,16 @@ getPythonInfo: Call getPythonInfo StrCmp $0 "Error" skip_python_download !insertmacro INSTALLOPTIONS_READ $R2 "Desktop.ini" "Field 6" "State" + StrCpy $R7 "msiexec.exe /i " StrCpy $R8 "$0.msi" - StrCpy $R9 "/quiet /qn /norestart" + StrCpy $R9 "/quiet /qn" StrCmp $R2 1 "" python3 StrCpy $R2 $0 StrCpy $R3 $1 goto check_python python3: !insertmacro INSTALLOPTIONS_READ $R2 "Desktop.ini" "Field 7" "State" + StrCpy $R7 "" StrCpy $R8 "$R0.exe" StrCpy $R9 "InstallAllUsers=1 /quiet" StrCmp $R2 1 "" skip_python_download @@ -80,7 +82,7 @@ get_python: inetc::get "$R3" "$INSTDIR\python\python_$R8" /END Pop $0 ${If} $0 == "OK" - ExecDos::exec '"$INSTDIR\python\python_$R8" $R9' + ExecDos::exec '$R7"$INSTDIR\python\python_$R8" $R9' ${Else} MessageBox MB_OK|MB_ICONEXCLAMATION "The download is failed: $0" ${EndIf}