Title: Directory for $PSHome when updating on Windows with MSI · Issue #5226 · PowerShell/PowerShell · GitHub
Open Graph Title: Directory for $PSHome when updating on Windows with MSI · Issue #5226 · PowerShell/PowerShell
X Title: Directory for $PSHome when updating on Windows with MSI · Issue #5226 · PowerShell/PowerShell
Description: On Windows, when we do an update install with an MSI, the directory of $PSHome gets changed to reflect the version number. For example, C:\Program Files\PowerShell\6.0.0-beta.8 gets changed to C:\Program Files\PowerShell\6.0.0-beta.9. Un...
Open Graph Description: On Windows, when we do an update install with an MSI, the directory of $PSHome gets changed to reflect the version number. For example, C:\Program Files\PowerShell\6.0.0-beta.8 gets changed to C:\P...
X Description: On Windows, when we do an update install with an MSI, the directory of $PSHome gets changed to reflect the version number. For example, C:\Program Files\PowerShell\6.0.0-beta.8 gets changed to C:\P...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5226
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Directory for $PSHome when updating on Windows with MSI","articleBody":"On Windows, when we do an update install with an MSI, the directory of `$PSHome` gets changed to reflect the version number. For example, `C:\\Program Files\\PowerShell\\6.0.0-beta.8` gets changed to `C:\\Program Files\\PowerShell\\6.0.0-beta.9`. \r\n\r\nUnfortunately, this breaks any user-created shortcuts that are hard-coded to the exact path of PowerShell. Similarly, apps like VS Code get hardcoded to that path and will break after an update install.\r\n\r\nAFAICT, there's a couple of paths forward here:\r\n1. It might not matter at all once we move to `pwsh` and add $PSHome to the PATH. Anyone who wants stability should build their shortcuts, VS Code preferences, and shell/batch scripts against `pwsh` and not the full path.\r\n2. We change behavior to only use the major and minor versions (e.g. `6.0` and `6.1`and not the revision number). That way, when we update to 6.1 we can keep them side-by-side. However, that might not be desirable if we maintain strict semantic versioning (i.e. don't make breaking changes between minor versions). \r\n3. We change behavior to only use the major version (e.g. `6`). This is similar to the Office or VS Code approach (e.g. `Office12` vs. `Office13`). This may be overoptimizing if we never do a PowerShell 7, or it might be the right solution if we maintain strict semantic versioning.\r\n\r\nMy main goal here is not to over-optimize for an uncertain future. That's why I'm leaning towards 1, but I want to get people's thoughts. ","author":{"url":"https://github.com/joeyaiello","@type":"Person","name":"joeyaiello"},"datePublished":"2017-10-25T08:47:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/5226/PowerShell/issues/5226"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4333ca16-3290-f8cc-0dc8-d2f93d759a90 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A92C:2790A:2CC8F6F:40ABF56:6A5520CA |
| html-safe-nonce | f065d48e4be5d7bad921eeeff27cf1ebbaef2f89066a6151e7c40a3c47d7df64 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTJDOjI3OTBBOjJDQzhGNkY6NDBBQkY1Njo2QTU1MjBDQSIsInZpc2l0b3JfaWQiOiI3MTUzMDQzMzg1MDA3NTQ2NTcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 840a7a15863a40b2efa79a91c7733d4196e06b5b5a85173802dbabef1626286b |
| hovercard-subject-tag | issue:268314329 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/5226/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e6e388b9a9066c3ff5e00109d8696a04f06806f70e5fafd4170399ac1f9b850e/PowerShell/PowerShell/issues/5226 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e6e388b9a9066c3ff5e00109d8696a04f06806f70e5fafd4170399ac1f9b850e/PowerShell/PowerShell/issues/5226 |
| og:image:alt | On Windows, when we do an update install with an MSI, the directory of $PSHome gets changed to reflect the version number. For example, C:\Program Files\PowerShell\6.0.0-beta.8 gets changed to C:\P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joeyaiello |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 358dd24ad7465d20e3fae729b5b169d35b0dd7f8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width