![program installer maker program installer maker](https://i.ytimg.com/vi/SAG4E7MonKg/maxresdefault.jpg)
Program installer maker install#
package the node.js installer into the tar data, instead of requiring network access to install node.js.The following console commands are required to run the generated shell script: Node version 0.10.26 or higher is required (a bug was found in 0.10.25) PackageStream.on('error', function(e) ) - error handling as usual with streams Dependencies tempDir - ( Optional) The temporary directory that will be created in the current working directory when the shell script is run.If left undefined, the type will be found by using the location if available, or will default to "file", if there is no location given. type - ( Optional) Either 'file', 'directory', or undefined.For directories, if this is blank, an empty diretory will be created. location - ( Optional) A path that the file or folder contents should come from.body - ( Optional) The file body, which can either be a Readable stream object, a Buffer, or an object with a toString method.name - The filename that will be written into (and subsequently unpacked from) the tar file.An object with the following properties:.If you want behavior that unpacks files into parent directories or absolute paths, instead pass an object with a location as a property. Absolute paths and paths that are in a parent directory of the entrypoint file will be placed at the root of the temporary directory inside the package (so if the entrypoint is also at the root, it could access those files via _dirname+'/' or require('.')). A path to a file or folder on the file system.When the generated shell script is run, the last thing it will do is call node. IMPORTANT: the first element of the list will be used as the entrypoint script. They can be accessed from the script as if the files were in their current relative locations. files - A list of entries representing files the installation script will embed in the generated shell script.Currently the version of node.js is not checked. nodeVersions - An array of acceptable node.js versions, each in the format 'X.XX.XX' (e.g.options - A set of options for how the installer is created.installerJavascriptFile - A handle to the javascript to Can either be an object with a toString method, or it can be a Stream.Var packageStream = makeInstaller(options) - creates an installer shell script MakeInstaller.fs = require("graceful-fs") - set an object that will be used in place of fs inside installer-maker Var makeInstaller = require ( 'installer-maker' ) Run it in a location outside the shared directory node API
Program installer maker windows#
Vagrant note: this installer (like many many other things) won't work in a linux-vagrant shared directory in a windows host environment.
![program installer maker program installer maker](https://www.techddi.com/techddi/images/setup-creatior-order-01.png)
If you want to access the directory that the shell script was run from, it is the parent directory of the directory in which the node script is run in (ie process.directory+"/."). Note: The node install script runs in a temporary directory that is be deleted after the install process.
![program installer maker program installer maker](https://www.qweas.com/downloads/development/install-setup/scr-smart-install-maker.png)
Otherwise you shouldn't have to use sudo unless your installation script itself requires it.
![program installer maker program installer maker](https://images.standaloneinstaller.com/images/setup-install-maker-36937_screenshot.jpg)
currently this has to be a machine that can execute bash scripts.The script can be copied via scp or even simply copy-pasted into a terminal editor and saved.Run the shell script wherever is appropriate with whatever commandline arguments are appropriate. Run the shell script on the target machine - The resulting shell script should be copied to the machine on which you want to run the installation.Run the script builder to generate the shell script.Write the script builder - Any files that the entrypoint script might use (including required modules) must be added to the files list.