
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1489 212acab6-be3b-0410-9dea-997c60f758d6
241 lines
No EOL
10 KiB
HTML
241 lines
No EOL
10 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
|
|
<title>NSIS Modern User Interface</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
|
<style type="text/css">
|
|
|
|
body
|
|
{
|
|
padding: 10px;
|
|
background-color: #F0F0F0;
|
|
font-family: Verdana, Arial, Helvetica, sans-serif;
|
|
font-size: 10pt;
|
|
font-weight: normal;
|
|
}
|
|
|
|
center
|
|
{
|
|
text-align: center;
|
|
}
|
|
|
|
table
|
|
{
|
|
margin: auto;
|
|
text-align: left;
|
|
background-color: #FFFFFF;
|
|
}
|
|
|
|
.maintable
|
|
{
|
|
border: 2px solid #376EAB;
|
|
}
|
|
|
|
.margin
|
|
{
|
|
margin: 20px;
|
|
}
|
|
|
|
.text
|
|
{
|
|
margin: 20px;
|
|
}
|
|
|
|
.bold
|
|
{
|
|
font-weight: bold;
|
|
color: #303030;
|
|
}
|
|
|
|
.changelog
|
|
{
|
|
}
|
|
|
|
.header
|
|
{
|
|
font-size: 14pt;
|
|
color: #7A7272;
|
|
}
|
|
|
|
.subheader
|
|
{
|
|
font-size: 11pt;
|
|
font-weight: bold;
|
|
color: #303030;
|
|
}
|
|
|
|
.footer
|
|
{
|
|
margin: 5px 5px 5px 5px;
|
|
text-align: right;
|
|
font-size: 8pt;
|
|
color: #909090;
|
|
}
|
|
|
|
a:link, a:visited, a:active
|
|
{
|
|
color: #294F75;
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover
|
|
{
|
|
color: #182634;
|
|
text-decoration: none;
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="center">
|
|
<table width="750" cellpadding="0" cellspacing="0" class="maintable">
|
|
<tr><td>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr class="header">
|
|
<td><img src="Readme.jpg" width="750" height="80" alt=""></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><div class="margin">
|
|
<p class="header">Introduction</p>
|
|
<p class="text">NSIS 2 makes it is possible to create installers
|
|
with a custom user interface.</p>
|
|
<p class="text"> I made this interface with a modern wizard style,
|
|
like the wizards of recent Windows versions. This new interface
|
|
also features new graphics and a description area on the
|
|
component-selection page.</p>
|
|
<p class="text">To use this new interface for for installer, you need
|
|
to add some code to your NSIS script. Read this document for more info!</p>
|
|
<p class="header">Requirements</p>
|
|
<p class="text"><a href="http://nsis.sourceforge.net">NSIS 2 beta 0 (or later)</a></p>
|
|
<p class="header">Screenshot</p>
|
|
<p class="text"><img src="Screenshot.png" width="504" height="391" alt=""></p>
|
|
<p class="header">How to use</p>
|
|
<p class="text">The Modern UI has a macro system, so most of the code
|
|
has already been written for you!</p>
|
|
<p class="text"><span class="subheader">Basic Macro System</span><br>
|
|
For most scripts, you can use the basic macro system. The basic
|
|
macro system inserts all code and functions for you. For an example,
|
|
have a look at <a href="..\..\Examples\Modern UI\Basic.nsi">Basic.nsi</a>.<br><br>
|
|
To remove certain default NSIS pages (such as the License page),
|
|
remove a define before the language files (for example, remove
|
|
!define MUI_LICENSEPAGE), and remove the other instruction for
|
|
the page (for example, LicenseData).</p>
|
|
<p class="text"><span class="subheader">Advanced Macro System, Install Options</span><br>
|
|
If you want put your code in certain NSIS functions or want to
|
|
use custom installer pages, use the Advanced Macro System.
|
|
The code will still be inserted using the macro's, but
|
|
you can customize a lot of things, add your own code or
|
|
add new pages.<br>
|
|
Using the Install Options macro's, it's also very easy to use
|
|
custom pages in your installer.<br>
|
|
Have a look at <a href="..\..\Examples\Modern UI\InstallOptions.nsi">
|
|
InstallOptions.nsi</a> for an example of the Install Options
|
|
and the Advanced Macro System.</p>
|
|
<p class="text"><span class="subheader">Multilanguage installers</span><br>
|
|
The Modern UI has full multilanguage support and also uses
|
|
language files which can be translated easily. You can find the
|
|
language files in the Contrib\Modern UI\Language files directory.
|
|
There are already a lot of translations available, but you can
|
|
also make your own translation.<br>
|
|
See <a href="..\..\Examples\Modern UI\MultiLanguage.nsi">MultiLanguage.nsi</a>
|
|
for a multilanguage example using the Basic Macro System.
|
|
<p class="header">The interface</p>
|
|
<p class="text"><span class="subheader">Modern.exe and modern2.exe</span><br>
|
|
There are two different version of the interface.
|
|
Modern.exe contains the dialogs of the standard interface.
|
|
If you have an installer with a lot of subsections
|
|
or long section names, use modern2.exe, which has a different
|
|
component-selection page.</p>
|
|
<p class="text"><span class="subheader">Change interface settings</span><br>
|
|
You can change the settings of the interface
|
|
by usings defines before you insert the MUI_INTERFACE macro.<br>
|
|
Example: !define MUI_UI "${NSISDIR}\Contrib\UIs\modern2.exe"<br>
|
|
If you don't define a setting, the default will be used.<br><br>
|
|
The following settings are available: <i>(default)</i><br>
|
|
<span class="bold">MUI_ICON</span> <i>(${NSISDIR}\Contrib\Icons\modern-install.ico)</i>
|
|
- The icon of the instaleller<br>
|
|
<span class="bold">MUI_UNICON</span> <i>(${NSISDIR}\Contrib\Icons\modern-uninstall.ico)</i>
|
|
- The icon of the uninstaleller<br>
|
|
<span class="bold">MUI_CHECKBITMAP</span> <i>(${NSISDIR}\Contrib\Icons\modern.bmp)</i>
|
|
- The bitmap with images for the checks of the
|
|
component select treeview.<br>
|
|
<span class="bold">MUI_UI</span> <i>(${NSISDIR}\Contrib\UIs\modern.exe)</i>
|
|
- The interface file with the dialog resources<br>
|
|
<span class="bold">MUI_FONT</span> <i>(Tahoma)</i>
|
|
- The font of the installer and uninstaller<br>
|
|
<span class="bold">MUI_INSTALLCOLORS</span> <i>(/windows)</i>
|
|
- The hexadecimal colors of the details screen ("foreground" "background")<br>
|
|
<span class="bold">MUI_PROGRESSBAR</span> <i>(smooth)</i>
|
|
- The style of the progress bar ("colored" to use the MUI_INSTALLCOLORS or ""
|
|
for a old-school windows look)</p>
|
|
<p class="text"><span class="subheader">Customize the dialogs</span><br>
|
|
To change elements on the dialogs, modify modern.exe or modern2.exe in the
|
|
Contrib\UIs directory using a resource editor such as
|
|
<a href="http://www.users.on.net/johnson/resourcehacker/">Resource Hacker</a>.<br><br>
|
|
The 'Loading Setup' text on the splash screen which
|
|
is being displayed when the installer is starting (Verifying
|
|
installer, Unpacking data when using COMPRESS_WHOLE) cannot
|
|
be changed by the script, because the installer is not started
|
|
yet when this dialog is being displayed. If you want to change
|
|
this text, modify dialog 111 of modern(2).exe.<br>
|
|
The 'verifying installer' and 'unpacking data' texts are defined in
|
|
the language header file of the NSIS exehead (Source\exehead\lang.h).
|
|
To change them, you need to edit this file and recompile NSIS.</p>
|
|
<p class="header">Version history</p>
|
|
<ul>
|
|
<li class="changelog">1.3 - October 27, 2002
|
|
<ul>
|
|
<li>Easier macro system for basic scripts
|
|
<li>New MultiLanguage system using Modern UI Language Files
|
|
<li>New directory structure (header/language files in Contrib\Modern UI)
|
|
<li>Small bugfixes & typo corrections
|
|
<li>SetPage function should be set using defines
|
|
<li>Different NextPage/PrevPage/FinishHeader macro's for install/uninstall
|
|
<li>Interface settings can be definend (for example, MUI_ICON), no parameters
|
|
for MUI_INTERFACE anymore
|
|
<li>New Install Options macro's to read/write IO INI file values
|
|
</ul>
|
|
</ul>
|
|
<p class="text"><a href="Changelog.txt">Complete version history</a></p>
|
|
<p class="header">Credits</p>
|
|
<p class="text">Made by Joost Verburg.<br>
|
|
Icons designed by Nikos Adamamas, aka adni18.<br>
|
|
Thanks to Amir Szekely, aka KiCHiK for his work on NSIS
|
|
to make this possible.</p>
|
|
<p class="header">Help</p>
|
|
<p class="text">Please post questions at the <a href="http://forums.winamp.com/forumdisplay.php?forumid=65">NSIS
|
|
Forum</a>.</p>
|
|
<p class="header">License</p>
|
|
<p class="text">Copyright © 2002 Joost Verburg</p>
|
|
<p class="text"> 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.</p>
|
|
<p class="text"> 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:</p>
|
|
<p class="text"> 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.<br>
|
|
2. Altered versions must be plainly marked as such, and
|
|
must not be misrepresented as being the original software.<br>
|
|
3. This notice may not be removed or altered from any distribution.</p>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td><div class="footer">©2002 Joost Verburg</div></td>
|
|
</tr>
|
|
</table>
|
|
</td></tr>
|
|
</table>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |