-
Notifications
You must be signed in to change notification settings - Fork 320
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
PATH Environment Variable Corruption Issue (Fixed in Preview 3) #1599
Comments
So as long as you don't uninstall any packaged app on the system the bug shouldn't trigger? Do any packaged apps ever get uninstalled by Visual Studio automatically while developing packaged apps? Trying to balance productivity of downgrading vs. just being careful. Is Preview 3 coming relatively soon™? |
It's not like windows will start crashing with corrupted PATH environment variables(I didn't even notice it for 2 months). For me the way out of this is open PowerShell window with given above 2 part of script, and runing it after work, it is too tedious for me to roll back to 0.8.5 |
Also see Important issue impacting 1.0 Preview 1 and Preview 2 on docs.microsoft.com. |
This issue has been fixed in 1.0 Preview 3, released today!! If you've previously used 1.0 Preview 1 or Preview 2, you still must follow the steps above to fix your path. |
This issue has been fixed in 1.0 Preview 3, released on 10/27!! If you've previously used 1.0 Preview 1 or Preview 2, you still must follow the steps below to fix your path.
The new EnvironmentManager API in 1.0 Preview 1 and Preview 2 of the Windows App SDK includes a mechanism to clean up any environment variable changes made by a packaged app when that app is uninstalled. This feature is in an experimental state, and the first release includes a known bug which can corrupt the system PATH environment variable.
This happens when the Undocked Deployment Extension Handler (DEH) executes, and this component executes whenever any packaged app is uninstalled, regardless of whether that app uses the Windows App SDK. The PATH is only corrupted if it contained the variable expansion character ‘%’.
Specifics:
The System PATH entry in the registry here:
…should be of type REG_EXPAND_SZ, but the DEH changes this to REG_SZ. This makes the PATH unusable if it contained the variable expansion character ‘%’.
Affected releases:
Mitigation:
To get your machine back into a good state, take the following steps:
These steps can be accomplished with the following Windows PowerShell script (must use the latest version of Windows PowerShell, and run it elevated, don't use PowerShell Core):
Fix:
The EnvironmentManager functionality in the Undocked DEH component will be removed in the upcoming Release 1.0 Preview 3. This functionality may be reintroduced at a later date, when all bugs have been fixed and thoroughly tested.
The text was updated successfully, but these errors were encountered: