Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to have only one PI instance at any point in time #2951

Merged
merged 3 commits into from
May 17, 2024

Conversation

zadesai
Copy link
Contributor

@zadesai zadesai commented May 16, 2024

Summary of the pull request

If PI is running elevated, and a user starts PI unelevated, we would have 2 instances of PI running.
To fix this, when an elevated PI instance is running, redirect all activation calls to the elevated PI instance.

Validation steps performed

  1. Run PI unelevated
  2. Change target app to task manager
  3. This shows a button to run PI as admin
  4. Click on the button and wait for PI to run as admin
  5. From unelevated powershell run PI and confirmed that the activation is redirected to the elevated PI instance.

tools/PI/DevHome.PI/Program.cs Outdated Show resolved Hide resolved
@zadesai zadesai merged commit 2b55fc4 into main May 17, 2024
4 checks passed
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.

3 participants