Mole icon indicating copy to clipboard operation
Mole copied to clipboard

[BUG] Allow Script installation on Windows system

Open Shepard33 opened this issue 8 months ago • 2 comments

Describe the bug

For the installation on Windows system you’ll have to allow script installation or the install won’t work.

https://www.windows8facile.fr/powershell-execution-de-scripts-est-desactivee-activer/

A clear and concise description of what the bug is. We suggest using English for better global understanding.

If you believe the issue may allow unsafe deletion, path validation bypass, privilege boundary bypass, or release/install integrity issues, do not file a public bug report. Report it privately using the contact details in SECURITY.md.

Steps to reproduce

  1. Run command: mo ...
  2. ...
  3. See error

Expected behavior

A clear and concise description of what you expected to happen.

Debug logs

Please run the command with --debug flag and paste the output here:

mo <command> --debug
# Example: mo clean --debug
Debug output
Paste the debug output here

Environment

Please run mo update to ensure you are on the latest version, then paste the output of mo --version below:

Paste mo --version output here

Additional context

Add any other context about the problem here, such as screenshots or related issues.

Shepard33 avatar Mar 21 '26 08:03 Shepard33

Opened PR #613 to improve non-macOS installer messaging and docs.

Summary

  • Clarify non-macOS installer messaging in install.sh by including detected platform and explicit unsupported-platform guidance.
  • Update README.md install note to state the script exits early on non-macOS systems.
  • Improve user guidance for issue #612 without changing supported-platform scope.

Safety Review

  • Does this change affect cleanup, uninstall, optimize, installer, remove, analyze delete, update, or install behavior?
    • Yes, install behavior on non-macOS only: message clarity improved, exit behavior unchanged (still exits early).
  • Does this change affect path validation, protected directories, symlink handling, sudo boundaries, or release/install integrity?
    • No changes to those boundaries or checks.
  • If yes, describe the new boundary or risk change clearly.
    • No new boundary introduced; only clearer error output and docs alignment.

Tests

  • Automated:
    • bash -n install.sh
  • Manual:
    • Reviewed installer non-macOS guard path and ensured behavior remains fail-fast with improved messaging.
    • Reviewed README install note for consistency with runtime behavior.

Safety-related changes

  • None.

Fixes #612

Victorola-coder avatar Mar 21 '26 09:03 Victorola-coder

Thanks @Shepard33. I fixed this on the windows branch and pushed it just now. The quick installer now invokes install.ps1 via PowerShell with -ExecutionPolicy Bypass, and the Windows install docs now use the same command pattern. Please pull the latest windows branch and try again. Closing this issue.

tw93 avatar Mar 21 '26 11:03 tw93