On Tue, 2019-03-12 at 15:05 -0500, Vincent Povirk wrote:
On Tue, Mar 12, 2019 at 2:24 PM Hans Leidekker hans@codeweavers.com wrote:
Did you consider using the existing msi for the shared scenario? You'd run the installer like this in each prefix (without mono installed):
$ wine msiexec /i wine-mono-4.8.0.msi MONOBASEDIR=z:/home/user/shared_mono/wine-mono-4.8.0
The package would need an extra registry entry that saves MONOBASEDIR, which would then be read by mscoree.get_mono_path().
I've considered and dismissed other solutions where msi is used to manage shared files, it seems very unsafe.
Can you be more specific? Anything that couldn't be fixed by adding code to the installer? If accidental removal concerns you, we could reference count the shared directory so that only the last removal deletes it.