# HG changeset patch # User Markus Mützel # Date 1698508582 -7200 # Node ID c9c411f5db86a50ace52884f95ea44cb6133425d # Parent 077c0a4d401646f9f04d39baa1e17fda8b14b8f2# Parent 4f25eb25a80b1952279b5c92bee27f2cb74d57a9 maint: Merge release to default. diff -r 077c0a4d4016 -r c9c411f5db86 tools/makeinst-script.sh.in --- 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: