Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

How to get Process Simulate Current Version?

Valued Contributor
Valued Contributor

Hi,

 

is there any way to get the current version via api? such as 13.1, 14.0.2?

 

thanks for any advice.

 

2018-10-12_083449.png

2 REPLIES

Re: How to get Process Simulate Current Version?

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi,

 

You can simply read the "current version" from registry.

E.g.

reg.png

 

How to read info from registry, you will find a lot of content in the internet.

 

One more thing I did in the past is to get the version of "tune.exe".

string setupPathPs = TxApplication.InstallationDirectory;
var versionInfo = FileVersionInfo.GetVersionInfo(setupPathPs + "\\Tune.exe");
Version actualVersion = new Version(versionInfo.FileVersion);

 

Best regards

Patrick

Re: How to get Process Simulate Current Version?

Valued Contributor
Valued Contributor

Hi, @PatrickUnangst

 

Thanks a lot.

 

another way is to get TxApplication.CurrentUserDirectory, the last folder is the version.