Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions doscript-installer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# DoScript Installer for PortablePython

This folder provides an optional one-click Windows installer for PortablePython using DoScript.

## What it does
- Downloads the PortablePython zip from GitHub
- Extracts it to the folder you choose (default shown in prompt)
- Optionally adds the extracted folder to the user PATH
- Cleans up the downloaded zip

This is an **optional helper script** β€” it does not modify the repository code.

## How to run
1. Install DoScript (or ensure the `doscript` runner is available).
2. Open a terminal in this folder.
3. Run: do install.do

(or `doscript install.do` depending on your runner)

## Notes
- The script targets Windows paths (e.g. `C:\PortablePython`). Adjust paths if you prefer another location.
- Adding to system PATH requires administrator rights; the script adds to the user PATH by default.
- If the archive layout changes upstream, the script still extracts the zip but may not find `python.exe` at the expected path. In that case, check the extracted folder manually.

## License & attribution
This helper is provided as-is to simplify setup for beginners. Remove or modify as desired.
32 changes: 32 additions & 0 deletions doscript-installer/install.do
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Generated by DoScript Visual IDE
# PortablePython Installer

# Script Start
say "=== PortablePython Installer ==="

global_variable = confirm

ask confirm "Would you like to install PortablePython? (y/n)"

if confirm == "y"
say "Installing..."

# Create install folder
make folder "C:/PortablePython"

# Download archive
download "https://github.com/oskaritimperi/portablepython/archive/refs/heads/master.zip" to "C:/PortablePython/portablepython.zip"

# Extract files
unzip "C:/PortablePython/portablepython.zip" to "C:/PortablePython"

# Optional: add python to PATH
path add "C:/PortablePython/portablepython-master"

# Remove zip after extraction
delete "C:/PortablePython/portablepython.zip"

say "Installation complete!"
end_if

pause