Add/remove installation path to/from Windows PATH environment variable when...

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_installer build 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:

grafik

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 🤖

Merge request reports

Loading