# Quick Task 260409-roi: Summary

**Task:** Update installer for non-standard Steam installation locations
**Date:** 2026-04-10
**Commit:** 4b1281d

## What Changed

All three deployment-related files now auto-detect the Steam install path from the Windows Registry instead of hardcoding `C:\Program Files (x86)\Steam`.

### Detection Strategy
1. Read `HKLM\SOFTWARE\WOW6432Node\Valve\Steam` → `InstallPath` (most reliable, set by Steam installer)
2. Fall back to `HKCU\SOFTWARE\Valve\Steam` → `SteamPath` (user-level, forward slashes normalized)
3. If both absent, use the previous hardcoded default

### Files Modified

| File | Changes |
|------|---------|
| `installer/BeyondProximity.iss` | Added `GetSteamInstallPath`, `GetDefaultDirName`, `GetVrPathRegPath`, `VrPathRegExists` Pascal Script functions. `DefaultDirName` and vrpathreg `[Run]` entry now use `{code:...}` scripted constants. |
| `scripts/deploy_driver.ps1` | Added `Get-SteamPath` function. Default `$TargetPath` and `$vrpathreg` now resolve from registry. |
| `scripts/register_driver.ps1` | Added `Get-SteamPath` function. `$steamVrBin` and fallback `steamvr.vrsettings` path now resolve from registry. |

## Behavior

- **Standard Steam install** (`C:\Program Files (x86)\Steam`): No behavior change — registry returns the same path.
- **Non-standard Steam install** (e.g., `C:\Games\Steam`, `D:\Steam`): Paths resolve correctly from registry.
- **No Steam registry keys**: Falls back to previous hardcoded defaults.
