- NSIS Discussion
- nsexec and custom messages in the progress bar
Archive: nsexec and custom messages in the progress bar
Pyjamarama
18th November 2003 07:46 UTC
nsexec and custom messages in the progress bar
hi!
I have already got a lot of help from u guys...
I have a question.
In the end of a section I use nsexec to run minimized 4 .bat files that create and format sqlserver databases.It takes a lot of time the operation to be completed so I want to ask u if there is a way to display a custom message above the progress bar to inform the user that e.g "database 1 is being created","database is being formatted" etc etc
Thanx in advance (sorry for my poor English)
Vytautas
18th November 2003 09:29 UTC
I think that the DetailPrint command should work for you.
Vytautas
Pyjamarama
18th November 2003 09:53 UTC
Thanx mate!!
DrO
18th November 2003 09:59 UTC
also there is a modified version of nsExec (need to search back a few pages) that shows a spinning text star whilst nsExec is working
i.e.
/ -> - -> \ -> | -> / etc.
it should work fine for your needs (i really should look at finishing the code for a few other parts ;) )
-daz
Pyjamarama
18th November 2003 10:37 UTC
Thanx!
I found some nsexec mods but none of them had any such feature listed...
It would be very helpful if u could give a link (if it is not a problem)
DrO
18th November 2003 10:48 UTC
here you go http://forums.winamp.com/showthread....74#post1126974
if you can wait a few days i'll put up the lastest version of the code which fixes a few display issues with that release ;)
-daz
Pyjamarama
19th November 2003 09:15 UTC
thanx a lot DrO.
how do I define the character that is going to spin?
Can u post an actual nsexec syntax example? (and maybe include it in the test.nsi when u put it in the official contrib folder)
Also does anyone know how I can change the cursor indicator from arrow to hourglass?
Thanx in advance!!!!
DrO
19th November 2003 09:29 UTC
how do I define the character that is going to spin?
that's not possible with that version (was tempted to make it customisable).
just use it as you would normally use nsExec. best thing is to alter the dll name so you still have the original version e.g. nsexecmod.dll.
then you would use it as nsexecmod:ExecToLog ... (check the nsExec example on how to use it - haven't looked at it for a while so i'm not too sure on the syntax)
with the cursor thing i think you need to use the system plugin and you will want to use the
SetCursor function in it (someone else may be able to help you better on that).
[ may make sense to add that into the modified nsexec to do the cursor thing automatically as an option ;) ]
(will have to work on this tonight while i remember)
-daz
Pyjamarama
19th November 2003 09:47 UTC
U r most helpful DrO!
tnanx a lot!!!
lewellyn
21st November 2003 00:00 UTC
DrO: I couldn't find your archive page for this. The other thread indicated that there was one. Is there a URL available?
Thanks. :)
DrO
21st November 2003 08:31 UTC
it'll be up by tomorrow - just taken a bit longer than intended with work, etc. also there isn't an archive page yet (will create it when i upload tomorrow)
-daz
DrO
22nd November 2003 14:43 UTC
here's a later version of the modified dll (have had to disable a few parts quickly on the way out the door so it's usable).
there's a few additions to the readme file on usage of the modifications. will have a finalised version in a week or so (i hope ;) to handle a few extra bits i've been working on with it)
-daz
n0On3
25th November 2003 17:39 UTC
DrO, is it possible to capture output in real-time (or line by line)?
I think someone was working on this, but can't remember...
DrO
25th November 2003 17:55 UTC
it all depends on the program, some can and the version i was developing was able to handle most cases of those programs.
unfortunately most don't seem to and the code can't access the screen data until the program finishes (in the thread further up i think i posted the relevant comment from microsoft about the issue).
because of that the spinning star was the best way i could think of to indicate processing is happening (the dll attached fixed the display issues that were in the first version i put out). i need to fix the code for those programs that do handle real output (so it doesn't lose a few characters or repeat parts slightly) but is hard with only a few examples to work with :(
-daz
n0On3
26th November 2003 00:30 UTC
Originally posted by DrO
i need to fix the code for those programs that do handle real output (so it doesn't lose a few characters or repeat parts slightly) but is hard with only a few examples to work with :(
I tried with one exe that does live output but your nsExec only prints it at the end. Do you want it?