Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 18th June 2003, 08:55   #1
o_owd
Senior Member
 
o_owd's Avatar
 
Join Date: Feb 2003
Location: TGM, Romania
Posts: 175
Send a message via ICQ to o_owd Send a message via Yahoo to o_owd
ExecWait with progress bar ?

hi!

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 ?

thanks.


do not respond yet. sorry. let me read a little documentation...
o_owd is offline   Reply With Quote
Old 18th June 2003, 09:25   #2
o_owd
Senior Member
 
o_owd's Avatar
 
Join Date: Feb 2003
Location: TGM, Romania
Posts: 175
Send a message via ICQ to o_owd Send a message via Yahoo to o_owd
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 ?

thanks.
o_owd is offline   Reply With Quote
Old 18th June 2003, 14:36   #3
n0On3
Senior Member
 
n0On3's Avatar
 
Join Date: Jan 2001
Location: Barcelona
Posts: 314
Send a message via ICQ to n0On3
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...
n0On3 is offline   Reply With Quote
Old 18th June 2003, 14:45   #4
o_owd
Senior Member
 
o_owd's Avatar
 
Join Date: Feb 2003
Location: TGM, Romania
Posts: 175
Send a message via ICQ to o_owd Send a message via Yahoo to o_owd
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 ?
o_owd is offline   Reply With Quote
Old 18th June 2003, 15:33   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
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.

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 18th June 2003, 18:55   #6
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 676
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.

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 20th June 2003, 07:37   #7
o_owd
Senior Member
 
o_owd's Avatar
 
Join Date: Feb 2003
Location: TGM, Romania
Posts: 175
Send a message via ICQ to o_owd Send a message via Yahoo to o_owd
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:

PHP Code:
.......
!
insertmacro MUI_PAGE_INSTFILES
Page custom CD02 ValidateCD
!insertmacro MUI_PAGE_INSTFILES
Page custom CD03 ValidateCD
!insertmacro MUI_PAGE_INSTFILES
....... 
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).
o_owd is offline   Reply With Quote
Old 20th June 2003, 13:10   #8
o_owd
Senior Member
 
o_owd's Avatar
 
Join Date: Feb 2003
Location: TGM, Romania
Posts: 175
Send a message via ICQ to o_owd Send a message via Yahoo to o_owd
i forgot to say that i have 2 sections, but the first section containes the 3cd installation.

[edit]

got it. thanks anyway !

[/edit]

Last edited by o_owd; 20th June 2003 at 13:47.
o_owd is offline   Reply With Quote
Old 25th June 2003, 11:36   #9
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
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.

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
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