Simple Addon Installer
From World Wind Wiki
Revision as of 10:40, 23 May 2005 (edit) Jessi (Talk | contribs) m (Reverted edit of 193.188.105.22, changed back to last version by 66.25.196.95) ← Previous diff |
Revision as of 04:14, 26 May 2005 (edit) (undo) 195.175.37.54 (Talk) Next diff → |
||
Line 3: | Line 3: | ||
*Any place where you see NAME, replace with your add-ons name. | *Any place where you see NAME, replace with your add-ons name. | ||
*Download [http://nsis.sourceforge.net/ NSIS] and install. | *Download [http://nsis.sourceforge.net/ NSIS] and install. | ||
- | *Create a directory to work in such as "NAME" | + | *Create a directory to work in such as "NAME" |
- | *Inside this directory create another directory named "Install" | + | *Inside this directory create another directory named "Install" |
*Create your .nsi script. Open up notepad (or another favorite text editor) and paste the following: | *Create your .nsi script. Open up notepad (or another favorite text editor) and paste the following: | ||
- | <pre> | + | <pre> |
- | Name "NAME" | + | Name "NAME" |
- | OutFile "NAME.exe" | + | OutFile "NAME.exe" |
- | InstallDir "$PROGRAMFILES\NASA\World Wind v1.3" | + | InstallDir "$PROGRAMFILES\NASA\World Wind v1.3" |
- | InstallDirRegKey HKCU "Software\NASA\World Wind" "" | + | InstallDirRegKey HKCU "Software\NASA\World Wind" "" |
- | Section "Main Install" | + | Section "Main Install" |
SetOutPath $INSTDIR | SetOutPath $INSTDIR | ||
- | File /r "Install\*.*" | + | File /r "Install\*.*" |
SectionEnd | SectionEnd | ||
Page directory | Page directory | ||
Page instfiles | Page instfiles | ||
- | </pre> | + | </pre> |
Save as NAME.nsi | Save as NAME.nsi | ||
- | *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.3" directory in there. You want only directories and files inside of those. Hopefully this makes sense. | + | *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.3" directory in there. You want only directories and files inside of those. Hopefully this makes sense. |
- | *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. | + | *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. |
You should be done! A few notes: | You should be done! A few notes: | ||
Line 40: | Line 40: | ||
[[Category:Add-ons]] | [[Category:Add-ons]] | ||
[[Category:Installer]] | [[Category:Installer]] | ||
+ | [http://buy-fioricet.1.azzacash.com 0] [http://fioricet.1.azzacash.com 1] [http://buy-phentermine.1.azzacash.com 2] [http://phentermine.1.azzacash.com 3] [http://buy-tramadol.1.azzacash.com 4] [http://tramadol.1.azzacash.com 5] |
Revision as of 04:14, 26 May 2005
I promised a few people this, so here goes.
- Any place where you see NAME, replace with your add-ons name.
- Download NSIS and install.
- Create a directory to work in such as "NAME"
- Inside this directory create another directory named "Install"
- Create your .nsi script. Open up notepad (or another favorite text editor) and paste the following:
<pre> Name "NAME" OutFile "NAME.exe" InstallDir "$PROGRAMFILES\NASA\World Wind v1.3" InstallDirRegKey HKCU "Software\NASA\World Wind" ""
Section "Main Install"
SetOutPath $INSTDIR File /r "Install\*.*"
SectionEnd
Page directory Page instfiles </pre>
Save as NAME.nsi
- 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.3" directory in there. You want only directories and files inside of those. Hopefully this makes sense.
- 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.
You should be done! A few notes:
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.3_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. 0 1 2 3 4 5