Remove part of PATH variable on uninstallation
Verfasst: 23 Sep 2013, 14:52
Hi,
I've done a package which deploy some binaries and add a path to the PATH environment variable.
That was done using "supp" like it's shown in OPSI manual :
Now, i want to remove the additional path "C:\myapp\bin" from PATH when i remove the package.
Can you tell me what can I do ? Does a contrary of "supp" exists ?
Thanks.
I've done a package which deploy some binaries and add a path to the PATH environment variable.
That was done using "supp" like it's shown in OPSI manual :
Code: Alles auswählen
DefVar $Path$
Set $Path$ = EnvVar ("Path")
Set $InstallDir$ = "C:\myapp"
...
Registry_PathPatch /32Bit
...
[Registry_PathPatch]
openkey [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\control\Session Manager\Environment]
set "Path"="$Path$"
supp "Path" ; "$InstallDir$\bin"
Can you tell me what can I do ? Does a contrary of "supp" exists ?
Thanks.