home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2011 November
/
CHIP_2011_11.iso
/
Programy
/
Inne
/
Gry
/
Atomic_Tanks
/
Atomic-Tanks-5.1.exe
/
atanks.nsi
< prev
next >
Wrap
Text File
|
2011-07-04
|
12KB
|
489 lines
; example1.nsi
;
; This script is perhaps one of the simplest NSIs you can make. All of the
; optional settings are left to their default settings. The installer simply
; prompts the user asking them where to install, and drops a copy of example1.nsi
; there.
;--------------------------------
; The name of the installer
Name "Atomic Tanks 5.1"
; The file to write
OutFile "Atomic-Tanks-5.1.exe"
; The default installation directory
InstallDir $PROGRAMFILES\atanks
; Request application privileges for Windows Vista
RequestExecutionLevel admin
;--------------------------------
; Pages
Page components
Page directory
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles
;--------------------------------
; The stuff to install
Section "Full game (required)"
SectionIn RO
SetOutPath "$INSTDIR"
File alleg42.dll
File atanks-4.3.spec
File atanks.desktop
File atanks.exe
File atanks.ico
File atanks.png
File Changelog
File COPYING
File credits.txt
File Makefile
File README
File README_ru.txt
File TODO
File unicode.dat
CreateDirectory "$INSTDIR\button"
SetOutPath "$INSTDIR\button"
File button\0.bmp
File button\1.bmp
File button\2.bmp
File button\3.bmp
File button\4.bmp
File button\5.bmp
File button\6.bmp
File button\7.bmp
File button\8.bmp
File button\9.bmp
File button\10.bmp
File button\11.bmp
File button\12.bmp
File button\13.bmp
File button\14.bmp
File button\15.bmp
File button\16.bmp
File button\17.bmp
File button\18.bmp
File button\19.bmp
File button\20.bmp
File button\21.bmp
File button\22.bmp
File button\23.bmp
File button\24.bmp
File button\25.bmp
File button\26.bmp
File button\27.bmp
CreateDirectory "$INSTDIR\misc"
SetOutPath "$INSTDIR\misc"
File misc\0.bmp
File misc\1.bmp
File misc\2.bmp
File misc\3.bmp
File misc\4.bmp
File misc\5.bmp
File misc\6.bmp
File misc\7.bmp
File misc\8.bmp
File misc\9.bmp
File misc\10.bmp
File misc\11.bmp
File misc\12.bmp
File misc\13.bmp
File misc\14.bmp
File misc\15.bmp
File misc\16.bmp
File misc\17.bmp
CreateDirectory "$INSTDIR\missile"
SetOutPath "$INSTDIR\missile"
File missile\0.bmp
File missile\1.bmp
File missile\2.bmp
File missile\3.bmp
File missile\4.bmp
File missile\5.bmp
File missile\6.bmp
File missile\7.bmp
File missile\8.bmp
File missile\9.bmp
File missile\10.bmp
File missile\11.bmp
File missile\12.bmp
File missile\13.bmp
File missile\14.bmp
File missile\15.bmp
File missile\16.bmp
File missile\17.bmp
File missile\18.bmp
File missile\19.bmp
File missile\20.bmp
File missile\21.bmp
File missile\22.bmp
File missile\23.bmp
File missile\24.bmp
File missile\25.bmp
File missile\26.bmp
File missile\27.bmp
File missile\28.bmp
File missile\29.bmp
File missile\30.bmp
CreateDirectory "$INSTDIR\sound"
SetOutPath "$INSTDIR\sound"
File sound\0.wav
File sound\1.wav
File sound\2.wav
File sound\3.wav
File sound\4.wav
File sound\5.wav
File sound\6.wav
File sound\7.wav
File sound\8.wav
File sound\9.wav
File sound\10.wav
File sound\11.wav
File sound\12.wav
CreateDirectory "$INSTDIR\stock"
SetOutPath "$INSTDIR\stock"
File stock\0.bmp
File stock\1.bmp
File stock\2.bmp
File stock\3.bmp
File stock\4.bmp
File stock\5.bmp
File stock\6.bmp
File stock\7.bmp
File stock\8.bmp
File stock\9.bmp
File stock\10.bmp
File stock\11.bmp
File stock\12.bmp
File stock\13.bmp
File stock\14.bmp
File stock\15.bmp
File stock\16.bmp
File stock\17.bmp
File stock\18.bmp
File stock\19.bmp
File stock\20.bmp
File stock\21.bmp
File stock\22.bmp
File stock\23.bmp
File stock\24.bmp
File stock\25.bmp
File stock\26.bmp
File stock\27.bmp
File stock\28.bmp
File stock\29.bmp
File stock\30.bmp
File stock\31.bmp
File stock\32.bmp
File stock\33.bmp
File stock\34.bmp
File stock\35.bmp
File stock\36.bmp
File stock\37.bmp
File stock\38.bmp
File stock\39.bmp
File stock\40.bmp
File stock\41.bmp
File stock\42.bmp
File stock\43.bmp
File stock\44.bmp
File stock\45.bmp
File stock\46.bmp
File stock\47.bmp
File stock\48.bmp
File stock\49.bmp
File stock\50.bmp
File stock\51.bmp
File stock\52.bmp
File stock\53.bmp
File stock\54.bmp
File stock\55.bmp
File stock\56.bmp
File stock\57.bmp
File stock\58.bmp
File stock\59.bmp
File stock\60.bmp
File stock\61.bmp
File stock\62.bmp
File stock\63.bmp
File stock\64.bmp
File stock\65.bmp
File stock\66.bmp
File stock\67.bmp
File stock\68.bmp
File stock\69.bmp
File stock\70.bmp
File stock\71.bmp
File stock\72.bmp
File stock\73.bmp
File stock\74.bmp
File stock\75.bmp
File stock\76.bmp
File stock\77.bmp
File stock\78.bmp
CreateDirectory "$INSTDIR\tank"
SetOutPath "$INSTDIR\tank"
File tank\0.bmp
File tank\1.bmp
File tank\2.bmp
File tank\3.bmp
File tank\4.bmp
File tank\5.bmp
File tank\6.bmp
File tank\7.bmp
File tank\8.bmp
File tank\9.bmp
File tank\10.bmp
File tank\11.bmp
File tank\12.bmp
File tank\13.bmp
File tank\14.bmp
File tank\15.bmp
CreateDirectory "$INSTDIR\tankgun"
SetOutPath "$INSTDIR\tankgun"
File tankgun\0.bmp
File tankgun\1.bmp
File tankgun\2.bmp
File tankgun\3.bmp
File tankgun\4.bmp
File tankgun\5.bmp
File tankgun\6.bmp
File tankgun\7.bmp
File tankgun\8.bmp
CreateDirectory "$INSTDIR\text"
SetOutPath "$INSTDIR\text"
File text\gloat.pt_BR.txt
File text\gloat.txt
File text\gloat_es.txt
File text\gloat_de.txt
File text\gloat_fr.txt
File text\gloat_ru.txt
File text\gloat_sk.txt
File text\Help.pt_BR.txt
File text\Help.txt
File text\Help_es.txt
File text\Help_fr.txt
File text\Help_ru.txt
File text\Help_sk.txt
File text\ingame.pt_BR.txt
File text\ingame.txt
File text\ingame_de.txt
File text\ingame_es.txt
File text\ingame_fr.txt
File text\ingame_ru.txt
File text\ingame_sk.txt
File text\instr.pt_BR.txt
File text\instr.txt
File text\instr_de.txt
File text\instr_es.txt
File text\instr_fr.txt
File text\instr_ru.txt
File text\instr_sk.txt
File text\kamikaze.pt_BR.txt
File text\kamikaze.txt
File text\kamikaze_de.txt
File text\kamikaze_es.txt
File text\kamikaze_fr.txt
File text\kamikaze_ru.txt
File text\kamikaze_sk.txt
File text\retaliation.pt_BR.txt
File text\retaliation.txt
File text\retaliation_de.txt
File text\retaliation_es.txt
File text\retaliation_fr.txt
File text\retaliation_ru.txt
File text\retaliation_sk.txt
File text\revenge.pt_BR.txt
File text\revenge.txt
File text\revenge_de.txt
File text\revenge_es.txt
File text\revenge_fr.txt
File text\revenge_ru.txt
File text\revenge_sk.txt
File text\suicide.pt_BR.txt
File text\suicide.txt
File text\suicide_de.txt
File text\suicide_es.txt
File text\suicide_fr.txt
File text\suicide_ru.txt
File text\suicide_sk.txt
File text\war_quotes.txt
File text\war_quotes_es.txt
File text\war_quotes_ru.txt
File text\weapons.pt_BR.txt
File text\weapons.txt
File text\weapons_de.txt
File text\weapons_es.txt
File text\weapons_fr.txt
File text\weapons_ru.txt
File text\weapons_sk.txt
CreateDirectory "$INSTDIR\title"
SetOutPath "$INSTDIR\title"
File title\0.bmp
File title\1.bmp
File title\2.bmp
File title\3.bmp
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Write the installation path into the registry
WriteRegStr HKLM SOFTWARE\NSIS_atanks "Install_Dir" "$INSTDIR"
; Write the uninstall keys for Windows
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\atanks" "DisplayName" "Atomic Tanks"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\atanks" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\atanks" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\atanks" "NoRepair" 1
WriteUninstaller "uninstall.exe"
SectionEnd
; Optional section (can be disabled by the user)
Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\Atomic Tanks"
CreateShortCut "$SMPROGRAMS\Atomic Tanks\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\Atomic Tanks\Atomic Tanks.lnk" "$INSTDIR\atanks.exe" "" "$INSTDIR\atanks.exe" 0
SectionEnd
Section "Source Code"
SetOutPath "$INSTDIR"
File atanks.ico
File atanks.nsi
CreateDirectory "$INSTDIR\exporter"
SetOutPath "$INSTDIR\exporter"
File exporter\export.cpp
File exporter\move.cpp
CreateDirectory "$INSTDIR\src"
SetOutPath "$INSTDIR\src"
File src\allegro.h
File src\atanks.cpp
File src\atanks.rc
File src\beam.cpp
File src\beam.h
File src\button.cpp
File src\button.h
File src\client.cpp
File src\client.h
File src\decor.h
File src\environment.cpp
File src\environment.h
File src\explosion.cpp
File src\explosion.h
File src\externs.h
File src\fade.cpp
File src\files.cpp
File src\files.h
File src\floattext.cpp
File src\floattext.h
File src\gameloop.cpp
File src\gameloop.h
File src\globaldata.cpp
File src\globaldata.h
File src\globals.h
File src\imagedefs.h
File src\land.cpp
File src\land.h
File src\main.h
File src\Makefile
File src\Makefile.bsd
File src\Makefile.windows
File src\menu.h
File src\menucontent.h
File src\missile.cpp
File src\missile.h
File src\network.cpp
File src\network.h
File src\perlin.cpp
File src\physobj.cpp
File src\physobj.h
File src\player.cpp
File src\player.h
File src\satellite.cpp
File src\satellite.h
File src\sky.cpp
File src\sky.h
File src\tank.cpp
File src\tank.h
File src\team.cpp
File src\team.h
File src\teleport.cpp
File src\teleport.h
File src\text.cpp
File src\text.h
File src\update.cpp
File src\update.h
File src\virtobj.cpp
File src\virtobj.h
SectionEnd
;--------------------------------
; Uninstaller
Section "Uninstall"
; Remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\atanks"
DeleteRegKey HKLM SOFTWARE\atanks
; Remove files and uninstaller
Delete "$INSTDIR\button\*.*"
Delete "$INSTDIR\misc\*.*"
Delete "$INSTDIR\missile\*.*"
Delete "$INSTDIR\sound\*.*"
Delete "$INSTDIR\stock\*.*"
Delete "$INSTDIR\tank\*.*"
Delete "$INSTDIR\tankgun\*.*"
Delete "$INSTDIR\text\*.*"
Delete "$INSTDIR\title\*.*"
Delete "$INSTDIR\exporter\*.*"
Delete "$INSTDIR\src\*.*"
Delete "$INSTDIR\*.*"
; Remove shortcuts, if any
Delete "$SMPROGRAMS\Atomic Tanks\Uninstall.lnk"
Delete "$SMPROGRAMS\Atomic Tanks\Atomic Tanks.lnk"
; Remove directories used
RMDir "$SMPROGRAMS\Atomic Tanks"
RMDir "$INSTDIR\button"
RMDir "$INSTDIR\misc"
RMDir "$INSTDIR\missile"
RMDir "$INSTDIR\sound"
RMDir "$INSTDIR\stock"
RMDir "$INSTDIR\tank"
RMDir "$INSTDIR\tankgun"
RMDir "$INSTDIR\text"
RMDir "$INSTDIR\title"
RMDir "$INSTDIR\exporter"
RMDir "$INSTDIR\src"
RMDir "$INSTDIR"
SectionEnd