Archive: Hiding Exec's command line


Hiding Exec's command line
Hello, all.
I use ExecWait to run some utility passing sensitive information (such as plain-text password) via command line parameters. During the execution the InstFiles page displays the command line on the screen.
What can I do to suppress this output or replace the command line with some another text.
Note: I use ModernUI in my installer.
Thank you for your attention.


2 plug-ins for console applications: nsExec - included to NSIS package (Readme link in the Start menu) and ExecDos


Great thanks.
ExecDos has completely solved my problem.
I didn't examine theese plugins well earlier due to 'dos' and 'console' terms in their description. (My utility is win32 non-console application, but ExecDos calls it correctly and returns correct exit code).


To hide non-DOS application you can use ExecShell instruction, after


ExecShell "" "notepad.exe" "" SW_HIDE

hidden notepad appears in the tasks list :)

I didn't hide the application. I hid a label "myutil.exe mysecretpassword" above the progressbar on InstFiles page.


Originally posted by Kuzma
I didn't hide the application. I hid a label "myutil.exe mysecretpassword" above the progressbar on InstFiles page.

SetDetailsPrint none
"myutil.exe mysecretpassword"
SetDetailsPrint both



The complete parameter list:
none|listonly|textonly|both|lastused

Yeah! SetDetailsPrint is just what I looked for. It's even simpler than ExecDos::exec().