Jaradat
Posts: 29
Joined: Sun Feb 23, 2014 1:25 pm

Set property from edit box

I need from user to enter the SQL instance name in edit box , then i transfer this instance name to a property to use it later along the installation process

SO:
I define 2 property name:
Name: MY_EDIT Name: SQL_NAME
Value: sqlexpress_2 Value: sqlexpress_2

then :
I create custom dialog having edit box with the definition:

Name: edit_1
Property Name: MY_EDIT
Default value: sqlexpress_2

then:
Select NEXT button of the created dialog and go to Puplishid Events, then add new :
* Execute custom action :
Argument : UpdateMsiEditControls
Condition: embty
* Set installer property value :
Property: [MY_EDIT]
Argument: [SQL_NAME]
condition: empty

* Execute custom action:
UpdateFeatureInstallstates


Now , if user enter ( e.g: sqlexpress_55) does that mean the property [SQL_NAME] after click NEXT button = sqlexpress_55 or still unchanged because i didn't configure above correctly?
after i test it the property [SQL_NAME] still unchanged.


please i need a help in this ASAP.

Thank u
Attachments
temp.png
temp.png (106.29 KiB) Viewed 3123 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Set property from edit box

Hello,

Please note that the MY_EDIT property which has been assigned to the edit box control, contains the value entered by the used. You need to set the SQL_NAME property with the value of the MY_EDIT property.

So, the Set installer property value - SetProperty published event can be configured as follow:
  • Name In this field you must specify the name of the property which value is going to be modified. In your case: SQL_NAME
  • Argument the final value of the property. In your case you can add [MY_EDIT]
You can also take a look on the How do I set a property when a button is pushed? 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 “Common Problems”