Skip to content

Switch to per-user install and fix script execution issues#2548

Open
hillary-mutisya wants to merge 4 commits into
microsoft:mainfrom
hillary-mutisya:installScript2
Open

Switch to per-user install and fix script execution issues#2548
hillary-mutisya wants to merge 4 commits into
microsoft:mainfrom
hillary-mutisya:installScript2

Conversation

@hillary-mutisya

Copy link
Copy Markdown
Collaborator

This pull request makes significant improvements to the TypeAgent MSI installer and Copilot plugin registration process, with a focus on switching to per-user installation, hardening plugin registration, and improving logging and error handling. It also restricts MSI builds to win32-x64 and refines the plugin marketplace generation logic.

Installer packaging and installation scope:

  • The MSI now installs TypeAgent under %LOCALAPPDATA%\TypeAgent rather than C:\Program Files\TypeAgent, switching from a per-machine to a per-user installation (InstallScope="perUser", directory changes, registry moved to HKCU). [1] [2] [3] [4] [5] [6]
  • The MSI is now only built for win32-x64; other RIDs such as win32-arm64 are no longer supported, and the build script enforces this. [1] [2]

Copilot plugin registration and logging:

  • The register-plugin.ps1 script is completely rewritten to:
    • Fail the MSI install on registration errors (registration failures are now fatal).
    • Log all actions and errors to a file for diagnostics.
    • Use a robust, explicit search for the Copilot CLI executable, avoiding VS Code extension shims.
    • Build or update a local plugin marketplace in the user's profile, ensuring the plugin is always registered and up-to-date.
    • Support uninstall mode that properly removes both plugin and marketplace. [1] [2] [3] [4]

Marketplace and plugin manifest generation:

  • The build script for the MSI (build-msi.mjs) now uses the plugin version (not the agent version) for the marketplace manifest, ensuring the correct version is reflected. [1] [2]

These changes collectively improve the reliability, user experience, and maintainability of the TypeAgent MSI installer and Copilot CLI plugin integration.

Three critical fixes:
1. Variable reference syntax in error message (use brace expansion)
2. Copilot CLI detection fallback for -NoProfile mode
3. Plugin directory naming: rename copied dir to match marketplace entry
4. Line continuation: backtick instead of backslash

Result: Script runs successfully, registers local marketplace, installs plugin
@hillary-mutisya hillary-mutisya added this pull request to the merge queue Jun 23, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 23, 2026
@hillary-mutisya hillary-mutisya added this pull request to the merge queue Jun 23, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant