Skip to content

Windows PowerShell Installation Fails on Fresh Machines #43

@GordonBeeming

Description

@GordonBeeming

Summary

The installation command for Windows PowerShell fails on newly installed Windows machines with directory and file not found errors. Users cannot install copilot_here because the required PowerShell directories and profile files don't exist by default.

Environment

  • Fresh Windows installation
  • Windows PowerShell 5.1
  • No existing PowerShell profile or Documents\PowerShell directory

Steps to Reproduce

  1. Open Windows PowerShell on a fresh Windows machine
  2. Run the installation command from the website
  3. Observe errors:
    • Could not find a part of the path 'C:\Users\...\Documents\PowerShell\copilot_here.ps1'
    • Cannot find path '...\Microsoft.PowerShell_profile.ps1' because it does not exist

Acceptance Criteria

  • Installation command creates missing directories automatically
  • Installation command creates missing profile file automatically
  • Installation works on fresh Windows installations without admin rights
  • PowerShell script is compatible with both Windows PowerShell 5.1 and PowerShell Core 7+
  • No regex parsing errors in Windows PowerShell 5.1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions