mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-21 16:02:20 +00:00
fix(release): stop {tmp} from closing the Windows installer [Code] comment
The [Code] block comment used Pascal { } braces, but {tmp} inside it
closed the comment early, so ISCC parsed the trailing prose as code and
aborted with "'BEGIN' expected" — no Windows installer was produced.
Switch the comment to (* *) so brace-form constants stay literal.
This commit is contained in:
@@ -75,13 +75,13 @@ Filename: "{app}\tty7.exe"; Description: "{cm:LaunchProgram,tty7}"; Flags: nowai
|
||||
Filename: "{app}\tty7.exe"; Parameters: "--stop-daemon"; Flags: runhidden waituntilterminated; RunOnceId: "StopDaemon"
|
||||
|
||||
[Code]
|
||||
{ Gracefully stop the persistent daemon before we overwrite tty7.exe. We can't
|
||||
(* Gracefully stop the persistent daemon before we overwrite tty7.exe. We can't
|
||||
run the *installed* binary here — on an upgrade from an older build it may not
|
||||
understand --stop-daemon and would launch the GUI instead — so we extract the
|
||||
*new* tty7.exe to {tmp} and run that. It connects to the running daemon, hangs
|
||||
up every shell, waits for it to exit (releasing the file lock), then returns
|
||||
without opening a window. Best effort: any failure falls through to the Restart
|
||||
Manager backstop, and a fresh install simply has no daemon to stop. }
|
||||
Manager backstop, and a fresh install simply has no daemon to stop. *)
|
||||
function PrepareToInstall(var NeedsRestart: Boolean): String;
|
||||
var
|
||||
ResultCode: Integer;
|
||||
|
||||
Reference in New Issue
Block a user