jackfundter
Posts: 12
Joined: Fri Aug 16, 2013 12:30 pm

Detect version

Hello,

I have a simple question how do i detect de major , the minor and the third part of a version separately?.
I need to store these in 3 separate propertys.

Greetings,
Jack
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detect version

Hi Jack,

I'm afraid there is no predefined property that contains the related values. However, you can create a simple custom action which set the related properties accordingly.

For example, you can create your custom action as a custom action written in C# or a custom action written in C++.

Then you can go in the “Custom Actions” page and add a predefined Launch attached file custom action with sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.
You can also take a look on the Options to integrate and debug custom actions article which may be useful to you.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”