PlatformIO portable - howto do it?

I’m desesperatly searching a way to make a fully portable installation of platformIO on windows 10 environment.
Idealy also with a python portable installation.
The goal is to allow using PlatformIO on shared computers in a restricted network (school).
I found some usefull link but still not fully working.

  • VSCode portable installation is fully documented - no problem (installing the zip and create a data directory)
  • I ve seen usage of environment variable which seem works fine but not fully, trying to check and update environment at startup How can I instruct platformio to install packages like frameworks, etc., to a specific folder other than C:\Users? - #2 by ivankravets
  • is changing PLATFORMIO_CORE_DIR enough to do all ?
  • I ve also seen that platformIO download a portable version of python but need a python installed to run, should it be possible to put the portable python resident so that platformio dont need other python installed to start ? if not is there a way to install a portable python which could be used to launch platformIO (and variable to tell platformio where to search python)
    Thank you in advance for answers or advices…
    Remi
1 Like

Hi Remi,
Did you manage to go further in your attempt to get a fully portable installation of PlatformIO. I’m also working on setting up such an installation in a context where the Windows sessions of student users are wiped after each log out!

Also, did you try the PLATFORMIO_CORE_DIR environment variable or the core_dir option within the platformio.ini project configuration file?

Hi Pierre,

I ask some help to ChatGPT, usefull but need to do change, still testing but look working.

I got it working portable with a proxy in school (but with administrator rights), but when you port the directory, it need to reinstall his python portable one time.

I can send you a script as basic (how to do this in this forum).

I use platformio_core and platformio_projects environment variables. you need to install portable python with embed and get-pip, vscode with zip adding data directory to make it portable.

Rémi

1 Like