Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 10th December 2005, 11:54   #1
XPero
Junior Member
 
Join Date: Aug 2005
Location: Spain
Posts: 15
nsExec vs long process vs leavecustom

HI all. I have a problem with a custom page. I have a button which when pressed runs a command line app using nsExec. The thing is that the process takes around 1 minute or 2 and that makes my installer to appear as "not responding". How can I process the Abort statement and the long process? The behaviour Im looking for is the following:

When the user presses the button, a banner appears and the process starts. When the process is finished, the banner dissapears and the installer stays in the same page (it doesnt go to the next page), so the user can press the button again if desired. I've attached a sample script. I hope you can help. Thanks in advance.
Attached Files
File Type: nsi longprocess.nsi (827 Bytes, 98 views)
XPero is offline   Reply With Quote
Old 10th December 2005, 12:02   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
ExecWait processes Windows messages while waiting for the child process. This way, the installer doesn't look like it's hung. If you're running a command line application and want to hide its output, you can ExecWait to execute a silent installer that runs the real command line process using nsExec.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 10th December 2005, 12:05   #3
XPero
Junior Member
 
Join Date: Aug 2005
Location: Spain
Posts: 15
Thanks, I will try that. I really need the command line app to be hidden. Any other possibilities will be welcome. Thanks again.
XPero is offline   Reply With Quote
Old 10th December 2005, 12:42   #4
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
ExecDos has async mode for DOS apps - 'exec' first and 'wait' later. You can use included to distribution Banner plug-in or one of NSIS archive banners plug-ins, both with ExecDos and nsExec.
Takhir is offline   Reply With Quote
Reply
Go Back   Winamp 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