{"repo":"nickrod518/Create-EXEFromPS1","free":true,"listed":false,"github":"https://github.com/nickrod518/Create-EXEFromPS1","clone":"git clone https://github.com/nickrod518/Create-EXEFromPS1.git","description":"Takes one PowerShell script and any number of supplementary files or even a directory and creates an exe using Windows's built in iexpress program. The exe will run on any machine with PowerShell 2.0+.","language":"PowerShell","stars":97,"topics":["ps1","powershell-script","powershell","script","converter"],"license":null,"category":"cli-tools","readme_excerpt":"Create-EXEFromPS1 Takes one PowerShell script and any number of supplementary files or even a directory and creates an exe using Windows's built in iexpress program. The exe will run on any machine with PowerShell 2.0+. Portable Script If you don't want to mess with the module, you can simply use the Create-EXEFrom.ps1 script. For details on advanced parameters, reference below. Module Copy the repo into your modules directory (C:\\Users\\ \\Documents\\WindowsPowerShell\\Modules\\) and then you will be able to import by typing Import-Module Create-EXEFromPS1 in PowerShell. If you wish for the module to be automatically imported you can enter Add-Content $profile 'Import-Module Create-EXEFromPS1' in PowerShell. The command can be run with New-EXEFromPS1. Running To simply turn one ps1 into an exe, run with no parameters and you will be prompted to select the file from a file browser. For details on advanced parameters, reference below. By default, if your scripts reference relative paths or you use $PSScriptRoot, the temporary directory that the exe's contents were extracted to will be used. To use the directory that the exe is run from, use $(Split-Path -Parent $args[0]) . Parameters PSScriptPath - Path string to PowerShell script that you want to use as the first thing iexpress calls when the exe is run. If blank, you will be prompted with a file browse dialog where you can select a file. SupplementalFilePaths - Array of comma separated supplemental file paths that you want to inc","default_branch":null,"files":null,"tree":[],"storefront":"/r/nickrod518","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nickrod518/Create-EXEFromPS1/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}