View Full Version : ExecWait with progress bar ?
18th June 2003, 08:55
here is my problem.
for compression i use WinRar. to extract i use ExecWait to call UnRar.exe (for decompression). my question : it is possible to display the progress bar (from the inst_files page) while execwait is executing ?
ex. when execwait begins the progress bar is at 0%. when it finishes the progress bar jumpes to 34%. is it possible to show the progress beetween this points, not only the begining and the end ?
do not respond yet. sorry. let me read a little documentation...
18th June 2003, 09:25
well it's a little strange. if i extract with winrar or make the arhive SFX (.exe) it stoppes and askes for the second volume, but the producers tool, freeware - unrar.exe, does not support this. interesting...
so the question remains. but not for this particular case.
can it be done ?
18th June 2003, 14:36
I don't think an execwait with progress bar can be done because NSIS has no way to know how is the launched program doing.
Maybe if you uncompress with NSIS built-in zip will show a real progrees bar, but you may be using rar because of space...
18th June 2003, 14:45
you are right. i'm using rar compression instead of zip because is better. too bad...
back to zip then...
new question: i searched the forums and did not find any related threads, if my project is about 4 cd-s, can i make (using install options, custom pages, or something like this) the installer to stop when done copying from the cd and ask, with a nice combo box, for the next cd ? or something like this ?
18th June 2003, 15:33
If you are using anything other than the File command then you can. Just copy everything that you need using unrar, CopyFiles, or anything else and then ask for the next CD and start copying from it.
18th June 2003, 18:55
TIP: use RAR with parameters instead unrar.
Unrar sucks although is has same routines as rar - you dont need a keyfile if you do not use proprietare switches like auth or so. the only thing is (if distributed) a copyright file & text for RAR.
BTW there exist an unrar.dll (eg. will be distributed with Winace) - maybe you can find out how to use it to get a feedback in NSIS.
20th June 2003, 07:37
in the end i used unrar.exe. it's ok, it works. i used nsExec.
but now i have another problem:
my script is mothing like this:
Page custom CD02 ValidateCD
Page custom CD03 ValidateCD
in the first instfiles page i'm installing the first cd. with the first custom function i ask the user to enter the 2nd cd and i install it with the second instfiles page and so on...
my problem is: how to make my scipt to recognize that the first (or second) cd has already been installed ? because every time i use instfiles it starts from the begining (decompressing files).
20th June 2003, 13:10
i forgot to say that i have 2 sections, but the first section containes the 3cd installation.
got it. thanks anyway !
25th June 2003, 11:36
You'd need to start changing sections' flags at each section. In the first section that installs the first CD change the flags of all sections so that only the second one will be installed next, etc.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.