Read from STDIN? Parse command line args?
I'm wondering about how to pass extra info to my NSIS generated .exe.
I'd like to access the command line arguments, like I would via argc/argv in C. I know about the /S flag to make the installer run silently. But that isn't what I'm looking for, I want to pass my own arguments.
If I could read a short String from STDIN that would also work.
I'm not real up on the Windows API, but it sure seems like some clever System::Call ought to do the trick.
For the curious, I'm trying to make a little "Close Application" utility using NSIS. It would get instructions on the command line, optionally interact with the user, and make calls like these:
FindWindow / SendMessage $R0 ${WM_CLOSE}
FindProcDLL::FindProc / KillProcDLL::KillProc