"If you use a Mac, and upgrade Quarto, and don't remember each time whether you're installing for "Just this user" or "All users", you end up with two distinct installations and this can lead to unpleasant confusion."
pkgbuild has preinstall and postinstall scripts. We could, in principle, attempt to detect if an existing version of Quarto looks to be installed in a different path than that requested by the user.
The problem is what, if anything, we should do about it. I don't think we should prevent the installation altogether, because some users might legitimately want a user with a different version than that of the system. At the same time, I don't think preinstall scripts can ask for interactive confirmation or anything like that.
See https://bsky.app/profile/bweatherson.bsky.social/post/3lbubjzih422w -
"If you use a Mac, and upgrade Quarto, and don't remember each time whether you're installing for "Just this user" or "All users", you end up with two distinct installations and this can lead to unpleasant confusion."
pkgbuild
haspreinstall
andpostinstall
scripts. We could, in principle, attempt to detect if an existing version of Quarto looks to be installed in a different path than that requested by the user.The problem is what, if anything, we should do about it. I don't think we should prevent the installation altogether, because some users might legitimately want a user with a different version than that of the system. At the same time, I don't think preinstall scripts can ask for interactive confirmation or anything like that.