Sharing or distributing a prefix to desktop users

Questions about Wine on Linux
Locked
YvanM
Newbie
Newbie
Posts: 1
Joined: Wed Feb 07, 2018 3:21 pm

Sharing or distributing a prefix to desktop users

Post by YvanM »

Hi,
I understand that Wine has not been designed to share prefix, but I need to install a Windows software for many users on a desktop.

I found the following workarounds :
- Users use sudo to run the software (see http://ubuntuforums.org/showthread.php?t=917422)
- Copying a "template" prefix to each user's home directory (see posts from fcmartins in viewtopic.php?f=2&t=7282&hilit=multiple+users), possibly with drive mapping
- Registry sharing and drive mapping (as written in the user guide https://wiki.winehq.org/Wine_User%27s_G ... ation_Tips)

1. I would like to go with something like the second and third solution, but I admit I do not understand how I shoud do that. Could someone give a detailed example (example given by fcmartins does not explain drive mapping)?

I tried copying a prefix with installed software inside to another user: Wine does not seem to adapt user.reg for the new user, and does not create C:\users\new_username\. So I ended up for now with a script that:
- copy the template prefix to the user homedir
- renames C:\users\template_username\ in C:\users\new_username\
- modify symlinks to point to new username (eg C:\users\new_username\My documents -> /home/new_username/Documents)
- replace username in registry files

2. Could you share your thoughts about this workaround?

Thanks!
Locked