text of several Standard Actions displays very quickly - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

text of several Standard Actions displays very quickly

G'day,

I am using AI v7.6 build 27499

Between the PrepareDlg and the WelcomeDlg there are several Standard Actions which are executed. Of those actions, several (perhaps all?) have associated text which is shown to the user (inside the PrepareDlg) when the action is performed. For example:
- "Searching for related applications"
- "Computing space requirements"

The issue is that these actions are completed very quickly, which causes the associated text in the PrepareDlg to change very rapidly. Our users are confused by this behavior and wonder whether there was important information which they missed.

I realize that this sounds very trivial, but it's a "user experience" issue.

Is there anything that can be done to slow-down the display of the text, or to suppress it from displaying altogether? If the text is worth displaying to the user, then it should be done at a readable speed.

I suppose I might be able to add a Custom Action (e.g. ScriptInline) after each Standard Action, and just do a simple "sleep" in each Custom Action. However, that seems like a hack and I would prefer to avoid using Custom Actions unless absolutely necessary.

Thanks for your help,
-Todd
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: text of several Standard Actions displays very quickly

Hi Todd,

A simple solution is to remove the static text control which shows the text:
- make sure you are using an Enterprise project
- go to "Dialogs" page
- select "PrepareDlg" dialog
- use the top combo box in "Properties" pane to select the "ActionData" control
- delete the control
- rebuild the project

If you cannot use an Enterprise project you can try editing the MSI with Orca to remove the control from PrepareDlg.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: text of several Standard Actions displays very quickly

Thanks Cosmin! Your suggestion worked well, I just have a few remaining questions -

We do have an Enterprise license, so I am able to edit the dialog properties directly from AI. I discovered that I need to change both "ActionText" and "ActionData". Before deleting the controls, I first tried to hide and disable them:

Code: Select all

Visible = False
Enabled = False
I changed those attributes, rebuilt, and tested. The result was much better, but I was still observing a single "flash" or "flicker" of text on the PrepareDlg. It was too fast to read or get a screenshot.

I then tried deleting the controls entirely, as you suggested. I rebuilt and retested, and the result is a much better user-experience; there is no more "rapid-fire" text. Occasionally, I still observe a single flash of text on the PrepareDlg, but it happens rarely and intermittently. Any idea why that might still be happening?

Ultimately, I would prefer to hide and disable the controls instead of deleting them. However, as I said, the results were better after I deleted them. My only concern is how I can easily regain access in the future. If we decide later that we prefer to show the ActionText and ActionData, how can we re-add those controls? I edited the aip file directly (I know this is not advised - it was only for a quick test) and removed the following lines:

Code: Select all

<ATTRIBUTE name="DeletedRows" value="PrepareDlg#ActionData@PrepareDlg#ActionText"/>

Code: Select all

<COMPONENT cid="caphyon.advinst.msicomp.MsiEventMappingComponent">
    <ATTRIBUTE name="DeletedRows" value="PrepareDlg#ActionText#ActionText@PrepareDlg#ActionData#ActionData"/>
</COMPONENT>
That seemed to work fine, but I know editing the aip file is dangerous. Is there a way to achieve this from the AI gui?

Thanks for your help,
-Todd
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: text of several Standard Actions displays very quickly

Hi Todd,
Occasionally, I still observe a single flash of text on the PrepareDlg, but it happens rarely and intermittently. Any idea why that might still be happening?
I'm not sure why this happens. Most likely its shown when the dialogs controls are created.
If we decide later that we prefer to show the ActionText and ActionData, how can we re-add those controls?
You can add empty static text controls and subscribe them to ActionData and ActionText events. Creating another project and checking the original settings may help you.
I edited the aip file directly (I know this is not advised - it was only for a quick test) and removed the following lines:
Removing these lines will restore the original controls. If done carefully (for example no other controls are involved), this should also work without a problem.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”