We are working on converting the wiki to a static website controlled by markdown files in https://github.com/nsis-community. You can already see there how plug-ins will be posted. The end-user interface will still be a website but with a fresh coat of paint. Come meet us at Discord to talk about it.

How to turn a REBOL script into EXE

From NSIS Wiki
Jump to navigationJump to search
Author: ReViewer (talk, contrib)


Description

This is a sample of how to use NSIS to make a REBOL script executable on windows platform. Provided by DigicamSoft

The Script

; NULLsoft Scriptable Install System
; make a REBOL Script executable
; provided by www.digicamsoft.com
 
; Name of the installer (don't really care here because of silent below)
Name "Namexif"
 
; Don't want a window, just unpack files and execute
SilentInstall silent
 
; Set a name for the resulting executable
OutFile "Namexif.exe"
 
; Set an icon (optional)
Icon "namexif.ico"
 
; The stuff to install
Section ""
  ; Set output path to a temporary directory.
  InitPluginsDir
  SetOutPath $PLUGINSDIR
 
  ; put here requiered files
  File "rebview.exe" ; a REBOL interpreter
  File "Namexif.r"   ; put one or more REBOL script(s)
 
  ; Execute and wait for the REBOL script to end
  ExecWait '"$PLUGINSDIR\rebview.exe" "-s" "$PLUGINSDIR\Namexif.r"'
 
  ; Set working directory to something else
  ; If it's not set, $PLUGINSDIR will not be deleted
  SetOutPath $TEMP
SectionEnd
-)