How can I install a plugin?: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Reverted edits by 79.162.3.49 to last version by 149.155.96.6)
Line 8: Line 8:
After downloading and unpacking a plugin one need to accept the license agreement (residing in "license.txt" file). Then the ".dll" files must be put into "NSIS/Plugins" subfolder of NSIS installation and the ".nsh" files -- into "NSIS/Include" subfolder.
After downloading and unpacking a plugin one need to accept the license agreement (residing in "license.txt" file). Then the ".dll" files must be put into "NSIS/Plugins" subfolder of NSIS installation and the ".nsh" files -- into "NSIS/Include" subfolder.


<span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">=== Dialogs plugin installation example === [[Dialogs plug-in|"Dialogs" plugin]] is distributed in a form of ZIP-archive named "Dialogs.zip".</span> === Dialogs Przykładowa instalacja wtyczki === [[plug-in Dialogs | "Dialogs" wtyczki]] jest rozprowadzany w postaci archiwum ZIP o nazwie "Dialogs.zip".</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">The archive contains 4 mandatory files: "dialogs.dll", "defines.nsh", "ZipDLL.dll" and "zipdll.nsh".</span> Archiwum zawiera 4 obowiązkowe pliki: "dialogs.dll", "defines.nsh", "ZipDLL.dll" i "zipdll.nsh".</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">The last two forms [[ZipDLL plug-in]] which is used by the "Dialogs" plugin.</span> W ostatnich dwóch form [[ZipDLL plug-in]], który jest używany przez "Dialogs" wtyczki.</span> <span onmouseover="_tipon(this)" onmouseout="_tipoff()"><span class="google-src-text" style="direction: ltr; text-align: left">All ".dll" files must be extracted into "C:\Program Files\NSIS\Plugins" folder and ".nsh" files must be extracted into "C:\Program Files\NSIS\Include" folder, supposing that NSIS installation name was the default "C:\Program Files\NSIS". [[Category:Plugins]] [[Category:FAQ]]</span> Wszystkie ". Dll" plików, które muszą być wyodrębnione w "C: \ Program Files \ NSIS \ Plugins" folder ". Nsh" plików, które muszą być wyodrębnione w "C: \ Program Files \ NSIS \ include" folder, sądząc, że nazwa instalacji NSIS był domyślnie "C: \ Program Files \ NSIS." [[Kategoria: Wtyczki]] [[Kategoria: FAQ]]</span>
=== Dialogs plugin installation example ===
[[Dialogs plug-in|"Dialogs" plugin]] is distributed in a form of ZIP-archive named "Dialogs.zip". The archive contains 4 mandatory files: "dialogs.dll", "defines.nsh", "ZipDLL.dll" and "zipdll.nsh". The last two forms [[ZipDLL plug-in]] which is used by the "Dialogs" plugin. All ".dll" files must be extracted into "C:\Program Files\NSIS\Plugins" folder and ".nsh" files must be extracted into "C:\Program Files\NSIS\Include" folder, supposing that NSIS installation name was the default "C:\Program Files\NSIS".
 
[[Category:Plugins]]
[[Category:FAQ]]

Revision as of 17:03, 15 March 2010

Plugin general information

Plugin is a way of extending application's functionality by adding new functions. For NSIS plugins consist of two mandatory files (with extensions ".dll" and ".nsh") and some informational files ("readme.txt", "license.txt", help files with ".chm" extension). Files with ".dll" extension hold bodies of plugin functions in form of Dynamic Link Library (DLL) and ".nsh"-files (header files) hold some data in plain text for using that functions with NSIS.

"NSIS searches for plug-ins in the Plugins folder under your NSIS directory and lists all of their available functions. You can use !addplugindir to tell NSIS to search in other directories too." -- NSIS manual, chapter 2 "Tutorial: The Basics".

NSIS plugin installation

After downloading and unpacking a plugin one need to accept the license agreement (residing in "license.txt" file). Then the ".dll" files must be put into "NSIS/Plugins" subfolder of NSIS installation and the ".nsh" files -- into "NSIS/Include" subfolder.

Dialogs plugin installation example

"Dialogs" plugin is distributed in a form of ZIP-archive named "Dialogs.zip". The archive contains 4 mandatory files: "dialogs.dll", "defines.nsh", "ZipDLL.dll" and "zipdll.nsh". The last two forms ZipDLL plug-in which is used by the "Dialogs" plugin. All ".dll" files must be extracted into "C:\Program Files\NSIS\Plugins" folder and ".nsh" files must be extracted into "C:\Program Files\NSIS\Include" folder, supposing that NSIS installation name was the default "C:\Program Files\NSIS".