Kuzma
13th October 2005 05:55 UTC
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
13th October 2005 07:02 UTC
2 plug-ins for console applications: nsExec - included to NSIS package (Readme link in the Start menu) and ExecDos
Kuzma
13th October 2005 08:35 UTC
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
13th October 2005 08:56 UTC
To hide non-DOS application you can use ExecShell instruction, after
ExecShell "" "notepad.exe" "" SW_HIDE
hidden notepad appears in the tasks list :)
Kuzma
13th October 2005 10:25 UTC
I didn't hide the application. I hid a label "myutil.exe mysecretpassword" above the progressbar on InstFiles page.
th_mi
13th October 2005 11:04 UTC
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
Kuzma
13th October 2005 13:18 UTC
Yeah! SetDetailsPrint is just what I looked for. It's even simpler than ExecDos::exec().