Hi everyone
I have made a little console mode program using Free Pascal in Windows and for some reason when I run the program it has a really long pause and then runs in a brand new console window.
The reason this is a problem is because I have a -help option to print help out to the console and it gives feedback to the console while it runs. Typing install -help is pointless because it opens in a new window, prints, and the immediately closes the window when execution ends.
Is there a way to make this work like a normal program in Windows? Like if I rename it to "test.exe" it works just fine but I tried both install.exe and setup.exe and it has the long pause and new window problem. I realize this is probably Windows interfering but I wondered if there is a certain way I can compile it to stop it?
Thank you!
A simple little install.pp program can reproduce my issue:
program install;
begin
writeln('Hello world!');
end.