πŸ•ΈοΈ Ada Research Browser

INSTALLATION.md
← Back

Compliance Toolkit - Installation Guide

Version: 1.1.0 Last Updated: 2025-01-04


Quick Installation

Minimum Files Required

To deploy the Compliance Toolkit to a new system, you need:

C:\ComplianceTool\
β”œβ”€β”€ ComplianceToolkit.exe          # Main executable
└── configs\
    └── reports\                   # Report configuration files
        β”œβ”€β”€ NIST_800_171_compliance.json
        β”œβ”€β”€ fips_140_2_compliance.json
        β”œβ”€β”€ system_info.json
        β”œβ”€β”€ software_inventory.json
        β”œβ”€β”€ network_config.json
        β”œβ”€β”€ user_settings.json
        └── performance_diagnostics.json

Note: Output directories (output/, logs/, evidence/) are created automatically.


Installation Methods

  1. Create installation directory: cmd mkdir C:\ComplianceTool

  2. Copy files: cmd copy ComplianceToolkit.exe C:\ComplianceTool\ xcopy configs C:\ComplianceTool\configs\ /E /I

  3. Verify installation: cmd cd C:\ComplianceTool ComplianceToolkit.exe -list

  4. Run your first report: cmd ComplianceToolkit.exe -report=system_info.json


Method 2: ZIP Distribution

  1. Create a ZIP package:
  2. Include ComplianceToolkit.exe
  3. Include entire configs/ directory
  4. Optional: Include examples/ directory for automation scripts
  5. Optional: Include Documentation/ for reference

  6. Deploy:

  7. Extract ZIP to C:\ComplianceTool\
  8. Verify configs/reports/ contains JSON files
  9. Run ComplianceToolkit.exe -list to test

Method 3: Installer Script (PowerShell)

Create install.ps1:

# Compliance Toolkit Installer
$InstallPath = "C:\ComplianceTool"

Write-Host "Installing Compliance Toolkit to $InstallPath..." -ForegroundColor Cyan

# Create directories
New-Item -ItemType Directory -Path $InstallPath -Force | Out-Null
New-Item -ItemType Directory -Path "$InstallPath\configs\reports" -Force | Out-Null

# Copy files
Copy-Item "ComplianceToolkit.exe" -Destination $InstallPath -Force
Copy-Item "configs\reports\*.json" -Destination "$InstallPath\configs\reports\" -Force

# Optional: Copy examples
if (Test-Path "examples") {
    Copy-Item "examples" -Destination "$InstallPath\examples\" -Recurse -Force
}

# Verify
Write-Host "`nVerifying installation..." -ForegroundColor Yellow
& "$InstallPath\ComplianceToolkit.exe" -list

Write-Host "`nInstallation complete!" -ForegroundColor Green
Write-Host "Location: $InstallPath" -ForegroundColor Yellow
Write-Host "`nTo run: cd $InstallPath && ComplianceToolkit.exe" -ForegroundColor Cyan

Run installer:

.\install.ps1

Path Resolution

The toolkit automatically searches for configs/reports/ in these locations (in order):

  1. Current working directory - .\configs\reports\
  2. Next to executable - C:\ComplianceTool\configs\reports\
  3. One level up from executable - C:\configs\reports\ (if exe is in subfolder)

This means: - βœ… You can run from any directory: C:\ComplianceTool\ComplianceToolkit.exe -list - βœ… You can add to PATH and run globally: ComplianceToolkit.exe -list - βœ… Works with Task Scheduler from any location


Output Directory Locations

Default Locations

By default, output is created relative to the executable:

C:\ComplianceTool\
β”œβ”€β”€ ComplianceToolkit.exe
β”œβ”€β”€ configs\
β”œβ”€β”€ output\
β”‚   β”œβ”€β”€ reports\      # HTML reports
β”‚   β”œβ”€β”€ evidence\     # JSON evidence logs
β”‚   └── logs\         # Application logs

Custom Output Directories

Override defaults with CLI flags:

ComplianceToolkit.exe -report=all ^
    -output=C:\Compliance\Reports ^
    -evidence=C:\Compliance\Evidence ^
    -logs=C:\Compliance\Logs

For scheduled tasks:

ComplianceToolkit.exe -report=all -quiet ^
    -output=\\FileServer\Compliance\Reports ^
    -evidence=\\FileServer\Compliance\Evidence

Installation Verification

Test Basic Functionality

# 1. List reports
ComplianceToolkit.exe -list

# 2. Run a simple report
ComplianceToolkit.exe -report=system_info.json

# 3. Check output
dir output\reports\*.html
dir output\evidence\*.json

# 4. View report in browser
start output\reports\System_Information_*.html

Expected Output

Available Reports:
==================
  - NIST_800_171_compliance.json
    Title:    NIST 800-171 Security Compliance Report
    Category: Security & Compliance
    Version:  2.0.0

  - fips_140_2_compliance.json
    ...

If you see this, installation is successful! βœ…


Network Installation (Enterprise)

Deploy to Multiple Machines

1. Create network share:

\\FileServer\Software\ComplianceTool\
β”œβ”€β”€ ComplianceToolkit.exe
└── configs\reports\*.json

2. Local installation script (GPO/SCCM):

@echo off
REM Deploy from network share
xcopy \\FileServer\Software\ComplianceTool C:\ComplianceTool\ /E /I /Y

