Open federkamm opened 1 year ago
(Image: CC-BY license, The Turing Way Community, & Scriberia. Zenodo. http://doi.org/10.5281/zenodo.3332808) Hi there, and thank you for filing an issue. We're excited to have your input and welcome your idea! :blush:
hi @federkamm, thanks for opening up this issue. Let me tag @christian-monch who has build the Windows installer and might have more insights on what we can do to change this
Another ping to @christian-monch in case the first was missed
We can relatively easily build a windows-installer that just installs datalad-gooey
and all its execution dependencies, i.e. python
and datalad
. This installer would not take care of git
and git-annex
, those tools have to be present on the machine for datalad-gooey
to run properly. That means: git and git-annex would have to be installed by someone with admin-privileges.
A non-admin installation of datalad-gooey on Windows should have the following properties:
The current datalad-gooey
-installer requires admin privileges because of bundled git
- and git-annex
-installers. Therefore a new "gooey-only"-installer, that does not execute a git
- and a git-annex
-installer during the datalad-gooey
-installation process could be successfully executed by a non-admin user. But because datalad-gooey
requires git
and git-annex
, this scenario would require that git
and git-annex
are installed on the system by other means (usually someone with admin privileges has to install them).
A user-local installation is an installation that lives completely in the <UserHome>\AppData\Local
-directory. Writing into the user-local directories does not require admin privileges. The current datalad-gooey
-installer for Windows already installs some components in the user-local directories, i.e. datalad-gooey
, datalad
, and the python
interpreter. But git
and git-annex
are not installed in the user-local directories. If they could also be installed there, the complete installation process can be executed by non-admin users.
The following steps have to be taken to implement Option 2:
git-installer
with the portable-git
-installer. This allows git
to be installed user-local.git-annex
installer does not request admin privileges. This requires a change in the source code of git-annex
, as described here: https://github.com/datalad/git-annex/issues/176. git-annex
can already be installed user-local.git
- and git-annex
-installer to install git
and git-annex
in the user-local directories.The resulting datalad-gooey
-installer would install datalad-gooey
, all its dependencies, and git
and git-annex
in the user-local directories and would not require admin privileges to do so.
####### Pros:
Non-admin installation, known git
and git-annex
versions, no interference with system-wide installed git
or git-annex
components.
####### Cons:
The fixed git
and git-annex
versions might be outdated one have to be kept in a reasonably current "release-window". (BTW: this holds for the current installer as well).
Since option 2 cannot be fully implemented until a git-annex
-installer that does not require admin privileges is available I would propose providing a "gooey-only"-installer in addition to the full datalad-gooey
-installer. That would allow non-admin users to sucessfully install and execute datalad-gooey
on machines on which git
and git-annex
are available.
When https://github.com/datalad/git-annex/issues/176 is resolved, we will build a full datalad-gooey
-installer that will be executable with or without admin-privileges and will install all code into user-local directories.
WDYT?
Since option 2 cannot be fully implemented until a git-annex-installer that does not require admin privileges is available I would propose providing a "gooey-only"-installer in addition to the full datalad-gooey-installer. That would allow non-admin users to sucessfully install and execute datalad-gooey on machines on which git and git-annex are available.
When https://github.com/datalad/git-annex/issues/176 is resolved, we will build a full datalad-gooey-installer that will be executable with or without admin-privileges and will install all code into user-local directories.
WDYT?
Thanks for the detailed write-up. I agree!
Is it a new bug?
I did not find an existing issue about my problem
What is the problem?
I have a domain User account and a local Admin account. I wan't to Install Gooey using the Windows installer for my User account. When I run the installer, it asks me for my Admin account and then it installs Gooey into my Admin account only. As User I can't run it because I don't have access to the C:\Users\admin\AppData\Local\datalad.org folder.
I can probably somehow "hack" it, by messing around with file permissions, but I would prefer a way to install it to my User account right away.
What steps will reproduce the problem?
On Windows:
Additional context
No response
How did you install the App?
pip install datalad-gooey
)brew install datalad-gooey
)conda install -c forge datalad-gooey
)System information
Windows 11