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

**URL:** https://www.finalbuilder.com/forums/t/how-to-read-a-property-with-advanced-installer-edit-action/1517
**Category:** Discussion
**Created:** [June 29, 2010, 10:30am UTC](https://www.finalbuilder.com/forums/t/how-to-read-a-property-with-advanced-installer-edit-action/1517 "2010-06-29T10:30:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![glmdev](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@glmdev](https://www.finalbuilder.com/forums/u/glmdev)
#### Post date: [June 29, 2010, 10:30am UTC](https://www.finalbuilder.com/forums/t/how-to-read-a-property-with-advanced-installer-edit-action/1517/1 "2010-06-29T10:30:05Z")

</div>

Hello Everybody,

I am using the Advanced Installer&nbsp;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,&nbsp;a DOS&nbsp;Window opens and I can see the Version Number. But how can I&nbsp;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&nbsp;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&nbsp;?

Kind regards,

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

&nbsp;

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [June 29, 2010, 11:24am UTC](https://www.finalbuilder.com/forums/t/how-to-read-a-property-with-advanced-installer-edit-action/1517/2 "2010-06-29T11:24:20Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![glmdev](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@glmdev](https://www.finalbuilder.com/forums/u/glmdev)
#### Post date: [June 30, 2010, 10:19am UTC](https://www.finalbuilder.com/forums/t/how-to-read-a-property-with-advanced-installer-edit-action/1517/3 "2010-06-30T10:19:25Z")

</div>

Hello Paul,

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

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

So, I am very happy about this workaround.

Best regards,  
Christof

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![glmdev](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@glmdev](https://www.finalbuilder.com/forums/u/glmdev)
#### Post date: [November 30, 2010, 3:22am UTC](https://www.finalbuilder.com/forums/t/how-to-read-a-property-with-advanced-installer-edit-action/1517/4 "2010-11-30T03:22:47Z")

</div>

Hello everybody,

&nbsp;

I have now updated from Final Builder 6 to Version 7 and now I have a big problem.

&nbsp;

 As I wrote in June&nbsp;I have to read the ProductVersion Property from&nbsp;a Advanced Installer project file. But after the FinalBuilder update, my workaround&nbsp;I found in&nbsp;June&nbsp;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.

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [December 1, 2010, 5:06am UTC](https://www.finalbuilder.com/forums/t/how-to-read-a-property-with-advanced-installer-edit-action/1517/5 "2010-12-01T05:06:24Z")

</div>

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](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

---

<div class="post-metadata">

### Author: ![glmdev](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/g/9fc29f/32.png) [@glmdev](https://www.finalbuilder.com/forums/u/glmdev)
#### Post date: [December 6, 2010, 12:06pm UTC](https://www.finalbuilder.com/forums/t/how-to-read-a-property-with-advanced-installer-edit-action/1517/6 "2010-12-06T12:06:15Z")

</div>

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
