Can't you run a little .exe from the installer that deletes/add env vars as necessary? You could pass it instructions in its command line.
Yes I could do this and have done this in the past, but I was not happy
with the solution. The .exe was not written by me so I had no control
and it wasn't written well. Do you have a tool for this kind of thing.
I've done similar things to this in the past when using InnoSetup (you've done far more complex things with InnoSetup for LfW than I've ever managed).
Thanks. Or the better approach, is there INNO pascal code to delete the environment. I suppose I could write that. It is just a hard language to write for and my motivation to get in the code section again is low. :) I guess more to come. I copy most of this code from project to project, so I will solve this for the last time.
--