an example of how to use NSIS to make a newLISP script executable on Windows (inspired by http://nsis.sourceforge.net/How_to_turn ... t_into_EXE)
Code: Select all
; NULLsoft Scriptable Install System
; make a newLISP Script executable
; Name of the installer (don't really care here because of silent below)
Name "Demo"
; Don't want a window, just unpack files and execute
SilentInstall silent
; Set a name for the resulting executable
OutFile "tcltk-app.exe"
; Set an icon (optional)
Icon "C:\Program Files\newlisp\newlisp.ico"
; The installation directory
InstallDir "$TEMP\temp_NSIS"
; The stuff to install
Section ""
; Set output path to the installation directory.
SetOutPath $INSTDIR
; put here requiered files
File "C:\Program Files\newlisp\newlisp-tk.exe" ; newLISP-tk interpreter
File "C:\Program Files\newlisp\tcltk-app.lsp" ; put the newLISP script
; Execute and wait for the newLISP script to end
ExecWait '"$INSTDIR\newlisp-tk.exe" "-s" "tcltk-app.lsp"'
; Delete unpacked files from hard drive
RMDir /r $INSTDIR
SectionEnd
EXE size = 1.35 Mo (less than the only newLISP-tk.exe)
Can we do that in another way (maybe with "Innosetup" or other for instance) ?