• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

NSIS - Open Source Installer Program

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
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:

; 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:
Back
Top