Setup Wizard Ended Prematurely

Recently, I encountered a setup wizard that ended prematurely because of an error in Windows 11 while trying to install MariaDB on my computer. I will walk you through the steps I followed to fix this error.

Setup Wizard Ended Prematurely

Let us illustrate two simple methods to resolve this error.

First method

This problem occurs in the system while installing the MariaDB application because some libraries don’t exist in the system that MariaDB uses. So before installing MariaDB, make sure that the Microsoft Visual C++ 2015-2019 Redistributable existing in your system.

1. If not, install the setup file from Microsoft’s official website before installing MariaDB.

MariaDB Installation error setup wizard ended prematurely example

2. Go to the installed apps section of your Windows system and check whether the above application is installed, as shown in the below images.

how to fix setup wizard ended prematurely

Now follow the below steps to install the MariaDB.

3. First, double-click on the MariaDB setup to begin the installation, and as a window appears for installation, click on Next button.

setup wizard ended prematurely because of an error windows 10

4. Accept the End-User License Agreement by checking the marked box and clicking on Next button.

setup wizard ended prematurely because of an error windows 11

5. Leave everything as default and click on Next button.

setup wizard ended prematurely error

6. Now, as a window appears for User setting, then enter the new password for the user in the box in front of the field New root password.

7. And again, enter the same password to confirm that password in front of the field Confirm. Click on Next button to proceed with the installation.

setup wizard ended prematurely MariaDB

8. A window Database setting appears to set the service name and port. Make changes according to your need; otherwise, leave it as default and click on the Next button.

MariaDB Installation error setup wizard ended prematurely fifth step

9. Click on the Install button to install the MariaDB in the picture below.

MariaDB Installation error setup wizard ended prematurely sixth step

10. Click on Finish the button to complete the installation.

MariaDB Installation error setup wizard ended prematurely seventh step

Second method

If the above steps don’t work, then follow these steps.

1. Press Windows key + R Type the below command in that box and hit Enter.

services.msc
MariaDB Installation error setup wizard ended prematurely second method

2. Then Service a window appears that contains all the running services on your system, then scroll down and search for the service name Windows Installer and click on Start button to start this service.

MariaDB Installation error setup wizard ended prematurely second method first step

3. After starting the service Windows Installer, open the command-line as an administrator by clicking on Run as administrator.

MariaDB Installation error setup wizard ended prematurely second method cmd

4. As the command line opens, type the below commands one by one and hit the Enter button from your keyboard.

msiexec /unreg
msiexec /regserver
MariaDB Installation error setup wizard ended prematurely second method third step

5. After running the above command in the command line, restart your computer. Then again, open the command line as an administrator by clicking on Run as administrator. Type the below command.

regsvr32 vbscript.dll
MariaDB Installation error setup wizard ended prematurely second method fourth step

After running the above steps, Now install the MariaDB on your system.

You may also like following the articles below.

Top 200 SQL Server Interview Questions and Answers

Free PDF On Top 200 SQL Server Interview Questions And Answers

Download A 40 pages PDF And Learn Now.