Commit 58a2f204 authored by Laurent's avatar Laurent

[Add] NSIS scripts to build installer on Windows.

parent 21a2f92f
This diff is collapsed.
!include EnvVarUpdate.nsh
# Name of the installer
Outfile "ALTA.exe"
InstallDir "$DESKTOP\ALTA"
!define ALTADIR "${__FILEDIR__}\..\.."
# Request application privileges for Windows Vista
RequestExecutionLevel user
# Section start
Section
SetOutPath $INSTDIR\bin
File "${ALTADIR}\sources\build\*.exe"
SetOutPath $INSTDIR\lib
File "${ALTADIR}\sources\build\core.lib"
SetOutPath $INSTDIR\plugins
File "${ALTADIR}\sources\build\nonlinear*.dll"
File "${ALTADIR}\sources\build\rational*.dll"
File "${ALTADIR}\sources\build\data*.dll"
SetOutPath $INSTDIR\python
File "${ALTADIR}\sources\build\alta.dll"
# Update the ENVIROMNENT
WriteRegStr HKCU "Environment" "ALTA_DIR" '$INSTDIR'
WriteRegStr HKCU "Environment" "ALTA_LIB" '$INSTDIR\plugins'
${EnvVarUpdate} $0 "PATH" "A" "HKCU" '$INSTDIR\bin'
${EnvVarUpdate} $1 "PYTHONPATH" "A" "HKCU" '$INSTDIR\python'
#End Section
SectionEnd
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment