From 3955c71435a8a336df96037b37ddf9e1830832d9 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 24 Feb 2021 16:14:59 +0100 Subject: [PATCH] makepackage: skip message boxes if running NSIS installer in silent mode Fixes #1088 --- makepanda/installer.nsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/makepanda/installer.nsi b/makepanda/installer.nsi index 6d8cf561e5..0600d8c449 100644 --- a/makepanda/installer.nsi +++ b/makepanda/installer.nsi @@ -470,6 +470,7 @@ Section "Python ${INCLUDE_PYVER}" SecPython IfFileExists "$0\python.exe" AskRegPath RegPath AskRegPath: + IfSilent SkipRegPath MessageBox MB_YESNO|MB_ICONQUESTION \ "You already have a copy of Python ${INCLUDE_PYVER} installed in:$\r$\n$0$\r$\n$\r$\nPanda3D installs its own copy of Python ${INCLUDE_PYVER}, which will install alongside your existing copy. Would you like to make Panda's copy the default Python for your user account?" \ IDNO SkipRegPath @@ -619,6 +620,7 @@ Function ConfirmPythonSelection ; No compatible Python version found (that wasn't shipped as part ; of a different Panda3D build.) Ask the user if he's sure about this. AskConfirmation: + IfSilent SkipCheck MessageBox MB_YESNO|MB_ICONQUESTION \ "You do not appear to have a ${REGVIEW}-bit version of Python ${INCLUDE_PYVER} installed. Are you sure you don't want Panda to install a compatible copy of Python?$\r$\n$\r$\nIf you choose Yes, you will not be able to do Python development with Panda3D until you install a ${REGVIEW}-bit version of Python and install the bindings for this version." \ IDYES SkipCheck