Describe the Bug
Description:
When running the Windows installation script (irm 'https://cursor.com/install?win32=true' | iex), the payload downloads successfully, but the wrapper script (agent.ps1) throws the following error:
No version directories found in C:\Users\...\AppData\Local\cursor-agent
Root Cause:
The installer downloads the payload into a timestamped directory format (e.g., 2026.06.19-20-24-33-653a7fb), but the regex in agent.ps1 used to validate the version directory is too strict and doesn’t account for the time/hour hyphens.
In agent.ps1:
$name -match '^\d{4}\.\d{1,2}\.\d{1,2}-[a-f0-9]+$'
Because of the extra -20-24-33 in the folder name, the regex fails, returning no valid directories, even though the Node payload is sitting right there.
Proposed Fix:
Update the regex in agent.ps1 to handle the timestamp variables before the commit hash. For example:
$name -match '^\d{4}\.\d{1,2}\.\d{1,2}.*-[a-f0-9]+$'
Environment:
- OS: Windows 11
- Shell: PowerShell 7 / Windows PowerShell
Steps to Reproduce
irm ‘Cursor CLI — Run Agents in Terminal, GitHub Actions and Automations & Scripts’ | iex
agent
Expected Behavior
launch agent file
Operating System
Windows 10/11
Version Information
2026.06.19-20-24-33-653a7fb
Does this stop you from using Cursor
No - Cursor works, but with this issue