Old 11th February 2005, 15:53   #1
bdfy
Junior Member
 
Join Date: Feb 2005
Location: Belarus
Posts: 47
Progress bar

I have to use a special console utility in my installer to unpack/pack some files.
Quote:
execDos::exec '"$RHdir\pbtl.exe" -u RedHammer.pbo'
It works about 5-10 sec (on my machine) and progress bar totally freezes during this stage it looks like hanging
After this stage progress bar moves very quickly, then again freezes while pbtl.exe is working...
Can I smooth its motion or something ?
bdfy is offline   Reply With Quote
Old 11th February 2005, 19:08   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Use DetailPrint or the Banner plug-in to let the user know what the installer is doing.

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 12th February 2005, 06:04   #3
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
This may be a some kind of Animation plug-in (already exists? ). Banners I remember require explicite commands from installer, auto-mode not implemented yet (?). Or DOS plug-in can create new control on the INSTFILES page and send animation commands (like InetLoad or NSISdl do). The problem is that we don't know how long your application will work, so IMHO simple auto-animation banner is better.
Takhir is offline   Reply With Quote
Old 12th February 2005, 17:53   #4
bdfy
Junior Member
 
Join Date: Feb 2005
Location: Belarus
Posts: 47
kichik
I can't see any help filó øò plugin-dir. Can you help with Banner plug-in usage? I'd like to see a simple example
bdfy is offline   Reply With Quote
Old 12th February 2005, 17:55   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
See C:\Program Files\NSIS\Contrib\Banner\Example.nsi.

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 12th February 2005, 18:23   #6
bdfy
Junior Member
 
Join Date: Feb 2005
Location: Belarus
Posts: 47
kichik
IMHO It's not a solution... DetailPrint and Banner are static ,they do not create illusion of progress...
I'm looking for a way to move progress bar constantly. i guess , about 30sec is max. time console utility working ( if CPU is slow etc ), hence I'd like to settle speed of progress bar movement
bdfy is offline   Reply With Quote
Old 12th February 2005, 18:27   #7
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You can't withiut changing NSIS' source (your question has been asked many times before).

Just use a Banner saying "Doing something... Please wait"

-Stu
Afrow UK is offline   Reply With Quote
Old 12th February 2005, 18:34   #8
bdfy
Junior Member
 
Join Date: Feb 2005
Location: Belarus
Posts: 47
OK , I understand.
Hope these feature will be added in future releases.
bdfy 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