eandersen
Posts: 12
Joined: Fri Nov 28, 2008 7:24 am

Search for OLAP servers

I have made a vb script that searches for OLAP servers like the "BrowseSqlServers" searches for SQL servers. (I did not find a build function for this). I would like to put up a panel saying what i'm doing like the one in BrowseSqlServers. How do I put up such a panel? I have tried using WScript.Shell, this works fine outside of AI, but don't work inside.
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Search for OLAP servers

Assuming that you have the enterprise edition of Advanced Installer why not simply create a specific dialog to do what you want?

Dom
eandersen
Posts: 12
Joined: Fri Nov 28, 2008 7:24 am

Re: Search for OLAP servers

BrowseSqlServers is being run during the init event of SQLConnectionDlg and I was planning to let my vb script run during the same event. I cannot see a way to start a new dialog within this event.
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Search for OLAP servers

A good point!!

You could of course radically alter the existing dialog to accommodate both sets of results, but I've to confess that that wouldn't be my immediate choice on the grounds that it could easily look a mess and might well confuse inexperienced users.

Back to the drawing board I guess.

Dom
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Search for OLAP servers

Hi,
I would like to put up a panel saying what i'm doing like the one in BrowseSqlServers. How do I put up such a panel? I have tried using WScript.Shell, this works fine outside of AI, but don't work inside.
Please note that the WScript host is already used by Windows Installer, therefore it shouldn't be used in custom actions. I'm not sure I understand what you mean by "panel". Are you referring to an installation dialog? If so, please note that the User Guide contains a tutorial which may help you.

If this is not what you need, can you please give me more details?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eandersen
Posts: 12
Joined: Fri Nov 28, 2008 7:24 am

Re: Search for OLAP servers

By panel I mean a simple dialog that stayes up as long as the vb script is running. A dialog with some text and no buttons - just to tell the user whats going on. Like the one that is displayed when running the build in custom action "BrowseSqlServers"
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Search for OLAP servers

Hi,

I'm afraid that this can be done only from inside the custom action. Unfortunately Windows Installer does not support showing a custom dialog while a custom action runs. In your case, the simplest way would be to use a message box.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eandersen
Posts: 12
Joined: Fri Nov 28, 2008 7:24 am

Re: Search for OLAP servers

I assume that you are referring to MsgBox, this will stop the execution until OK is pressed. Not quite what I was looking for.

Return to “Common Problems”