This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Set dialog textbox to a Property value
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2010
12:15 AM
Set dialog textbox to a Property value
I have previously used Installscript MSI projects and am new to Basic MSI so please pardon my ignorance.
How can I set the text of a textbox to a value in a Property?
I have a custom action that is executed before a dialog is loaded. This custom action uses MsiSetProperty to correctly set my [STATUS_TEXT] property. I know it has been correctly set via a sprintfbox display.
The next action is for my dialog to be loaded, however the textbox shows no text. The textbox properties show
Property = STATUS_TEXT
Text = blank - nothing written here
Why does the Textbox text not display my STATUS_TEXT property value?
I know in InstallScript MSI I would simply have called CtrlSetText function.
I have searched this on help but do not understand the help that says
"To call this function in a Basic MSI setup, you must first create a custom action for the entry-point function, execute the custom action in a sequence or as the result of a dialog's control event, and then build the release."
How can I set the text of a textbox to a value in a Property?
I have a custom action that is executed before a dialog is loaded. This custom action uses MsiSetProperty to correctly set my [STATUS_TEXT] property. I know it has been correctly set via a sprintfbox display.
The next action is for my dialog to be loaded, however the textbox shows no text. The textbox properties show
Property = STATUS_TEXT
Text = blank - nothing written here
Why does the Textbox text not display my STATUS_TEXT property value?
I know in InstallScript MSI I would simply have called CtrlSetText function.
I have searched this on help but do not understand the help that says
"To call this function in a Basic MSI setup, you must first create a custom action for the entry-point function, execute the custom action in a sequence or as the result of a dialog's control event, and then build the release."
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2010
04:37 AM
Hi,
Everything seems to be good... :cool:
Are you sure that your "Set Property" customAction is in the sequence, between costInitialize and costFinalize ?
Have you used the wizard to make your "Set Property" customAction ?
Are you sure there is no error in the label of your property ? :rolleyes:
Are you sure your textbox can have enough caracters to display your property value ?
When you say "the textbox shows no text.", you talk about the textbox during the running of the install ?
Sorry for my bad english.
Everything seems to be good... :cool:
Are you sure that your "Set Property" customAction is in the sequence, between costInitialize and costFinalize ?
Have you used the wizard to make your "Set Property" customAction ?
Are you sure there is no error in the label of your property ? :rolleyes:
Are you sure your textbox can have enough caracters to display your property value ?
When you say "the textbox shows no text.", you talk about the textbox during the running of the install ?
Sorry for my bad english.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 29, 2010
05:46 PM
Problem solved. I had not put [STATUS_TEXT] in the text field of the textbox property.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 18, 2011
03:32 AM
How do you do the reverse of this?
I've added a dialog to an installer that prompts for a single string value, which is associated with a property called [MyPropertyName]. I'd like the user to enter a value in this box during the install which will then be used to create a subfolder under the install directory, as well as be the name for an IIS site.
The problem is that both those things are getting called [MyPropertyName] instead of whatever value was entered into the box in my new dialog during the install.
Obviously I'm missing something simple, but can't figure out what and it's driving me mad!
Any help much appreciated.
I've added a dialog to an installer that prompts for a single string value, which is associated with a property called [MyPropertyName]. I'd like the user to enter a value in this box during the install which will then be used to create a subfolder under the install directory, as well as be the name for an IIS site.
The problem is that both those things are getting called [MyPropertyName] instead of whatever value was entered into the box in my new dialog during the install.
Obviously I'm missing something simple, but can't figure out what and it's driving me mad!
Any help much appreciated.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)