Skip to main content
Known Participant
October 24, 2023
Answered

Programmatically retrieving installed InDesign software Build number

  • October 24, 2023
  • 2 replies
  • 1261 views

Hi all,
I'm trying to retrieve InDesign build number in both Windows and Mac environments. I'm using InDesign SDK version 18.
Since I'm doing this in both Mac and Windows environments, is there a method to retrieve the installed InDesign software build number from SDK? (I would prefer SDK method if such available)
For windows; Does registry includes the build numbers and if yes, where?
Or is there any other alternatives apart from SDK or registry, to retrieve the InDesign build number?

Can someone kindly give me a guidance

This topic has been closed for replies.
Correct answer Dirk Becker

For the dynamic value in the running application, there are plenty related methods in IApplication, such as IApplication::GetBuildNumber() .

See BuildNumber.h if you mean at compile time – that would be the build number of the SDK

2 replies

Olivier Beltrami
Brainiac
October 24, 2023

@Kasun_Bamu 

I use the attached code with SDKs 15-16-17-18-19, which gives the following.

InDesign.exe release version 18.4.0.56

And hich matches the Windows Explorer info (see below).

Very best regards,

Olivier

 

 

Dirk BeckerCorrect answer
Brainiac
October 24, 2023

For the dynamic value in the running application, there are plenty related methods in IApplication, such as IApplication::GetBuildNumber() .

See BuildNumber.h if you mean at compile time – that would be the build number of the SDK

Known Participant
October 24, 2023

Hi @Dirk Becker ,

Really appriciate your quick response. I tried this out;  IApplication::GetBuildNumber(). It gives the build number of  the "plugin that I developed using SDK". What I need to access is, Adobe Indesign software (InDesign.exe) build number.
Again thanks for the support. Noted this for the future reference.

Inspiring
October 25, 2023

@Dirk Becker already pointed out in the right direction - IApplication has several methods for getting the version number of the InDesign Application.

 

As per you, it is giving you the build number of the plugin that you developed. - This seems to be wrong or you have made changes with InDesign SDK file itself or overriding the default indesign standard macro #define.

 

Or you are looking for InDesign.exe File Version Number ? - 

 

If you are looking for InDesign.exe file version number then you can google on the APIs and code would be different for both Mac and Windows