Install SQL Server Express as post install script - Advanced Installer Community
SimLoe
Posts: 69
Joined: Thu Mar 12, 2020 11:37 am

Install SQL Server Express as post install script

Hi support team!

I would like my installer to install SQL Express Edition and afterwards launch an installed exe to do some configuration on the database.
I managed to install the sql server after the installation by scheduling a custom action after the "InstallFinalize" Execution stage only when I unselect "Wait for custom action to finish before proceeding".

However, I need to do some configuration on the database after the successful SQL Server installation. So, I added two more custom actions that should be executed after the SQL setup. Then of course, I cannot select "Wait for custom action to finish before proceeding", because my custom actions would run immediately without waiting for the SQL installation to finish and thus fail.

Is there anything I can do in order to achieve the following order:
1. Install my application
2. Install SQL Server Express
3. Perform some custom actions afterwards

I read that you recommend install SQL Server as a feature based prerequisiste, however this is not what I was hoping for, since I would like the user to install my application first.

Best regards,

Simon
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Install SQL Server Express as post install script

Hello Simon,

In this case, I believe you can try to install the SQL Server Express as a post-install prerequisite. Feature-based and post-install prerequisite follow the same logic, the only thing differing being their execution time.

After doing so, you can try to run your custom actions after the "Finish Execution" action --> "Install Execution Stage".

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SimLoe
Posts: 69
Joined: Thu Mar 12, 2020 11:37 am

Re: Install SQL Server Express as post install script

Hello Catalin,

unfortunately, that does not work. I took the sample project that you sent me via email and only moved the feature based prerequisite to the post-install stage:

I get the error that another installation is already in progress.

So what should I do?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Install SQL Server Express as post install script

Hello Simon,

In order for me to further investigate this, could you please let me know which version of SQL Server Express you are trying to install (if you can provide a download link, it would be even better)?
I took the sample project that you sent me via email and only moved the feature based prerequisite to the post-install stage
Unfortunately, I could not find this e-mail (not sure why).

I'd like to download the SQL Server Express setup and do some tests on my end.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”