# HG changeset patch # User John Donoghue # Date 1661193565 14400 # Node ID 71ba75cc40bc1515ca7eb3a65052e94c51f2c148 # Parent 5827d068f184bcb65ef26ec73caace2b2d61d402# Parent ae320ffbbbe08a938cb00606da99e17d93e599ef maint: Merge release to default. diff -r 5827d068f184 -r 71ba75cc40bc installer-files/octave-firsttime.vbs --- a/installer-files/octave-firsttime.vbs Sun Aug 21 19:58:24 2022 -0400 +++ b/installer-files/octave-firsttime.vbs Mon Aug 22 14:39:25 2022 -0400 @@ -5,7 +5,12 @@ ' If running with wscript.exe, "Exec" will flash a window for a split second. ' Relaunch with cscript.exe which doesn't show that window. If InStr(1, WScript.FullName, "wscript.exe", vbTextCompare) > 0 Then - WScript.Quit wshShell.Run("cscript.exe """ & WScript.ScriptFullName & """", 0, True) + AllArgs = "" + Set wshArgs = WScript.Arguments + For I = 0 to wshArgs.Count - 1 + AllArgs = AllArgs & " " & chr(34) & wshArgs(I) & chr(34) + Next + WScript.Quit wshShell.Run("cscript.exe """ & WScript.ScriptFullName & """" & AllArgs, 0, True) End If diff -r 5827d068f184 -r 71ba75cc40bc installer-files/octave.vbs --- a/installer-files/octave.vbs Sun Aug 21 19:58:24 2022 -0400 +++ b/installer-files/octave.vbs Mon Aug 22 14:39:25 2022 -0400 @@ -5,7 +5,12 @@ ' If running with wscript.exe, "Exec" will flash a window for a split second. ' Relaunch with cscript.exe which doesn't show that window. If InStr(1, WScript.FullName, "wscript.exe", vbTextCompare) > 0 Then - WScript.Quit wshShell.Run("cscript.exe """ & WScript.ScriptFullName & """", 0, True) + AllArgs = "" + Set wshArgs = WScript.Arguments + For I = 0 to wshArgs.Count - 1 + AllArgs = AllArgs & " " & chr(34) & wshArgs(I) & chr(34) + Next + WScript.Quit wshShell.Run("cscript.exe """ & WScript.ScriptFullName & """" & AllArgs, 0, True) End If ' get the directory that script resides in