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!

MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

SQL install error

Hello,

I have an installer that uses two pre-requisites ( see PreReq.png )

In addition, I have a predefined connection setup ( see PreDefCon.png )

In the predefined connection I have a SQL Query ( see Query.png )

I also have a sql script ( see Script.png )
Attachments
the SQL Query
the SQL Query
Query.png (38.58 KiB) Viewed 8636 times
Predefined connection
Predefined connection
PreDefCon.png (34.48 KiB) Viewed 8636 times
Defined Prerequisites
Defined Prerequisites
PreReq.PNG (8.66 KiB) Viewed 8636 times
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: SQL install error

Sorry the post would not allow me add another file.

Here is Script.png
Attachments
SQL script
SQL script
Script.PNG (46.58 KiB) Viewed 8635 times
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: SQL install error

The installation works on a Windows 7 machine, however it fails on a Windows 10 machine.

Here are the error logs from the Windows 10 machine:

Error_1_Log.txt is the first time this failed.

Error_2_Log.txt is the second time this failed (I added "ALTER DATABASE [PMInfrastructure] SET TRUSTWORTHY ON " to the SQL script )
Attachments
Error_2_Log.txt
(399.68 KiB) Downloaded 455 times
Error_1_Log.txt
(400.94 KiB) Downloaded 560 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: SQL install error

Hello,

In both cases it seems there is your "CreateSchema" SQL Script which fails during execution. Can you please remove your "CreateSchema" script from your installation project, rebuild the setup project, install it and after install try to manually execute your "CreateSchema" SQL script under an SQL ODBC connection using a trusted connection (just like the setup package does)? Then see if the manual execution of the SQL script succeeds.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: SQL install error

My question is why does this work for windows 7 and not for windows 10?
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: SQL install error

Both log files that were attached were from the Windows 10 install.

The windows 7 install works fine with the script.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: SQL install error

Hello,

I cannot say why there is a difference between the related system versions. What I try to check is if the behavior is generated by the Advanced Installer or not. This is why I need you to manually execute your "CreateSchema" SQL script under an SQL ODBC connection using a trusted connection (just like the setup package does)?

So, please run a manual test of the related SQL script and make sure everything is working correctly outside of the installation package.

The best way so we can investigate this issue will be if you could isolate the behavior in a small buildable sample (AIP + its referenced resources) and send it us so we can fully build and test ion our side.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: SQL install error

Daniel,

Here is a duplicate of my AIP project with the DB script in it.

This project fails to install on Windows 10.

I have left the prerequisites folder out of the zip, which contains SQL Server Express 2014 SP1. (SQLEXPR_x64_ENU.exe)
You will have to download it once you open the project (saving space here)

Thanks
Mike
Attachments
Tester.zip
small setup project
(336.76 KiB) Downloaded 370 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: SQL install error

Hello Mike,

Please give us some time to run a few tests using your sent sample and we'll get back to you as soon as we have a resolution.

Thank you for your patience.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: SQL install error

Hello Mike,

I've built and tested your sent setup project on a Windows 10 x64 machine with SQL Server Express 2014 SP1 installed and your SQL Query and SQL Script (CreateSchema) ran just fine. The "PMInfrastructure" database and the tables (Computers, E2PValue, etc.) were successfully created during the installation. So, I suspect there a problem specific to your test machine. Please try to also test the setup on another Windows 10 machine.

Also, I highly recommend you to manually test your SQL Scripts outside of the setup package on your problematic machine and see if they succeed or not. If they don't, then you should start troubleshooting the SQL problem on the related machine.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”