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
- :
- Re: Text area not displaying property on SetupCompleteError screen
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
‎Jul 20, 2009
04:21 PM
Text area not displaying property on SetupCompleteError screen
I'm trying to display error messages that are being inserted into properties by C# custom actions (I'm using the DTF). I've made a property named INSTALLFAILMESSAGE and set it to 'Test message' in the property manager.
I've created a text area on the SetupCompleteError screen and pointed the Property at INSTALLFAILMESSAGE and set the text to [INSTALLFAILMESSAGE]. As my code runs, this property is reset - here's the snippet from the MSI log:
MSI (s) (4C!14) [06:46:28:501]: PROPERTY CHANGE: Modifying INSTALLFAILMESSAGE property. Its current value is 'Test message'. Its new value: 'Error creating the database.'.
The function then returns a failure, and the MSI property dump at the end of the MSI log shows:
Property(S): INSTALLFAILMESSAGE = Error creating the database.
However, all that is shown is Test message, or whatever I set the property to initially.
I'm not sure what I'm doing wrong here... any ideas?
I've created a text area on the SetupCompleteError screen and pointed the Property at INSTALLFAILMESSAGE and set the text to [INSTALLFAILMESSAGE]. As my code runs, this property is reset - here's the snippet from the MSI log:
MSI (s) (4C!14) [06:46:28:501]: PROPERTY CHANGE: Modifying INSTALLFAILMESSAGE property. Its current value is 'Test message'. Its new value: 'Error creating the database.'.
The function then returns a failure, and the MSI property dump at the end of the MSI log shows:
Property(S): INSTALLFAILMESSAGE = Error creating the database.
However, all that is shown is Test message, or whatever I set the property to initially.
I'm not sure what I'm doing wrong here... any ideas?
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 20, 2009
04:35 PM
If this dialog is already visible when the property is changed, the only changes that will affect its text are set-property control events. So either involve one of those somehow, or make sure to show the dialog after the property is changed.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 20, 2009
04:47 PM
MichaelU wrote:
If this dialog is already visible when the property is changed, the only changes that will affect its text are set-property control events. So either involve one of those somehow, or make sure to show the dialog after the property is changed.
I don't think it's that - according to the log timestamps, the property was modified at 07:12:03:001 and the SetupCompleteError action isn't executed until 07:12:03:422. I think the problem is that I'm setting the property in the Execute sequence, but I'm trying to access it in the UI sequence. I'm assuming to work around this I need to fire off a custom action before the SetupCompleteError dialog appears that will reset the property. Now if I can just figure out where that would be...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 20, 2009
05:06 PM
Right, properties don't flow back uphill from the Execute sequence to the UI sequence. Perhaps after ExecuteAction, if possible?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 20, 2009
05:14 PM
RobertDickau wrote:I tried that, but the VBScript test action I made to set the property doesn't fire off if I have it after the ExecuteAction. It's looking like what I want to do just may not be possible.
Right, properties don't flow back uphill from the Execute sequence to the UI sequence. Perhaps after ExecuteAction, if possible?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 20, 2009
05:35 PM
The action doesn't run at all? Does the log file say anything about it?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 20, 2009
05:36 PM
RobertDickau wrote:Nothing in the log. It just doesn't execute.
The action doesn't run at all? Does the log file say anything about it?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 20, 2009
05:41 PM
Hmmm, as a test, an immediate VBScript action with just MsgBox("Hi") in it, scheduled after ExecuteAction, seems to work. Does something like that show up in your project?