Hello, I'm trying out advanced installer and it looks great. I've spent some time with it and I have encountered a couple of issues with the SQL scripts.
I have set up the mySQL driver, the connection etc. just fine. I have custom actions to start and stop the mysql server during the installation. (Add Resources->start Finish Execution->stop). Between the two, the SQL scripts are executed.
Issue 1:
The behavior is different between two Windows 7 PCs. On one of them, the installation goes smoothly and the scripts are executed without any errors. On the other, I get a connection error from mySQL: Access denied to 'root'@'localhost' (Using password: NO). This is the message one gets when trying to connect to a running mysql server without providing a password. Both PCs have the exact same mySQL version and the driver is included in the installation package. I re-entered the password three times in advanced installer, just to be sure, but again, it does work on the first PC, just not on the second. I reinstalled mysql on the second PC several times, but it does sound like a mysql client issue. Do you have any idea why that might happen;
Issue 2:
I have configured the SQL script to abort the installation upon failure. At that point, I want to execute the custom action to stop the mysql server. My stop script is configured for 'immediate' execution, so I created another action called stop_rollback, with "Execution Time" "During Installation Rollback". I did not know where to put the action, so I placed it under "Add Resources", beneath the start action. When I get a mysql error and the installation is rolled back, stop_rollback is not executed and the mysql server remains active. What have I done wrong here?
FOLLOW US
Get the latest news in Application Packaging