LoadingBar UI: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page.)
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
[[Image:Zip.gif]] [http://forums.winamp.com/attachment.php?s=&postid=1318524 loadingbar.zip] (8 KB)
[[Image:Zip.gif]] [http://forums.winamp.com/attachment.php?s=&postid=1318524 loadingbar.zip] (8 KB)


[http://forums.winamp.com/showthread.php?postid=1318524#post1318524 Forum thread]
[http://forums.winamp.com/showthread.php?postid=1318524#post1318524 Forum thread] (where anything directly about this contribution should '''always''' be posted)


== Description ==
== Description ==


'''Version''': 1.0.
'''Version''': 1.0.
http://forums.winamp.com/attachment.php?s=&postid=1318529.png


Shows a banner progressbar with your own customized progress.
Shows a banner progressbar with your own customized progress.

Latest revision as of 11:40, 10 November 2005

Links

Download link:
Zip.gif loadingbar.zip (8 KB)

Forum thread (where anything directly about this contribution should always be posted)

Description

Version: 1.0.

attachment.php?s=&postid=1318529.png

Shows a banner progressbar with your own customized progress.

NOTE: This is not a plug-in. At the time this was created I didn't have any experience at all with major languages. This is just an UI to be used with a separate program.

How to use

  • Put the executable files inside the "NSIS\Contrib\UIs" folder. The rest of the files can be installed anywhere.
  • Create a new script containing the installer attribute ChangeUI set with one of the three UI's included:
    • LoadingBar.exe (Progress Bar and Description)
    • LoadingBar_NoDesc.exe (Progress Bar only)
    • LoadingBar_Icon.exe (Progress Bar, Description and Icon)
Also inside this script, use the line below or the script will freeze at the end:
AutoCloseWindow true
To remove the caption ": Installing" from the progressbar (if that appears), use the line below in this script:
Subcaption 3 " "
For the progressbar not to show the word "Completed" after completing the loading process, you should add to the end of the last section to be executed in this script the following line:
SetDetailsPrint None
This progressbar is affected as normally as it would in your main installer script. For example: the "XPStyle" affects the progressbar, making it to appear better in Windows XP.
  • Put the commands you want to load inside a section in this script. The progressbar indicator will increase depending on how many commands are inside the section. You can use "DetailsPrint" command for each step description.
  • Compile this script, include and execute with "ExecWait" the program created from the main installer's script.

Example script

See the "LoadingBarTest.nsi" script included in the distribution. Compile and run it to see how the UI works.

Versions History

1.0 - 04/Apr/2004
  • First version

Credits

LoadingBar UI created by deguix.

License

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.