What's new

Get newest Alibre version using automated script

Hello everyone

My question is very simple, yet I have not been able to find the answer.

How can I find out what the newest installed Alibre version is on my computer?
Obviously, I, the user, know what the newest installed version of my Alibre is. My question is mainly how an automated script could reliably find out what the newest version is?
Is there some kind of registry entry? I looked inside HKEY_LOCAL_MACHINE\SOFTWARE\Alibre, Inc. and found nothing. Should I just read all the versions inside HKEY_LOCAL_MACHINE\SOFTWARE\Alibre, Inc. and calculate which has the biggest number?

This would allow me to create a setup script for my add-on, which usually lives within the path %programfiles%\Alibre Design <VersionNUM>\Program\Addons\CustomAddOn.

I apologize if this is the wrong threat/forum for this specific question.
 

albie0803

Alibre Super User
Have a look at this script which includes checking the version of Alibre.

root = Global.Root
vers = root.Version

print 'The installed AlibreVersion equals '+str(vers)
 

Attachments

  • open_glp_window_forum.txt
    2.5 KB · Views: 5

stepalibre

Alibre Super User
Hello everyone

My question is very simple, yet I have not been able to find the answer.

How can I find out what the newest installed Alibre version is on my computer?
Obviously, I, the user, know what the newest installed version of my Alibre is. My question is mainly how an automated script could reliably find out what the newest version is?
Is there some kind of registry entry? I looked inside HKEY_LOCAL_MACHINE\SOFTWARE\Alibre, Inc. and found nothing. Should I just read all the versions inside HKEY_LOCAL_MACHINE\SOFTWARE\Alibre, Inc. and calculate which has the biggest number?

This would allow me to create a setup script for my add-on, which usually lives within the path %programfiles%\Alibre Design <VersionNUM>\Program\Addons\CustomAddOn.

I apologize if this is the wrong threat/forum for this specific question.
I make a list of paths matching Alibre Design \d+\.\d+\.\d+\.\d+ or only "Alibre Design" with scripts to run unregisterCOMdlls.BAT and registerCOMdlls.BAT when switching versions. You can also use COM to get the active registered version see @albie0803 script. The newest version might not be the active or the version the user want to install the addon if side-by-side installing.
 
Top