How to read a Property with "Advanced Installer Edit" action?

Hello Everybody,

I am using the Advanced Installer and I want to read the Version information used in the setup project.

I try to use the Final Builder action "Advanced Installer Edit" with the command "/GetProperty" and the command argument "Product Version".

If I run this action, a DOS Window opens and I can see the Version Number. But how can I store this Value into a Final Builder variable? Neither the Output Monitor nor the action Log output shows me this information. I only see it on the Screen!

As workaround I use the Final Builder action "Execute Program" with following settings:
Program file : C:\Programme\Caphyon\Advanced Installer 7.7\bin\x86\AdvancedInstaller.com
Parameters : /edit "%AIP_File%" /GetProperty ProductVersion

In this action I can use the Output Monitor to read the Version Info without any problems!

My problem with this workaround is, that I have to change the program path every time the Advanced Installer is updated. So I have to change the option settings of FinalBuilder and(!) every Project wich use this action.

Is there a posiibility to use the Advanced Installer Path from then Final Builder Option settings as variable in the program file parameter of the "execute program" action ?

Kind regards,

Christof Konstantinopoulos,
Developer of GLM Lasermeßtechnik GmbH, Germany

 

Hi Christof,

You can use the following script in the BeforeAction event to get the Advanced Installer’s executable location:

[code]var optionsObj = GetOptionsObject(“Advanced Installer”);Action.ProgramName = optionsObj.Properties[“AdvancedInstallerLocation”] ;[/code]

Regards,
Paul.

Hello Paul,

thank you for this small java script. It works and my problem is solved!

Nevertheless I think the "Advanced Installer Edit" action has a bug. Normally I would expect, that I can solve this issue without a special script, because I can see the version number as mentioned in my first question! But the Output Monitor didn't work.

So, I am very happy about this workaround.

Best regards,
Christof

 

 

 

Hello everybody,
 
I have now updated from Final Builder 6 to Version 7 and now I have a big problem.
 
As I wrote in June I have to read the ProductVersion Property from a Advanced Installer project file. But after the FinalBuilder update, my workaround I found in June is not working anymore. So I have to ask for help again. P.S.: After receiving this information I increase the Version and write it back with the "Advanced Installer Edit" "/SetVersion" command. Writing this Information is not a problem.

Hi Christof

I have fixed the Advanced Installer Edit action so that FinalBuilder is able to capture the output from the command (I also made a change to prevent the console window being displayed), not sure why this wasn’t done before. The fix for this is in the following build:
https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_889.exe

Could you please try using this action now rather than the Execute Program action.

Regards,
Steve

Hello Stephen,
sorry for the delay, but I was on a business trip for the last 5 days.

Your fix was succesfully! I can read the product version with the “Advanced Installer Edit” command now.

Many thanks for this fast support!

Kind regards,
Christof