Skip to content
⌘ NSIS Forum Archive

Hiding Exec's command line

7 posts

Kuzma#

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.
Takhir#
2 plug-ins for console applications: nsExec - included to NSIS package (Readme link in the Start menu) and ExecDos
Kuzma#
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).
Takhir#
To hide non-DOS application you can use ExecShell instruction, after

ExecShell "" "notepad.exe" "" SW_HIDE
hidden notepad appears in the tasks list 🙂
Kuzma#
I didn't hide the application. I hid a label "myutil.exe mysecretpassword" above the progressbar on InstFiles page.
th_mi#
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