How to show error message at the time of installation - 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!

sagar
Posts: 39
Joined: Tue Dec 13, 2011 2:53 pm

How to show error message at the time of installation

Hi,
I have created installation project for our application. In this installation project I am creating new database by using predefined SQL connection, Also I have added create script of table & store procedure .Now problem is that when I try to install our application installer is running fine until it copy our project to machine but at the time of creating database & executing SQL script if any error occurs installer directly rollback without showing me error message.
e.g. if I am creating database with name of "Test", If that database is already present then installer must show error message that "Test database is already present".At present it is not showing me any message.
Please tell me solution for above problem.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How to show error message at the time of installation

Hello,

Unfortunately the Windows Installer SQL script error policy does not include showing a message.
There are currently three available options which you can set from the SQL script right pane:
- Abort installation ( which you most probably have set in your project )
- Go to the next script of the connection
- Go to the next statement in the script file

If you need to show a message, you can try to do so from within your own custom action.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sagar
Posts: 39
Joined: Tue Dec 13, 2011 2:53 pm

Re: How to show error message at the time of installation

I have attached 2 project Demo.api & Demo2.api. In both project I am executing SQL create table script.In Demo2 project when In Test database If table is present then installer show me error message "Their is already object name tblTableName" but in Demo project I am not getting that error message, Installer will directly rollback so because of this user will not understand why setup get rollback. I want to display that error message.
please tell me solution to display that error message
Attachments
Demo2.aip
In this project I am getting SQL error message. I want to display that error message in Demo project.
(11 KiB) Downloaded 468 times
Demo.aip
Demo project in which i am not getting error message
(37.32 KiB) Downloaded 444 times
sagar
Posts: 39
Joined: Tue Dec 13, 2011 2:53 pm

Re: How to show error message at the time of installation

Do you get solution for my problem?.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to show error message at the time of installation

Hi,

Try checking the Connection and all its scripts are verbose option for your SQL connection. This way if an error is encountered, it will be shown in a message box.

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

Return to “Common Problems”