← Guide home
Part 01 · Windows 11 laptop / PC

Install PostgreSQL

PostgreSQL is the database MagicInfo Server stores everything in. It must be installed and running before you start the MagicInfo installer — the MagicInfo wizard asks for the database password mid-way and cannot continue without it.

Before installing

Two Windows 11 settings first

Do these before anything else — even before downloading. Samsung's official docs require both, and skipping them is the most common cause of a failed install.

Enable the "Secondary Logon" service

Press Win+R, type services.msc, press Enter. Find Secondary Logon, right-click → Properties, set Startup type to Automatic, click Start, then OK.

📷 Screenshot to be captured during first install (services.msc → Secondary Logon)
Open Control Panel → User Accounts

Press Win, type Control Panel, open it, then click User Accounts.

Windows 11 Control Panel with the User Accounts category
Control Panel → User Accounts
Click "Change User Account Control settings"

On the User Accounts page, click the shield-marked link Change User Account Control settings near the bottom of the list.

User Accounts page with the Change User Account Control settings link
The link sits at the bottom of the User Accounts page
Drag the slider to "Never notify", click OK, reboot

Drag the slider all the way to the bottom, click OK, and restart Windows. Restore this setting once both installs are finished.

User Account Control settings slider dragged to Never notify
Slider at "Never notify"
Confirm you are on an administrator account

MagicInfo Server can only be installed from a Windows administrator account, and the PostgreSQL installer must be run elevated (Run as administrator). Log in as an administrator before starting either.

Download

Use PostgreSQL 15.13 (x64)

MagicInfo Server V9 requires PostgreSQL version 15. Samsung's distributor ships exactly 15.13 x64 as the matching build. Don't install a newer major version unless told otherwise.

Download: get postgresql-15.13-3-windows-x64.exe (~351 MB) from the MagicInfo software page at magicinfoservices.com/magicinfo-software — it is hosted right next to the MagicInfo installer so the versions always match. Alternative: the EDB installer from postgresql.org, choosing 15.13 / Windows x86-64.
The Install MagicINFO V9 download list on magicinfoservices.com — item 3 is PostgreSQL 15.13 x64
magicinfoservices.com "Install MagicINFO V9" list — item 3 is the PostgreSQL 15.13 x64 download (source: magicinfoservices.com/magicinfo-software)
PostgreSQL downloads page for Windows
Alternative source: the PostgreSQL download page — choose 15.13, Windows x86-64
The installer

Run the wizard, screen by screen

Right-click the downloaded postgresql-15.13-3-windows-x64.exeRun as administrator. Then follow the screens in order — defaults are correct everywhere except the password.

Welcome — click Next
PostgreSQL setup wizard welcome screen
Setup wizard opens
Installation Directory — keep the default

C:\Program Files\PostgreSQL\15. Non-standard paths are a known cause of the Windows service failing to start.

Installation directory screen with default path
Keep C:\Program Files\PostgreSQL\15
Select Components — untick Stack Builder

Keep PostgreSQL Server, pgAdmin 4 and Command Line Tools ticked. Untick Stack Builder — it only offers add-ons MagicInfo doesn't use, and there's no point installing a component just to decline it later.

Component selection screen — the installer's default state with all four components ticked
The picture shows the defaults — untick Stack Builder before clicking Next
Data Directory — keep the default

C:\Program Files\PostgreSQL\15\data. This folder will hold the entire MagicInfo database — include it in any backup plan.

Data directory screen
Data directory
Password — set it and WRITE IT DOWN

This is the postgres superuser password. The MagicInfo installer asks for it in Part 2, and it cannot be recovered. Write it in the site notes now.

Use a password in this format — long, with capitals, small letters and digits. Symbols are deliberately avoided (see the warning below):

Ruqaqa99MagicInfo

That is an example of the format only — this guide is public, so an example typed verbatim is guessable. Change some characters and make a different one for every install.

Do NOT use these characters in this password: & # ^ % ! " ' < > | ( ) or spaces. The PostgreSQL installer passes the password through Windows command scripts, and these characters break the install with "The database cluster initialisation failed". Letters and digits only. If a stronger password is required, change it after the install succeeds.
Superuser password entry screen
The single most important field of the install
Port — leave 5432

Only change it if 5432 is already taken — and then record the new number next to the password.

Port screen showing default 5432
Default port 5432
Advanced Options — [Default locale]
Locale selection screen
Keep [Default locale]
Summary → Ready to Install — check, then Next

Verify directory, port and components match what you entered.

Pre-installation summary screen
Pre-installation summary
Ready to install confirmation
Ready to install
Wait for the install to finish

Several minutes. Do not interrupt or reboot.

Installation progress bar
Progress
Finish

If a "Launch Stack Builder at exit?" checkbox appears — it only shows when Stack Builder was installed — untick it before clicking Finish. If you unticked Stack Builder earlier, the checkbox won't be there; just click Finish.

Final screen — the Stack Builder checkbox appears only if the component was installed
Finish screen from a run where Stack Builder was installed — hence the checkbox
Troubleshooting

If the install fails

Error near the end of the install: "Problem running post-install step… The database cluster initialisation failed." Causes, in order of likelihood:

Special characters in the password

The most common cause — see the warning at the password step. Characters like & # % ! break the installer's Windows command scripts. Reinstall with a letters-and-digits password.

Secondary Logon service not running

Go back to the prerequisites at the top of this page — start the service, then reinstall.

Antivirus quarantined postgres.exe

Check Windows Security → Protection history. For the retry, temporarily disable real-time protection and Controlled folder access, then re-enable both afterwards.

Arabic / non-Latin Windows region

On systems with a non-Latin region, choose the locale English, United States at the installer's Advanced Options screen instead of [Default locale].

Recovery: uninstall PostgreSQL 15 → delete C:\Program Files\PostgreSQL\ entirely → reinstall with the fix applied. For diagnosis, the installer log is at %TEMP%\install-postgresql.log — search for initdb or initcluster.
Verify

Confirm it's running before Part 2

Check the Windows service

Run services.msc and find postgresql-x64-15: Status Running, Startup type Automatic. Or in PowerShell:

Get-Service -Name "postgresql-x64-15" | Select-Object Name, Status, StartType
📷 Screenshot to be captured during first install (services.msc → postgresql-x64-15 Running)
Connect once with pgAdmin 4
  1. Press the Win key, type pgAdmin 4, press Enter to open it.
  2. In pgAdmin's left sidebar, right-click ServersRegisterServer.
  3. General tab: type any name (e.g. MagicInfo DB) — Save stays disabled until a name is entered.
  4. Connection tab: Host localhost, Port 5432, Maintenance database postgres, Username postgres, and the password you wrote down → Save.
  5. If the server tree expands, the database is healthy.
pgAdmin register server menu
Servers → Register → Server
pgAdmin connection tab with localhost and port 5432
Connection details
pgAdmin showing connected server tree
Connected — ready for Part 2
Done: PostgreSQL 15.13 is running with a password you have written down. Continue to Part 2 — Install MagicInfo Server.