Old 23rd June 2007, 22:12   #1
Innocentus
Junior Member
 
Join Date: Jun 2007
Posts: 12
Talking Simple progressbar for NSIS?

Dear Friends,

FireFox Portable's launcher and core is programmed in NSIS.
I looked at the code and it is pretty simple and I love that programming system. The problem is that I want to add a primitive progressbar to the whole thing.

I only want to visualize the progress in a little Window or something like that.

Is there a way to do that?

I searched but I didnt found any function for that.

I need to know how
- to create a progressbar
- to set the value (15 %) to the bar
- and at least how to destroy it again

Thank you very much!
With best Regards
MfG
Inno
Innocentus is offline   Reply With Quote
Old 24th June 2007, 00:48   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Re: Simple progressbar for NSIS?

Quote:
Originally posted by Innocentus


I searched but I didnt found any function for that.
Are you sure?
http://nsis.sourceforge.net/NxSMSILoaderDlg_plug-in
http://nsis.sourceforge.net/MSIBanner_plug-in
http://nsis.sourceforge.net/NewAdvSplash_plug-in
http://nsis.sourceforge.net/Nxs_plug-in
http://nsis.sourceforge.net/EBanner_plug-in
http://nsis.sourceforge.net/LoadingBar_UI



* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 24th June 2007, 12:44   #3
Innocentus
Junior Member
 
Join Date: Jun 2007
Posts: 12
Exclamation URGENT!

Well, there is another very important question!
When I use a labor-intensive CopyFiles-Function in my Script without /SILENT a progressbar is shown.
Well - how can I map the progress of the file-transfer into an own progress bar?

So when I use the CopyFiles-Function my own progresshandler / bar is used.

Thank you very much!
With best regards
MfG
Inno
Innocentus is offline   Reply With Quote
Old 24th June 2007, 13:11   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You have to use Locate or RecFind and change the progress bar yourself. Or, you can use the RealProgress bar with the GradualProgress function.

Stu
Afrow UK is offline   Reply With Quote
Old 24th June 2007, 13:26   #5
Innocentus
Junior Member
 
Join Date: Jun 2007
Posts: 12
Thank you! Last question concerning RealProgress.

Thank you very much for your fast answer!
Well, RealProgress seems to be the perfect solution for such a thing!

Only one question I have:
How can I transform this statement...

Quote:
CopyFiles /SILENT $PROFILEDIRECTORY\*.* $TEMP\${NAME}\profile
into a RealProgress compatible command?

Thank you very much!
With best regards
MfG
Inno
Innocentus is offline   Reply With Quote
Old 24th June 2007, 14:54   #6
Innocentus
Junior Member
 
Join Date: Jun 2007
Posts: 12
Exclamation URGENT - PLEASE HELP!

Could someone help me?

Pls

With best regards.
MfG
Inno
Innocentus is offline   Reply With Quote
Old 24th June 2007, 17:30   #7
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Have you looked at the plugin documentation?

Stu
Afrow UK is offline   Reply With Quote
Old 24th June 2007, 22:37   #8
Innocentus
Junior Member
 
Join Date: Jun 2007
Posts: 12
Could you show me an example, pls - with explanations.
Because it's looking so mad to me.

Thank you very much!

With best regards
MfG
Inno
Innocentus is offline   Reply With Quote
Old 25th June 2007, 10:02   #9
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
There is a GradualProgress example in the Examples\RealProgress folder.
You may also want to use the optional [until_detail_reached] parameter as specified in the readme file.

Stu
Afrow UK 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