Start search in the dialog sequence - 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!

Koen
Posts: 21
Joined: Thu May 06, 2010 7:49 am

Start search in the dialog sequence

Hi,

Is it possible to start a "search" from a certain point in the dialog sequence?
If so, how can this be done?

Best regards,
Koen
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Start search in the dialog sequence

Hi,
Is it possible to start a "search" from a certain point in the dialog sequence?
I'm afraid not. Searches are automatically executed during the standard action AppSearch.

It is on our TODO list an improvement to Advanced Installer that will allow you to use such a feature. I'm afraid I cannot give you a timeline for this feature.

For the moment the only option you have is to use an UI Custom Action that will perform the search. You can use either a C++ DLL or a VBScript file.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Koen
Posts: 21
Joined: Thu May 06, 2010 7:49 am

Re: Start search in the dialog sequence

I've created a script that executes the search. The script is triggerd by a "DoAction" in my "Published events" tab of a dialog. Where is the return value of the script stored? So that advanced installer can react accordingly to the search result.

Beste regards,
Koen
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Start search in the dialog sequence

Hi,

I assume you have used VBScript? The best way to get the return value of the script is to place it in a public property. For example in VBScript you can write something like this:

Code: Select all

Session.Property("MY_RETURN_PROP") = myReturnValue
The above script simply sets the property "MY_RETURN_PROP" to the value from the variable "myReturnValue".

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Koen
Posts: 21
Joined: Thu May 06, 2010 7:49 am

Re: Start search in the dialog sequence

Hi,

Yes I'm using a vbs file to execute the search. But I'm having a little trouble interfacing with the script. I've created a custom action as shown in AIScreenshot1. The search needs to be executed after the user selects an install path, as shown in AIScreenshot2. Depending on the result of the script, the installer needs to react differently. AIScreenshot3 shows the "body" of the vbs code that I use. Everytime I create an exe file, execute the installer and get to the point where the vbs file is started, the installer displays a message saying that the installation has ended due to an error. Could some one please tell me what I'm doing wrong?

http://dl.dropbox.com/u/5195061/AIscreenshot1.jpg
http://dl.dropbox.com/u/5195061/AIScreenshot2.jpg
http://dl.dropbox.com/u/5195061/AIScreenshot3.jpg


Best regards,

Koen
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Start search in the dialog sequence

Hi Koen,

I see that you have placed your VBS script into a function. So you have two options:

1) either you remove the function signature and simply let the in the .vbs file body of the function
2) or specify the name of the function in the Function Name field from the "Custom Actions" page

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

Return to “Common Problems”