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.

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.

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.

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

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

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.

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.

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

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

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

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.

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

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

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

After running the above steps, Now install the MariaDB on your system.
You may also like following the articles below.
- How to uninstall MariaDB
- How to Show Tables in MariaDB
- MariaDB Insert If Not Exists
- MariaDB ERROR 1064
I am Bijay having more than 15 years of experience in the Software Industry. During this time, I have worked on MariaDB and used it in a lot of projects. Most of our readers are from the United States, Canada, United Kingdom, Australia, New Zealand, etc.
Want to learn MariaDB? Check out all the articles and tutorials that I wrote on MariaDB. Also, I am a Microsoft MVP.