Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Easy-installer on Windows doesn't handle usernames with spaces correctly

Summary

The easy-installer on Windows doesn't work when the username contains spaces.

The problem

Steps to reproduce

  • Your windows user is called "A & B" for example

What is the current behavior?

  • the installer cannot unpack the install zip (at least for FP3)
  • installation then cannot proceed

This is the first problematic line

C:\Program Files\easy-installer>set ARCHIVE_PATH=C:\Users\A & B\AppData\Local\easy-installer\sources\IMG-e-latest-FP3.zip

The system cannot find the path specified.

What is the expected correct behavior?

  • installation should work for usernames containing spaces

Solutions

Workaround

Create an additional windows user with admin rights and choose a name without spaces, e.g. "easyinstaller". Use the new user for installation (you can delete it afterwards).

Possible fixes

The Windows scripts that are called internally should use double quotes when setting variables that are paths.

For example

set ARCHIVE_PATH="%~1"
set FASTBOOT_FOLDER_PATH="%~2"

Maybe it also affects the linux scripts. Solution would be the same: use double quotes around variables containing paths.