REM Create scheduled task
schtasks /create /tn "Daily Compliance Scan" ^
    /tr "C:\ComplianceTool\ComplianceToolkit.exe -report=all -quiet" ^
    /sc daily /st 02:00 /ru SYSTEM

Adding to System PATH

To run ComplianceToolkit.exe from anywhere:

Windows

Method 1: GUI 1. Right-click This PC β†’ Properties 2. Click Advanced system settings 3. Click Environment Variables 4. Under System variables, find Path and click Edit 5. Click New and add: C:\ComplianceTool 6. Click OK on all dialogs

Method 2: PowerShell (Admin)

$CurrentPath = [Environment]::GetEnvironmentVariable("Path", "Machine")
[Environment]::SetEnvironmentVariable("Path", "$CurrentPath;C:\ComplianceTool", "Machine")

Test:

# Open new command prompt
ComplianceToolkit.exe -list

Permissions

Required Permissions

Run as Administrator

Some compliance checks require admin privileges:

# PowerShell (as Admin)
Start-Process "C:\ComplianceTool\ComplianceToolkit.exe" -Verb RunAs

# Or right-click exe β†’ Run as administrator

Service Account (Scheduled Tasks)

Create dedicated service account: 1. Create account: ComplianceScanner 2. Grant permissions: - Read registry access - Write to output directories 3. Run scheduled task as this account


Upgrading

Update Existing Installation

1. Backup current version:

copy C:\ComplianceTool\ComplianceToolkit.exe C:\ComplianceTool\ComplianceToolkit_backup.exe

2. Replace executable:

copy ComplianceToolkit.exe C:\ComplianceTool\ComplianceToolkit.exe /Y

3. Update report configs (if changed):

xcopy configs\reports\*.json C:\ComplianceTool\configs\reports\ /Y

4. Test:

C:\ComplianceTool\ComplianceToolkit.exe -list

Uninstallation

Complete Removal

# 1. Remove scheduled tasks (if any)
schtasks /delete /tn "Daily Compliance Scan" /f

# 2. Remove from PATH (if added)
# See "Adding to System PATH" section

# 3. Delete installation directory
rmdir /S /Q C:\ComplianceTool

# 4. Optional: Delete output archives
rmdir /S /Q C:\Compliance\Archive

Troubleshooting Installation

Issue: "configs/reports not found"

Cause: Report configurations missing or in wrong location

Solution:

# Verify configs directory exists
dir C:\ComplianceTool\configs\reports\*.json

# If missing, copy from distribution
xcopy configs\reports C:\ComplianceTool\configs\reports\ /E /I

Issue: "Access denied" when creating output

Cause: Insufficient permissions for output directory

Solution:

# Run as administrator OR
# Use custom output directory with write permissions
ComplianceToolkit.exe -report=all -output=C:\Users\YourName\ComplianceReports

Issue: Executable won't run

Cause: Windows SmartScreen or antivirus blocking

Solution:

# Check file properties
# Right-click exe β†’ Properties β†’ Unblock

# Or add to antivirus exclusions
# Windows Defender β†’ Virus & threat protection β†’ Exclusions β†’ Add exclusion

Issue: Reports generate but don't open

Cause: No default browser or file association

Solution:

# Manually open report
explorer output\reports

# Or specify browser
"C:\Program Files\Mozilla Firefox\firefox.exe" output\reports\latest_report.html

Deployment Checklist


Directory Structure Reference

Minimal Installation

C:\ComplianceTool\
β”œβ”€β”€ ComplianceToolkit.exe          # Required
└── configs\
    └── reports\                   # Required
        └── *.json                 # At least one report config

Full Installation

C:\ComplianceTool\
β”œβ”€β”€ ComplianceToolkit.exe          # Main executable
β”œβ”€β”€ configs\
β”‚   └── reports\                   # Report configurations
β”‚       β”œβ”€β”€ NIST_800_171_compliance.json
β”‚       β”œβ”€β”€ fips_140_2_compliance.json
β”‚       └── ...
β”œβ”€β”€ examples\                      # Automation scripts (optional)
β”‚   β”œβ”€β”€ scheduled_compliance_scan.bat
β”‚   └── scheduled_compliance_scan.ps1
β”œβ”€β”€ Documentation\                 # Reference docs (optional)
β”‚   β”œβ”€β”€ CLI_USAGE.md
β”‚   β”œβ”€β”€ INSTALLATION.md (this file)
β”‚   └── ...
└── output\                        # Created automatically
    β”œβ”€β”€ reports\                   # Generated HTML reports
    β”œβ”€β”€ evidence\                  # JSON evidence logs
    └── logs\                      # Application logs

Next Steps

  1. βœ… Verify Installation - Run ComplianceToolkit.exe -list
  2. βœ… Generate Test Report - Run ComplianceToolkit.exe -report=system_info.json
  3. βœ… View Report - Open output/reports/*.html in browser
  4. βœ… Set Up Automation - See CLI_USAGE.md
  5. βœ… Schedule Scans - See examples/README.md

For more information: - CLI_USAGE.md - Command-line usage - CLI_QUICKSTART.md - 5-minute quick start - PROJECT_STATUS.md - Project overview


Installation Guide v1.0 ComplianceToolkit v1.1.0 Last Updated: 2025-01-04