Detect Wine version

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Post Reply
jkfloris
Level 6
Level 6
Posts: 704
Joined: Thu Aug 14, 2014 10:10 am

Detect Wine version

Post by jkfloris » Wed Sep 25, 2019 3:41 pm

I use multiple wineprefixes and use the three different Wine versions (stable, devel and staging).
Is it possible to detect which Wine version was used to make the wineprefix?

User avatar
DarkShadow44
Level 7
Level 7
Posts: 943
Joined: Tue Nov 22, 2016 5:39 pm

Re: Detect Wine version

Post by DarkShadow44 » Thu Sep 26, 2019 3:08 pm

Not that I am aware of. But what do you want to achieve?

jkfloris
Level 6
Level 6
Posts: 704
Joined: Thu Aug 14, 2014 10:10 am

Re: Detect Wine version

Post by jkfloris » Thu Sep 26, 2019 4:39 pm

Often users here on the forum have a certain Wine version installed. To help them I install the program in the same Wine version. Unfortunately I sometimes forget which version is used and I get the message: wine: configuration in 'wineprefix' has been updated.
Wine knows which version is used, but I can't find anything about the version in the .reg files.

User avatar
DarkShadow44
Level 7
Level 7
Posts: 943
Joined: Tue Nov 22, 2016 5:39 pm

Re: Detect Wine version

Post by DarkShadow44 » Fri Sep 27, 2019 12:45 pm

jkfloris wrote:
Thu Sep 26, 2019 4:39 pm
Unfortunately I sometimes forget which version is used and I get the message: wine: configuration in 'wineprefix' has been updated.
Wine knows which version is used, but I can't find anything about the version in the .reg files.
AFAIK wine doesn't know the version, it only knows it's different. In each WINEPREFIX there is a file called ".update-timestamp" which contains the "last modified" date from "/usr/share/wine/wine.inf".
That means, each time the wine.inf is updated, the WINEPREFIX is updated as well. But the actual version doesn't seem to be saved anywhere.

jkfloris
Level 6
Level 6
Posts: 704
Joined: Thu Aug 14, 2014 10:10 am

Re: Detect Wine version

Post by jkfloris » Fri Sep 27, 2019 4:07 pm

Thanks! That will do the trick.

Post Reply