Detect Wine version

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

Detect Wine version

Post by jkfloris »

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 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Detect Wine version

Post by DarkShadow44 »

Not that I am aware of. But what do you want to achieve?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Detect Wine version

Post by jkfloris »

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 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Detect Wine version

Post by DarkShadow44 »

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 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Detect Wine version

Post by jkfloris »

Thanks! That will do the trick.
Locked