Replies: 3 comments 2 replies
-
I did some research and found NsisMultiUser, an NSIS plugin that allows selecting the installation mode: |
Beta Was this translation helpful? Give feedback.
-
I got it working! Here's how I did it.
Now admin rights are not needed:
I tested the file association for .livemd files and it works.
And the rest is history! I ended up installing Phoenix and ElixirLS and executing the initial Phoenix project. Bottom lineLivebook (and Elixir) can be installed (and used) on Windows without admin rights.
Assuming vc_redist.x64.exe is superfluous, the installation works (as far as I can see). The question is why is vc_redist needed? Because of Windows Forms? |
Beta Was this translation helpful? Give feedback.
-
I reimplemented Livebook without Windows Forms, using native Windows APIs and two awesome libraries: I tested all items in the context menu of the tray icon. They work as expected. Also the error handling with the messagebox works. Livebook now targets .NET 8, which is the latest LTS release and depends on the Universal C Runtime (ucrt) that is part of Windows 10. So now vc_redist.x64.exe is not needed. @wojtekmach I uploaded all the changes to the branch windows-installer-no-admin. Let me know if I should submit a PR. |
Beta Was this translation helpful? Give feedback.
-
The Windows installer requires Admin rights, but AFAIK LiveView is installed in the user's AppData directory. The problem is Admin rights are usually not available in an enterprise environment. Python, Java and .NET can be installed without admin rights (which leads to them being used in enterprises instead of Elixir).
Why can't Elixir be installed without Admin rights? I know Erlang also needs Admin rights, so maybe that's why. But is there a fundamental reason? It would be great to be able to download a .zip file, configure one or two environment variables and use Elixir :)
PS: Chocolatey is not a solution. Yes it can be installed without admin rights, but that requires executing a PowerShell script while circumventing the security policies. That is a no-go in an enterprise environment.
EDIT: I just checked the installer file and learned that admin rights are needed for registering the livebook protocol and also livebook as handler for .livemd files. IMO this can be optional. The Python installer makes it optional to use admin rights.
The Python installer is built using WiXToolset.
Beta Was this translation helpful? Give feedback.
All reactions