osherk
Posts: 41
Joined: Mon Apr 20, 2015 11:55 am

I want to set a property in a dialog to [computername] but only in the first time the user gets this dialog

Hi,

I want to set a property in a dialog to [computername] but only in the first time the user gets this dialog.
Now I use 'set installer property value' in 'Init_events' and the condition is 'AI_INSTALL' but at this case, when I change manually the property value and click on 'Next' and then 'Back' (from the next screen), the value is changed to [computername] again which is not good for me. I want to display the value of [computername] only for the first time.
should I change the condition? to what? or should I do another things?

Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: I want to set a property in a dialog to [computername] but only in the first time the user gets this dialog

Hi,

In order to achieve this, you need to go in the "Custom Actions" page, add a "Set installer property" custom action after the "Wizard Dialogs Stage -> Searches" group and set it to be executed only on "Install", then remove the init event that you already created.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: I want to set a property in a dialog to [computername] but only in the first time the user gets this dialog

You're welcome. I'm glad it works.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”