Installation like SQL Server - 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!

suhasrs
Posts: 4
Joined: Sun May 22, 2011 4:14 pm

Installation like SQL Server

I need to create an installation package like the one SQL Server installation dialog shows.
In my application there are 4 different installation steps such as running batch files, running SQL scripts, running .msi, etc.

I would like to show each such step on the left side and its progress in the right side of the Dialog UI.
I got the similar dialog theme from the 'Graphite' theme of Advanced installer. But I would like to customize the graphite theme so that the left side shows the 4 steps.
Should I first create separate .msi's for each of the 4 steps and then use the Chained packages ?

I am new to Advanced installer and any help about how to go about it would be helpful.

Thanks.
CiprianComsa
Posts: 110
Joined: Thu Aug 19, 2010 10:11 am
Contact: Website

Re: Installation like SQL Server

Hello and welcome to Advanced Installer Forums.

I'm afraid is not possible to customize theme to show your steps during the installation.
It is not needed to create a msi for each step to be used in Chained Pachages.

You can create only one package and execute all operations:
- to launch a batch file you can use predefined custom actions.
- for running an SQL script you can use a predefined custom action .

Regards,
Ciprian
__________________________________________________________________________________________________________________________________________________
Ciprian Comsa
Advanced Installer Team
http://www.advancedinstaller.com/
Ciprian Comsa - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
suhasrs
Posts: 4
Joined: Sun May 22, 2011 4:14 pm

Re: Installation like SQL Server

Thanks Ciprian for your response.

I am have a problem with SQL Server connection.

I am not able to connect to SQL Server 2008 R2 server. I created a 'Test DB' new pushbutton to test connection to SQL Server. I added SqlConnectionString property and DoAction event for the TestDB button event that executes the 'TestODBCConnection' UI predefined Custom action.

Sample connection string:
Driver={SQL Server Native Client 10.0};Server=[SERVER_PROP];Port=[PORT_PROP];Uid=[USERNAME_PROP];Pwd=[PASSWORD_PROP];

When installing after I click the Test DB button, it says 'Please wait while trying to coonect' and then it times out.

I have not added any DLL, just using the built in ODBC Driver name.

Do I have to add a new ODBC driver with the sqlncli10.dll as the File ? What is the Setup file for this ?

If I do define new ODBC Driver, how do I specify that in the TestDB button's connection string?

Thanks.
CiprianComsa
Posts: 110
Joined: Thu Aug 19, 2010 10:11 am
Contact: Website

Re: Installation like SQL Server

Hi,

Please make sure the public properties SERVER_PROP, PORT_PROP, USERNAME_PROP, PASSWORD_PROP are not empty when are you try to connect.
Sample connection string:
Driver={SQL Server Native Client 10.0};Server=[SERVER_PROP];Port=[PORT_PROP];Uid=[USERNAME_PROP];Pwd=[PASSWORD_PROP];
Make sure the driver is correct, the SQL Server is really listening on that port, the driver is already installed on the target machine (custom launch condition that searches for the sqlncli10.dll) and make sure the user exists on that server and has the password you are inputting during installation.
Please complete our "How to test SQL connection parameters?" step by step tutorial.

Regards,
Ciprian

__________________________________________________________________________________________________________________________________________________
Ciprian Comsa
Advanced Installer Team
http://www.advancedinstaller.com/
Ciprian Comsa - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
suhasrs
Posts: 4
Joined: Sun May 22, 2011 4:14 pm

Re: Connection to SQL Server - SOLVED

Thanks for your response.

I did double check everything you have mentioned but it did not work.

Then after some time I found the solution.

I was connecting to a SQL Server on a remote machine that has a different SQL Server instance name so the Server name is like:
machinename\sqlserverinstancename.
Then I changed Server name to : machinename\sqlserverinstancename,portnumber and changed the ODBC Driver name to just "SQL Server" and it worked like a charm. I was able to connect successfully.

So my conclusion is even though the Port number is specified explicitly in the SQL Connection string it has to specified in the Server name also in the same way it is used in the SQL Server managment studio.
suhasrs
Posts: 4
Joined: Sun May 22, 2011 4:14 pm

Re: Installation like SQL Server

I have one more doubt regarding my previous question. As I said earlier I want to execute 4 different steps during installation. My question : Is there any way to execute these steps in a particular sequence, say first execute .bat script, then execute SQL script, etc. ?
CiprianComsa
Posts: 110
Joined: Thu Aug 19, 2010 10:11 am
Contact: Website

Re: Installation like SQL Server

Hi,
You cannot execute these steps in a particular "sequence".
Standard actions are being executed at predefined moments.
In between them, you can schedule your own custom actions or you can add as "UI Custom action" (These custom actions are used by the Dialog Editor and are executed by control events).

Regards,
Ciprian
__________________________________________________________________________________________________________________________________________________
Ciprian Comsa
Advanced Installer Team
http://www.advancedinstaller.com/
Ciprian Comsa - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”