n4gix
Resource contributor
- Messages
- 11,674
- Country

Nullsoft Scriptable Install System
HM NIS Edit
The following is an example script for the NSIS Installer Creator. For the sake of testing, I'm only installing one or two files to each of the folders to make sure all the paths are properly set up:
HM NIS Edit
The following is an example script for the NSIS Installer Creator. For the sake of testing, I'm only installing one or two files to each of the folders to make sure all the paths are properly set up:
; Script generated by the HM NIS Edit Script Wizard.
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "MilViz Cessna C310R"
!define PRODUCT_VERSION "1.0"
!define PRODUCT_PUBLISHER "Military Visualizations"
!define PRODUCT_WEB_SITE "http://www.MilViz.com"
SetCompressor lzma
; MUI 1.67 compatible ------
!include "MUI2.nsh"
; MUI Settings
;Request application privileges for Windows Vista
RequestExecutionLevel admin
;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
;--------------------------------
;Pages
!insertmacro MUI_PAGE_LICENSE "License.txt"
# !insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
# !insertmacro MUI_UNPAGE_CONFIRM
# !insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
; MUI end ------
InstallDirRegKey HKLM "Software\Microsoft\Microsoft Games\flight simulator\10.0" SetupPath
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "MilViz_C310R_v1.0.exe"
InstallDir "$PROGRAMFILES\Microsoft Games\Microsoft Flight Simulator X\"
ShowInstDetails hide
Section "MainSection" SEC01
SetOutPath "$INSTDIR"
SetOverwrite try
File "P:\C310_BuildFolder\GaugeSound.dll"
SetOutPath "$INSTDIR\Fonts"
File "P:\C310_BuildFolder\Fonts\DS-DIGIB.TTF"
SetOutPath "$INSTDIR\Gauges"
File "P:\C310_BuildFolder\Gauges\C310_XMLGauges.CAB"
File "P:\C310_BuildFolder\Gauges\MilVizC310.gau"
SetOutPath "$INSTDIR\Sound\MilViz"
File "P:\C310_BuildFolder\Sound\MilViz\MilViz Sounds Effects Master List.txt"
File "P:\C310_BuildFolder\Sound\MilViz\SND1.wav"
SetOutPath "$INSTDIR\Modules"
File "P:\C310_BuildFolder\Modules\sb3gaugebridge.dll"
SetOutPath "$INSTDIR\Effects"
File "P:\C310_BuildFolder\Effects\MilVizC310_beacon.fx"
SetOutPath "$INSTDIR\Effects\Texture"
File "P:\C310_BuildFolder\Effects\Texture\MilVizBloom.bmp"
SetOutPath "$INSTDIR\SimObjects\Airplanes\Cessna 310R MilViz\Manuals"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\Manuals\EDM700.pdf"
SetOutPath "$INSTDIR\SimObjects\Airplanes\Cessna 310R MilViz\model"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\model\MilViz_C310.MDL"
SetOutPath "$INSTDIR\SimObjects\Airplanes\Cessna 310R MilViz\model.freeradio"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\model.freeradio\MilViz_C310_freeradio.MDL"
SetOutPath "$INSTDIR\SimObjects\Airplanes\Cessna 310R MilViz\model.G1000"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\model.G1000\MilViz_C310_G1000.MDL"
SetOutPath "$INSTDIR\SimObjects\Airplanes\Cessna 310R MilViz\panel"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\panel\C310_VC_01.bmp"
SetOutPath "$INSTDIR\SimObjects\Airplanes\Cessna 310R MilViz\panel.freeradio"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\panel.freeradio\C310_VC_01_FR.bmp"
SetOutPath "$INSTDIR\SimObjects\Airplanes\Cessna 310R MilViz\panel.G1000"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\panel.G1000\C310_AP.bmp"
SetOutPath "$INSTDIR\SimObjects\Airplanes\Cessna 310R MilViz\sound"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\sound\3101L.wav"
SetOutPath "$INSTDIR\SimObjects\Airplanes\Cessna 310R MilViz\texture"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\texture\ballnstuff.dds"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\texture\ballnstuff_spec.dds"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\texture\body01_normal.dds"
SetOutPath "$INSTDIR\SimObjects\Airplanes\Cessna 310R MilViz\texture.blue"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\texture.blue\body01.dds"
SetOutPath "$INSTDIR\SimObjects\Airplanes\Cessna 310R MilViz\texture.gray"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\texture.gray\body01.dds"
SetOutPath "$INSTDIR\SimObjects\Airplanes\Cessna 310R MilViz\texture.N5077J"
SetOutPath "$INSTDIR\SimObjects\Airplanes\Cessna 310R MilViz\texture.red"
File "P:\C310_BuildFolder\SimObjects\Airplanes\Cessna 310R MilViz\texture.red\body01.dds"
SectionEnd
Section -Post
SectionEnd
Last edited: