Nullsoft installer - PowerPoint PPT Presentation

1 / 18
About This Presentation
Title:

Nullsoft installer

Description:

A language for writing installers that will work across multiple operating systems ... Many tutorials exist online at the products homepage ... – PowerPoint PPT presentation

Number of Views:33
Avg rating:3.0/5.0
Slides: 19
Provided by: Hunte5
Category:

less

Transcript and Presenter's Notes

Title: Nullsoft installer


1
Nullsoft installer
  • By
  • D. Hunter Hale

2
What is it?
  • A freely available and distributable installer
    generation system
  • A language for writing installers that will work
    across multiple operating systems
  • Reasonably well-documented
  • Scriptable to handle even the most complex
    multi-part installation
  • From the makers of Winamp, Gnutella, and Waste

3
Why should I use it?
  • Honestly, you shouldnt use the vanilla Nullsoft
    installer Use the HM NIS EDIT overlay to
    automatically generate most scripts for you.
  • For simple installers, 5 clicks and youre done
  • Incorporates all art and sound assets for your
    game into one file
  • Automatically generates uninstaller and placement
    in the start menu

4
Where can I get it?
  • Nullsoft Scriptable Install System(NSIS) is found
    here
  • http//nsis.sourceforge.net/Main_Page
  • HM NIS EDIT is found here (the editor overlay)
  • http//hmne.sourceforge.net/

5
How Do I Use It?
  • For basic installers use the wizard
  • More advanced installers (ones with included
    applications) still use the wizard and then tweak
    the generated script
  • A sample script from a commercial software
    release is included
  • Many tutorials exist online at the products
    homepage

6
Creating Your First Installer
  • First make sure that NSIS installer and NIS
    editor are both installed, NSIS needs to be
    installed first
  • Then Run NI edit

7
Basic Interface
8
The wizard button will guide you through creating
an installer
9
Step 1
The first step of the wizard is to enter some
basic information about your application. All of
this information is optional except for the
application name.
10
Step 2
Select the icon to use for your application and
enter the name of the created installer here
Ignore these sections for now English is selected
by default
11
Step 3
The application installs to here by default
The contents of any text file you select here
will be displayed and the user will have to agree
to them to continue
12
Step 4
Add all the files that compose your project in in
this stage. Also if you have additional
prerequisite files to bundle with the application
add them here
13
Step 5
The application will appear in the start menu
using the name you give it in this form.
14
Step 5
You can specify an executable file to run after
the installer finishes. You can also specify any
text-based readme file to display after
installation. The application will not run until
the readme is closed
15
Step 6
This creates an uninstaller Dont touch
anything and it will just work
16
The final and most important step check the box
to save the script you just created
17
Tweaking the Script
  • Once you finish the wizard it opens your new
    script
  • Additional commands can be added to run
    prerequisite files.

18
Example Code to Add another installer
  • Section -Prerequisites
  • MessageBox MB_OK This text will prompt the
    user to install a component or cancel"
  • ExecWait "INSTDIR\Prerequisites\somefile.exe"
  • SectionEnd
  • This code could be inserted after the installer
    runs and will install and run the referenced
    library file somefile.exe from the
    Prerequisites folder that was added to the
    installer in the wizard. The user will be
    prompted with a popup using the specified text
    and offered a chance to install or not install
    this component.
Write a Comment
User Comments (0)
About PowerShow.com