Customizing status - 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!

Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Customizing status

Using AI 7.7:
When I create a custom action, and that custom action is say at "InstallExecuteSequence"->"StartServices" and I want to start my own Service, then the status remains blank... if I use the AdvancedInstaller Services, and services are starting and it takes time: you can see the status say that it's starting services, but if I add a custom action that also starts services, then the status is blank. like this:

Code: Select all

please wait while the setup wizard installs <my program>. This may take several minutes.
status: <blank>
and this is true for _ANY_ custom action that I create anywhere in the "InstallExecuteSequence" (or UI sequence).
I would like to add to my custom action (which might take a while == more then 5-10 seconds) a status: so that the User will know what's happening.
So if I have a service that I'm starting (or stopping or something else) and it takes time, then when I run my custom action is will look like:

Code: Select all

please wait while the setup wizard installs <my program>. This may take several minutes.
status: starting Encoder Service ...
"starting Encoder Service ..." - was my custom status.
How can I do this, or should this be added to the TODO list?
Dashut.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Customizing status

Hi,

Here is a forum post in which one of my colleagues explains how you can accomplish this. The forum post also contains some samples that you can use as a guide.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Re: Customizing status

Bogdan:
Yes, that post shows how to do it, and I've tested it and it works, however, I don't use VB Script. I "hide" my custom actions with "aicustact.dll" -> "CreateExeProcess" as advised by http://www.advancedinstaller.com/user-g ... indow.html.
So how can I update the "status" without using VBScript?

Many thanks, Dashut.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Customizing status

Hi,
So how can I update the "status" without using VBScript?
I'm afraid we don't have any other examples available at the present moment.

However, from what I know you can also hide the CMD window and using a VBScript (a small search over the web should give you a couple of options). This will also allow you yo to use the example from the forum
to setting the desired action data text.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”