Installer exit codes
For system administrators and package managers.
This page applies to the GSplit 4 installer gsplits.exe and to the self-extracting portable package gsppsfx.exe. When either program ends, it returns an exit code to the program that started it: a script, a deployment tool such as Intune or SCCM, winget, Chocolatey or the Microsoft Store.
Exit codes
Section titled “Exit codes”| Value | Meaning |
|---|---|
0 | Success: GSplit was installed (or extracted). |
1 | Error while decompressing the files. |
2 | Cancelled by the user. |
3 | Unexpected error: fatal Windows error (rare). |
-1 | The temporary folder could not be created (initialization error). |
-2 | The runtime DLL could not be created (initialization error). |
-3 | Corrupted data detected: the downloaded file is damaged or incomplete. Download it again. |
Any value other than 0 means GSplit was not installed. The installer never asks for a restart.
Silent installation
Section titled “Silent installation”| Switch | Effect |
|---|---|
/s | Silent installation: no window, no question. |
/PBSCOPE=0 | Installs for the current user only. No administrator rights needed. |
/PBSCOPE=1 | Installs for all users of the computer. Requires administrator rights. |
gsplits.exe /s /PBSCOPE=0In PowerShell, read the exit code like this:
$setup = Start-Process -FilePath '.\gsplits.exe' -ArgumentList '/s', '/PBSCOPE=0' -Wait -PassThruif ($setup.ExitCode -ne 0) { Write-Error "GSplit setup failed with exit code $($setup.ExitCode)" }Silent uninstallation
Section titled “Silent uninstallation”GSplit 4 appears as GSplit 4 in the installed apps list of Windows. To remove it silently, run Uninst.exe /s from the GSplit installation folder. The uninstaller starts a copy of itself and returns at once; the files and registry entries are removed a few seconds later.
