Prevent Screen Saver is built on .NET 10 Windows Forms and targets theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/proteo5/Prevent-Screen-Saver/llms.txt
Use this file to discover all available pages before exploring further.
net10.0-windows framework. The source compiles into a single self-contained Windows executable, and the optional installer is packaged with Inno Setup 6. This page walks through every step from cloning the repository to producing both distributable artifacts.
Requirements
Windows
Required for both building and running the application. The project targets Windows-only APIs including
SetThreadExecutionState and RegisterHotKey..NET SDK 10+
The project file specifies
net10.0-windows as its target framework. Download the SDK from dot.net.Inno Setup 6
Optional — only needed to produce the installer
.exe. Download from jrsoftware.org.Clone and Build
Clone the repository from GitHub, then build the solution file to confirm everything compiles correctly.Prevent-Screen-Saver.slnx is at the repository root and references the single project at src/PreventScreenSaver/PreventScreenSaver.csproj.
Run in Development
To launch the application directly from source during development, usedotnet run with an explicit project path:
StartMinimized setting). Left-click the tray icon to toggle protection state, or right-click to open the context menu.
Publish Portable Package
The portable release is a self-containedwin-x64 publish that bundles the .NET runtime — no installation required on the target machine. After publishing, compress the output into a ZIP archive:
artifacts/PreventScreenSaver-win-x64.zip
This ZIP is the portable artifact published to GitHub Releases alongside the installer.
Build Installer (Inno Setup)
The installer is defined ininstaller/PreventScreenSaver.iss and compiled with the Inno Setup command-line compiler ISCC.exe.
The publish step above must be run before building the installer. The Inno Setup script sources all application files directly from
artifacts/publish/win-x64/ — if that directory is missing or stale, the installer build will fail or bundle an outdated binary.artifacts/installer/PreventScreenSaver-Setup-x64.exe
Installer Metadata
The following properties are defined at the top ofinstaller/PreventScreenSaver.iss:
| Property | Value |
|---|---|
| App name | Prevent Screen Saver |
| Version | 0.2.0 |
| Publisher | Alfredo Pinto Molina |
| Compression | lzma2 (solid compression enabled) |
| Privileges required | lowest — no administrator rights needed |
| Architectures allowed | x64compatible |
| Default install directory | {autopf}\Prevent Screen Saver |
| Installer output file | PreventScreenSaver-Setup-x64.exe |
