Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 2.03 KB

File metadata and controls

66 lines (49 loc) · 2.03 KB

OpenScript

Copyright (C) 2026, Roberto J Dohnert

OpenScript is a lightweight Windows script editor that I created to quickly create and edit script files such as CMD/BAT, PowerShell, and Bash and ksh shell scripts.

What OpenScript Can Do

  • Create, open, edit, and save script/text files.
  • Print script files.
  • Find, replace, and replace all text.
  • Show logical line numbers in a dedicated gutter.
  • Apply syntax highlighting for common script languages.
  • Insert common script commands and variables from the Insert menu.
  • Launch a testing terminal from inside the app.
  • Prompt to save unsaved changes before destructive actions.

Supported Script Types

  • .cmd
  • .bat
  • .ps1
  • .sh
  • .ksh
  • .txt

Installation

Option 1: Install from MSI (recommended)

  1. Build or obtain the installer at installer/OpenScriptInstaller.msi.
  2. Run the MSI as an administrator.
  3. Accept the BSD-3 Clause license in the installer.
  4. Choose installation options:
    • Install location under Program Files.
    • Optional Start Menu shortcut.
  5. Complete setup and launch OpenScript.

Option 2: Build from Source (Visual Studio Build Tools)

  1. Open this folder in VS Code on Windows.
  2. Make sure Visual Studios Build Tools, rc.exe, and the WiX toolset are installed and available.
  3. Build the app using the VS Code task named C/C++: cl.exe build active file.

Build the Installer (WiX)

  1. Ensure OpenScript.exe exists in the project root.
  2. Open a terminal in the installer folder.
  3. Run build-installer.cmd.
  4. The MSI is produced as installer/OpenScriptInstaller.msi.

Project Layout

  • OpenScript.cpp: Main Win32 application source.
  • OpenScript.rc: Windows resource script (embedded app icon).
  • script-icon.ico: Application icon source.
  • openscript.ini: Runtime settings file.
  • installer/OpenScriptInstaller.wxs: WiX installer definition.
  • installer/License.rtf: Installer EULA content.
  • installer/build-installer.cmd: MSI build script.

License

This project is licensed under the BSD 3-Clause License. See license.txt for the full license text.