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

Custom action error

Hello,

The install works on some Windows 2008 R2 servers without a problem and on this Windows 2008 R2 server it fails:

Here is the error:

MSI (c) (B4:1C) [07:43:03:899]: PROPERTY CHANGE: Adding CustomActionData property. Its value is 'Query'.
Action ended 7:43:03: AI_DATA_SETTER_1. Return value 1.
MSI (c) (B4:1C) [07:43:03:899]: Doing action: SqlQueryAction
Action 7:43:03: SqlQueryAction.
Action start 7:43:03: SqlQueryAction.
MSI (c) (B4:9C) [07:43:03:930]: Invoking remote custom action. DLL: C:\Users\ADMINI~1.DOM\AppData\Local\Temp\3\MSI10BE.tmp, Entrypoint: OnSqlFetch
Action ended 7:44:54: SqlQueryAction. Return value 3.
MSI (c) (B4:1C) [07:44:54:710]: Doing action: FatalError
Action 7:44:54: FatalError.
Action start 7:44:54: FatalError.
Action ended 7:44:56: FatalError. Return value 2.
MSI (c) (B4:1C) [07:44:56:863]: Note: 1: 2205 2: 3: Environment
MSI (c) (B4:1C) [07:44:56:863]: Note: 1: 2228 2: 3: Environment 4: SELECT `Environment`,`Component_` FROM `Environment`
MSI (c) (B4:D4) [07:44:56:863]: Destroying RemoteAPI object.
MSI (c) (B4:0C) [07:44:56:863]: Custom Action Manager thread ending.
=== Verbose logging stopped: 8/4/2016 7:44:56 ===
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Custom action error

Here is the "Query" from the AdvancedInstaller

-- Inline SQL script
IF NOT EXISTS (SELECT name FROM master.sys.databases WHERE name = N'PMInfrastructure')
BEGIN
create database PMInfrastructure
END
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Custom action error

any thoughts?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Custom action error

Hello Mike,

Since the installer works on some machines, there might be a problem with establishing the SQL connection and not with the SQL script. Can you please check the parameters of your SQL Connection you added in "SQL Databases" page and make sure they are correct?

If so, please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them. Also, please go to "SQL Databases" page, select your SQL connection and check its "Log errors to file" option, rebuild and test again the setup and send us the "AI_SQLScripts.log" file too.

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

Return to “Building Installers”