Rebuild prefix on wine update?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Post Reply
bno1
Newbie
Newbie
Posts: 2
Joined: Thu Mar 26, 2020 5:33 pm

Rebuild prefix on wine update?

Post by bno1 » Thu Mar 26, 2020 5:38 pm

Hello. I can't find an answer to this question online. If I update my wine version or want to try out a completely different build such as wine-tkg, do I have to rebuild the prefix or run any command on the current prefix to update it? A brand new prefix occupies about 725MB, many of them being dll files. What happens to those files if I try a different wine version on an already existing prefix?

User avatar
dimesio
Moderator
Moderator
Posts: 12777
Joined: Tue Mar 25, 2008 10:30 pm

Re: Rebuild prefix on wine update?

Post by dimesio » Fri Mar 27, 2020 7:25 am

If you change versions, Wine will automatically update the wineprefix the first time you run anything from it.

bno1
Newbie
Newbie
Posts: 2
Joined: Thu Mar 26, 2020 5:33 pm

Re: Rebuild prefix on wine update?

Post by bno1 » Fri Mar 27, 2020 9:07 am

Ok, but what if a system file has been modified? Consider this:

1. I create a brand new wine prefix. Let's say wine creates the dll "C:\Windows\system32\foo.dll".
2. I run a winetricks verb that replaces "foo.dll" with a proprietary version.
3. I update my wine version and run a command on the prefix.

Does wine replace "foo.dll" with the one from the new wine version or does it somehow know that the current "foo.dll" doesn't belong to the previous wine version but was modified by the user so it should be left untouched?
I basically want to know if I should re-run winetricks and other setup steps if I change my wine version.

Post Reply