Mercurial > mxe-octave
changeset 6940:c9c411f5db86
maint: Merge release to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 28 Oct 2023 17:56:22 +0200 |
parents | 077c0a4d4016 (current diff) 4f25eb25a80b (diff) |
children | b0e560738283 |
files | tools/makeinst-script.sh.in |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/makeinst-script.sh.in Thu Oct 26 13:59:45 2023 +0200 +++ b/tools/makeinst-script.sh.in Sat Oct 28 17:56:22 2023 +0200 @@ -169,6 +169,7 @@ !insertmacro MUI_PAGE_INSTFILES +!define MUI_PAGE_CUSTOMFUNCTION_SHOW CheckConsole !define MUI_FINISHPAGE_RUN "\$WINDIR\\explorer.exe" !define MUI_FINISHPAGE_RUN_PARAMETERS "\$INSTDIR\\\${MAIN_APP_EXE}" !define MUI_FINISHPAGE_SHOWREADME "\$INSTDIR\\README.html" @@ -1131,6 +1132,30 @@ FunctionEnd +; Function to check Console Settings and show a warn +Function CheckConsole + Push \$R0 + Push \$R1 + + ClearErrors + + ReadRegStr \$R1 HKCU "Console\\%%Startup" "DelegationConsole" + IfErrors ignore_console 0 + + StrCmp \$R1 "" ignore_console 0 + # already set for console host + StrCmp \$R1 "{B23D10C0-E52E-411E-9D5B-C09FDF709C7D}" ignore_console 0 + + # display message + MessageBox MB_ICONEXCLAMATION|MB_YESNO|MB_DEFBUTTON2 "Using Octave with the Windows Terminal app could lead to issues with the command window. Please, set the default to the “Windows Console Host”.$\r$\n$\r$\nWould you like to get instructions on how to change the default console?" /SD IDNO IDNO ignore_console + + ExecShell open "https://devblogs.microsoft.com/commandline/windows-terminal-as-your-default-command-line-experience/" + +ignore_console: + Pop \$R1 + Pop \$R0 +FunctionEnd + ; Function to check Java Runtime Environment Function CheckJRE ; looks in: