09 · Installation on Windows

◀ Back to contents

This chapter explains how to install Factuzam on a Windows computer from scratch: the database server, initial database and application. It is intended for the installer/administrator; end users only need 00 · Access and first steps.


Obtaining and testing the demo

Before preparing a complete installation, download the current installer for Factuzam DEMO on 64-bit Windows:

Download Factuzam_DEMO_1.0.15.202606260100.alpha.exe

The package name includes its version and date. Do not reuse the URL for an earlier build; if the download becomes unavailable, confirm the current package with support before installing it.

The demo is supplied as a self-installing NSIS installer. When run on 64-bit Windows, the wizard installs Factuzam DEMO under %PROGRAMFILES%\Factuzam DEMO, installs a local MariaDB for testing on port 3310, creates the demonstration database and adds shortcuts to the desktop and Start menu.

This demo is for testing the application locally. A company's final installation can use the manual procedure in this chapter or a package prepared for that specific installation.


1. Requirements

Component Requirement
Operating systemWindows 10 / Windows 11 (also Windows Server for the computer hosting the database).
DatabaseMariaDB (MySQL-compatible). It can be installed on the same computer or on a local-network server.
ApplicationIn a manual installation, fzam.exe is a self-contained executable. The downloadable demo uses an NSIS installer and includes a local test MariaDB.
NetworkIf there are several workstations, they must all be able to reach the MariaDB server over TCP (port 3306 by default).
Peripherals (POS)An ESC/POS-compatible receipt printer and a USB barcode scanner in keyboard-emulation mode; both are optional outside Caja.

Specific Caja requirements:


2. Installing the MariaDB server

  1. Download MariaDB for Windows from mariadb.org/download and install it on the computer that will act as the server (the same PC for a standalone setup).
  2. During installation:
    • Set the root password and store it securely.
    • Configure the service to start with Windows.
    • Default port: 3306.
  3. If other workstations will connect, open port 3306 in the server's Windows Firewall (for the local network only).

Factuzam uses the utf8mb4 character set with utf8mb4_spanish_ci collation; the database will be created this way in the next step.


3. Creating the initial database

The model database is distributed in factuzam_original.sql (complete schema plus system data: countries, VAT types, windows, initial user and so on).

Option A — from the application itself (recommended):

  1. First create the empty database. From a server console:

``sql CREATE DATABASE factuzam CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci; ``

  1. Start fzam.exe and, in Login, press Configurar Base de Datos ▸ and complete Host, Puerto, Nombre BD (factuzam), Usuario and Contraseña.
  2. Press Subir Script: enter the database password and select an .sql file; choose factuzam_original.sql and wait for loading to finish.
  3. Press Probar Conexión to verify it.

Login with database configuration and Subir Script

Option B — from the command line:

mysql -h localhost -P 3306 -u root -p ^
      -e "CREATE DATABASE factuzam CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci;"
mysql -h localhost -P 3306 -u root -p factuzam < factuzam_original.sql

(Any graphical client can also be used: HeidiSQL, DBeaver and so on.)

Dedicated database user (recommended): avoid using root from workstations; create a dedicated application user:

CREATE USER 'fzam'@'%' IDENTIFIED BY 'una_clave_segura';
GRANT ALL PRIVILEGES ON factuzam.* TO 'fzam'@'%';
FLUSH PRIVILEGES;

4. Installing the application on each workstation

  1. Create a folder, for example C:\Factuzam\, and copy fzam.exe into it.
  2. Create a shortcut on the desktop/Start menu.
  3. Start the application and, in Login, press Configurar Base de Datos ▸; enter:
Field Value
HostMariaDB server IP address or name (localhost in a standalone setup).
Puerto3306 (unless it was changed).
Nombre BDfactuzam.
Usuario / ContraseñaThe database user created in step 3.
  1. Press Probar Conexión — it should respond successfully.

The configuration is saved for each Windows user under %LOCALAPPDATA%\factuzam\ (an .ini file). Each workstation only needs to be configured once.


5. First sign-in

First sign-in


6. Go-live checklist

Configure the following in this order before starting work:

  1. Empresa — tax details, NIF, invoicing series and Verifactu certificate (Archivo ▸ Empresas).
  2. Impuesto IVA and Grupos de IVA — verify the current rates (Otros ▸ Impuesto IVA).
  3. Contadores — initial document numbering by series (Otros ▸ Contadores).
  4. Almacenes and Cajas — at least one warehouse and its till (Archivo ▸ Almacenes).
  5. Formas de pago — documents under Otros ▸ Formas de pago documentos and till under TPV ▸ Formas de Pago Caja.
  6. Tablas auxiliares and catalogue — families, sizes/attributes, price lists and items (Archivo ▸ Tablas Auxiliares; or through migration from the previous software).
  7. Usuarios, grupos y permisos — one user per person, with permissions by group.
  8. Parámetros de Caja — receipt printer and POS behaviour (TPV ▸ Parámetros de Caja).
  9. Copia de seguridad — make an initial backup and establish the routine (Otros ▸ Hacer Copia de Seguridad).

7. Local application files

Each workstation stores its local data under %LOCALAPPDATA%\factuzam\:

Folder / file Contents
fzam.iniWorkstation configuration (connection, remembered user and so on).
log\Application log files (useful for support).
tickets\Receipts generated by the POS.

These files are per Windows user and do not contain business data (which is all held in MariaDB).


8. Updates

Back up the database before updating.


◀ Ayuda menu · Contents · Next ▶ Migration from legacy software