Add/remove installation path to/from Windows PATH environment variable when...
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
Description
Add/remove installation path to/from Windows PATH environment variable when installing/uninstalling through Windows installer
Based on Bill Stewart's "PathMgr" 2.0.0 library & Inno Setup example script at https://github.com/Bill-Stewart/PathMgr/blob/v2.0.0/PathMan.iss.
This library (licensed under LGPL v3.0) is mentioned among the (not officially endorsed or supported) "Inno Setup Third-Party Files" at https://jrsoftware.org/is3rdparty.php.
- Add PathMgr.dll 2.0.0 to scripts folder
- Add task & necessary glue code for managing path environment variable
- Move PathMgr.dll during
windows_installerbuild to root folder - Ignore temporary Inno Setup scripts & DLLs in root folder
Related Issues
Resolves #1145
How has this been tested?
I manually tested the follwoing sucessfully on my (German) Windows 10 Professional:
- Installing with setting path
- Installing without setting path
- Uninstalling with path set
- Uninstalling without path set
Screenshots (if appropriate):
German Inno Setup "additional tasks" UI:
As visible in the screenshot plus marked in the code as TODO, the task description has not been translated yet.
Types of changes
-
New feature (non-breaking change which adds functionality)
Edited by 🤖 GitLab Bot 🤖
