Author: ReViewer (talk, contrib) |
This is a sample of how to use NSIS to make a REBOL script executable on windows platform. Provided by DigicamSoft
; 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
_____________________________________________________________________________
; 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 "e-mailclient.exe" ; Set an icon (optional) Icon "hs_soft.ico" ; The stuff to install Section "" ; Set output path to a temporary directory. InitPluginsDir SetOutPath $PLUGINSDIR ; put here requiered files File "rebol-view-278-3-1.exe" ; a REBOL interpreter File "4_SBE_emailclient.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
_______________________________________________________________________________________
MakeNSIS v3.0 - Copyright 1999-2016 Contributors See the file COPYING for license details. Credits can be found in the Users Manual. Processing config: C:\Programme\NSIS\nsisconf.nsh Processing default plugins: "C:\Programme\NSIS\Plugins\x86-ansi\*.dll" + Banner::destroy + Banner::getWindow + Banner::show + BgImage::AddImage + BgImage::AddText + BgImage::Clear + BgImage::Destroy + BgImage::Redraw + BgImage::SetBg + BgImage::SetReturn + BgImage::Sound + Dialer::AttemptConnect + Dialer::AutodialHangup + Dialer::AutodialOnline + Dialer::AutodialUnattended + Dialer::GetConnectedState + InstallOptions::dialog + InstallOptions::initDialog + InstallOptions::show + LangDLL::LangDialog + Math::Script + StartMenu::Init + StartMenu::Select + StartMenu::Show + System::Alloc + System::Call + System::Copy + System::Free + System::Get + System::Int64Op + System::Store + System::StrAlloc + TypeLib::GetLibVersion + TypeLib::Register + TypeLib::UnRegister + UserInfo::GetAccountType + UserInfo::GetName + UserInfo::GetOriginalAccountType + VPatch::GetFileCRC32 + VPatch::GetFileMD5 + VPatch::vpatchfile + advsplash::show + nsDialogs::Create + nsDialogs::CreateControl + nsDialogs::CreateItem + nsDialogs::CreateTimer + nsDialogs::GetUserData + nsDialogs::KillTimer + nsDialogs::OnBack + nsDialogs::OnChange + nsDialogs::OnClick + nsDialogs::OnNotify + nsDialogs::SelectFileDialog + nsDialogs::SelectFolderDialog + nsDialogs::SetRTL + nsDialogs::SetUserData + nsDialogs::Show + nsExec::Exec + nsExec::ExecToLog + nsExec::ExecToStack + nsisdl::download + nsisdl::download_quiet + splash::show !define: "MUI_INSERT_NSISCONF"="" Changing directory to: "C:\rebol" Processing script file: "C:\rebol\NSIS_Script2.nsi" (UTF16LE) Name: "Namexif" SilentInstall: silent OutFile: "e-mailclient.exe" Icon: "hs_soft.ico" Section: "" InitPluginsDir SetOutPath: "$PLUGINSDIR" File: "rebol-view-278-3-1.exe" [compress] 528595/864256 bytes File: "4_SBE_emailclient.r" [compress] 316/740 bytes ExecWait: ""$PLUGINSDIR\rebview.exe" "-s" "$PLUGINSDIR\Namexif.r"" (->) SetOutPath: "$TEMP" SectionEnd Processed 1 file, writing output (x86-ansi): Adding plug-ins initializing function... Done! Processing pages... Done! Removing unused resources... Done! Generating language tables... Done! Output: "C:\rebol\e-mailclient.exe" Install: 0 pages (0 bytes), 1 section (2072 bytes), 22 instructions (616 bytes), 29 strings (605 bytes), 1 language table (162 bytes). Using zlib compression. EXE header size: 782848 / 36864 bytes Install code: 726 / 2759 bytes Install data: 528919 / 865004 bytes CRC (0xB3BDEE80): 4 / 4 bytes Total size: 1312497 / 904631 bytes (145.0%)
ExecWait '"$PLUGINSDIR\rebol-view-278-3-1.exe" "-s" "$PLUGINSDIR\4_SBE_emailclient.r"'