# Version Check ColourSpace Script Guide
## What This Script Does
This PowerShell script automatically checks if newer versions of ColourSpace and ColourSpace ZRO are available for download. It compares the latest version numbers published on the LightIllusion website against the versions currently installed on your Windows computer, then displays a clear status message indicating whether updates are available.
---
## Creating the Script
### Step 1: Open Notepad
- Press `Windows Key + R`
- Type `notepad` and press Enter
### Step 2: Copy the Script
- Copy all the PowerShell code (the entire script text)
```shell
Write-Host "`nCheck for new versions of ColourSpace`n"
# Function to get installed version from Windows Registry or Program Files
function Get-InstalledVersion {
param (
[string]$ProductName,
[string[]]$AlternateNames = @(),
[string[]]$ExcludeNames = @()
)
# Check common registry locations for installed programs
$registryPaths = @(
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*",
"HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*",
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*"
)
$searchNames = @($ProductName) + $AlternateNames
foreach ($path in $registryPaths) {
foreach ($searchName in $searchNames) {
$apps = Get-ItemProperty $path -ErrorAction SilentlyContinue |
Where-Object { $_.DisplayName -like "*$searchName*" }
foreach ($app in $apps) {
# Check if this app should be excluded
$shouldExclude = $false
foreach ($excludeName in $ExcludeNames) {
if ($app.DisplayName -like "*$excludeName*") {
$shouldExclude = $true
break
}
}
if ($shouldExclude) {
continue
}
# Try to extract the last 4 digits from version string (e.g., v1.0.1.2245 -> 2245)
if ($app.DisplayVersion) {
if ($app.DisplayVersion -match '\.(\d{4})