On Fri, 22 Mar 2019, Sven Schreiber wrote:
not too long ago we had a thread about what happens (on Windows)
when
function packages should be deleted. Now gretl reports an informative
error message (you don't have the permissions to remove it, or sth. like
that).
However, there still is a problem for example when packages have been
retired, so they do not exist on the server anymore. They have been
installed under gretl, but they cannot be locally removed again.
The Inno installer used by gretl_install.exe manages to escalate
permissions (if possible) when installing under "/Program Files".
Anything installed in that way can be removed by running the Inno
uninstall program. So I don't think there's really a "cannot be
removed" condition, in a strong sense.
If a user doesn't have write permission for Program Files (without
escalation) then an updated function package, installed independently
of gretl_install and Inno, will go into the user's filespace where
there shouldn't be a problem with removing it.
This is a bit awkward because if a newer version exists (so the
package
is not retired, but updated on the server) overwriting is possible
without any problem.
So why is overwriting OK permission-wise, but deleting is not?
It's OK to install a newer version of a package into one's personal
filespace. This won't overwrite an older version installed via
gretl_install, but it'll take precedence. If actual overwriting is
possible than deletion would also be possible.
Allin