Memnarch / Delphinus

An alternative Packagemanager for the Delphi-IDE
Mozilla Public License 2.0
235 stars 64 forks source link

Delphinus Websetup cannot install to default system-wide location (due to not having admin rights) #91

Open michaliskambi opened 1 year ago

michaliskambi commented 1 year ago

Running Delphinus Websetup in a "normal way" (i.e. without selecting to "run as admin") and then just clicking "next", it

There are various sensible possible solutions IMHO, the main goal is to make the default installation flow "just work" for users. So

  1. maybe the default installation folder should not be system-wide (something like c:/Users/<my-user>/AppData/Local.../). E.g. InnoSetup has nice defaults for non-system-wide installations, used with success by at least Castle Game Engine and VS Code :)

  2. Or the Delphinus Websetup should detect it doesn't have admin permissions and then change the default installation folder to something not-system-wide .

  3. Or Delphinus Websetup should ask to elevate privileges to admin. Either automatically at start, or when it tries to create a directory and fails due to missing permissions.

P.S. A tiny related UX mistake is that it says "Fehler", which I think is German, instead of English "Error" or something :) As can be seen on the screenshot below. This is on Polish Windows, without German locale, so I guess "Fehler" is just hardcoded in sources.

delphinus_system_install

This is following up a user report ( https://github.com/castle-engine/castle-engine/issues/487 ).