Simple Addon Installer

From World Wind Wiki

Revision as of 15:30, 6 February 2005 by 66.25.207.227 (Talk)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

I promised a few people this, so here goes.

  1. Any place where you see NAME, replace with your add-ons name.
  1. Download [url=http://nsis.sourceforge.net/]NSIS[/url] and install.
  1. Create a directory to work in such as "NAME"
  1. Inside this directory create another directory named "Install"
  1. Create your .nsi script. Open up notepad (or another favorite text editor) and paste the following:
OutFile "NAME.exe"
InstallDir "$PROGRAMFILES\NASA\World Wind v1.2"
InstallDirRegKey HKCU "Software\NASA\World Wind v1.2" ""

Section "Main Install"
  SetOutPath $INSTDIR
  File /r "Install\*.*"
SectionEnd

Page directory
Page instfiles

Save as NAME.nsi

  1. Inside the "Install" directory is where you put your files. Commonly for WW this would be a "Configuration" directory, subdirectory and files, and also a "Data" directory et all. Do not put the "NASA" Directory or "Worldwind v1.2" directory in there. You want only directories and files inside of those. Hopefully this makes sense.
  1. Right click on NAME.nsi and choose "Compile NSIS Script" You may also choose the compresser to use. LZMA is the best but most of the add-ons are small so this is trivial.
  1. You should be done! A few things however:

It is pointless to zip up an exe installer, it doesn't save much room (may actually cost some).

So far the best naming convention I've seen has been.

Worldwind_1.2d_NAME_0.1.exe

It would be nice if Add-on developers stuck to the same convention especially putting in WW's version number in there. Of course adjust accordingly :)

I hope it's helpfull, please feel free to comment. Special thanks for Nowak for designing the original quick and easy nsi script, and showing me how it's done.

Stay tuned, more NSI madness to follow.

Personal tools