Installer exit codes
Last updated · July 25, 2026
The NetSecWall installer is an Inno Setup package. This page documents every exit code it can return, for unattended deployment via the Microsoft Store, MDM, or a scripted rollout.
Silent installation
The installer supports fully unattended installation and upgrade. It requires administrator rights.
| Install | NetSecWall-1.1.0-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /RESTARTEXITCODE=3010 |
|---|---|
| Upgrade | Identical command. An existing install is upgraded in place, keeping the license, local database, rules, and settings. No prompt is shown in silent mode. |
| Uninstall | "%ProgramFiles%\NetSecWall\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART |
/RESTARTEXITCODE=3010 is what makes a reboot-required outcome distinguishable from a plain success. Without it Setup returns 0 in both cases. Pair it with /NORESTART so the machine is never restarted without the caller's consent.
Standard install scenarios
Each code below maps to exactly one scenario. Two scenarios never share a code, so an unattended caller can always tell outcomes apart from the return value alone.
| Scenario | Code | Meaning |
|---|---|---|
| Installation successful | 0 | Setup ran to completion. Returned for a first install and for a silent in-place upgrade over an existing install. Both verified. |
| Installation already in progress | 1618 | A second Setup instance exited because another was already running. ERROR_INSTALL_ALREADY_RUNNING. Verified by launching two silent installs concurrently. Wait for the running installation to finish and retry. |
| Reboot required | 3010 | Returned only when the caller passes /RESTARTEXITCODE=3010 and a restart is genuinely needed (a file was locked and could not be replaced in place). ERROR_SUCCESS_REBOOT_REQUIRED — the installation itself succeeded. |
| Installation canceled by user | 2 | The user canceled in the wizard before installation began, or declined the "already installed" prompt. Cannot occur in silent mode. |
| Installation canceled by user (during copy) | 5 | The user canceled during the copy phase, or chose Abort on an Abort/Retry/Ignore dialog. |
| Package rejected during installation | 1 | Setup failed to initialize. The usual causes are a device policy (AppLocker, WDAC, an enterprise SmartScreen policy) blocking execution, or the installer being launched without administrator rights — NetSecWall requires elevation. |
| Disk space is full | 4 | A fatal error during the copy phase; insufficient disk space surfaces here. The code covers other fatal copy-phase failures too, so check the install log for the specific cause. |
| Reboot required before install can start | 8 | Setup cannot proceed until the machine is restarted — typically a pending file-rename operation left by an earlier install. |
Other exit codes
| Code | Meaning |
|---|---|
3 | A fatal error occurred while moving between installation phases. Rare — out of memory or exhausted Windows resources. |
6 | Setup was forcibly terminated by a debugger. Not expected in the field. |
7 | Setup determined it cannot proceed with the installation and stopped before copying any files. |
Application already exists
No distinct return code. Installing over an existing installation is a supported upgrade, not an error. In silent mode Setup upgrades in place, keeps the license, local database, rules, and settings, and returns 0. Run interactively, it asks whether to uninstall first, upgrade in place, or cancel; choosing cancel returns 2.
Network failures
Not applicable. The installer is fully self-contained: it downloads nothing and requires no network connection at install time. There are therefore no network-related return codes. The application itself contacts netsecwall.com the first time it runs, to start the 7-day trial or validate a license key. A failure there is handled inside the app and never affects the installer's exit code.
Logging
Pass /LOG="C:\path\install.log" to capture a full install log. Entries written by NetSecWall's own install logic are prefixed [NSW]. Please attach this log to any support request about a failed deployment — open a support ticket.
What the installer does
- Installs to
%ProgramFiles%\NetSecWall(per-machine, x64 only, Windows 10 1809 or later). - Optionally registers the always-on background service
NetLensSvc, running as SYSTEM. - Creates a Start-menu shortcut and an Add/Remove Programs entry.
- Requires elevation: Windows only exposes per-process network activity and firewall rule changes to an elevated process.
- Uninstall removes all of the above, including the service. Your local traffic database and settings are left in place unless you choose otherwise.
Questions about this page? contact us