{"thread":{"id":"59437","subject":"System Environmental Variables being wiped on update","startedAt":"2023-03-22T10:35:01Z","lastAt":"2023-04-03T15:10:13Z","messageCount":2,"participants":["Richard Spano","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"473908","messageId":"AS2PR03MB919368C4FB4C7F94255D2CEA89869@AS2PR03MB9193.eurprd03.prod.outlook.com","threadId":"59437","inReplyTo":null,"subject":"System Environmental Variables being wiped on update","fromName":"Richard Spano","fromEmail":"richard.spano@live.com","sentAt":"2023-03-22T10:34:55Z","receivedAt":"2023-03-22T10:35:01Z","isPatch":false,"sender":{"key":"richard.spano@live.com","avatar":null},"body":"Hello,\n\nI couldn’t find anything for this so we wanted to reach out.\n\nWe have GIT installed on machine and we have “C:\\Program Files\\Git\\usr\\bin\\” added to the PATH system variable (windows). When updating GIT this addition to the PATH variable is wiped. If this is not noticed then we have issues with GIT until we manually re-add this in.\n\nIs there a way to stop these variables being removed during a GIT update?\n\n\nRegards, \n\n      Richard Spano\n\n   "},{"id":"474682","messageId":"7aeccfbc-a6d1-8fc4-339f-562c53d1c133@gmx.de","threadId":"59437","inReplyTo":"AS2PR03MB919368C4FB4C7F94255D2CEA89869@AS2PR03MB9193.eurprd03.prod.outlook.com","subject":"Re: System Environmental Variables being wiped on update","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2023-04-03T15:10:01Z","receivedAt":"2023-04-03T15:10:13Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Richard,\n\nOn Wed, 22 Mar 2023, Richard Spano wrote:\n\n> We have GIT installed on machine and we have “C:\\Program\n> Files\\Git\\usr\\bin\\” added to the PATH system variable (windows). When\n> updating GIT this addition to the PATH variable is wiped. If this is not\n> noticed then we have issues with GIT until we manually re-add this in.\n>\n> Is there a way to stop these variables being removed during a GIT update?\n\nThe Git for Windows-specific part of the `PATH` is considered to be\n\"owned\" by Git for Windows. This is required to allow for future changes\nsimilar to the ones when we moved Git for Windows from MSys to MSYS2,\nwhere the paths changed that needed to be added.\n\nHowever, I have good news for you: if you _want_ `usr\\bin` to be added to\nthe `PATH`, you only need to select the 3rd option on the \"Adjusting your\nPATH environment\" page of the installer.\n\nYou might want to review the implications, though.\n\nCiao,\nJohannes\n"}]}