Old 13th October 2005, 04:55   #1
Kuzma
Junior Member
 
Join Date: Oct 2005
Posts: 4
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.
Kuzma is offline   Reply With Quote
Old 13th October 2005, 06:02   #2
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
2 plug-ins for console applications: nsExec - included to NSIS package (Readme link in the Start menu) and ExecDos
Takhir is offline   Reply With Quote
Old 13th October 2005, 07:35   #3
Kuzma
Junior Member
 
Join Date: Oct 2005
Posts: 4
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).
Kuzma is offline   Reply With Quote
Old 13th October 2005, 07:56   #4
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
To hide non-DOS application you can use ExecShell instruction, after
code:

ExecShell "" "notepad.exe" "" SW_HIDE


hidden notepad appears in the tasks list
Takhir is offline   Reply With Quote
Old 13th October 2005, 09:25   #5
Kuzma
Junior Member
 
Join Date: Oct 2005
Posts: 4
I didn't hide the application. I hid a label "myutil.exe mysecretpassword" above the progressbar on InstFiles page.
Kuzma is offline   Reply With Quote
Old 13th October 2005, 10:04   #6
th_mi
Member
 
Join Date: Sep 2005
Location: Sitting next to my desk
Posts: 56
Quote:
Originally posted by Kuzma
I didn't hide the application. I hid a label "myutil.exe mysecretpassword" above the progressbar on InstFiles page.
code:

SetDetailsPrint none
"myutil.exe mysecretpassword"
SetDetailsPrint both




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

This signature is currently on vacation!
th_mi is offline   Reply With Quote
Old 13th October 2005, 12:18   #7
Kuzma
Junior Member
 
Join Date: Oct 2005
Posts: 4
Yeah! SetDetailsPrint is just what I looked for. It's even simpler than ExecDos::exec().
Kuzma is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump