My installer project is at a stand-still. I need to append to the PATH system variable during my installation, and every method I've tried within Advanced Installer has failed on me.
[I did a search of the forum, first, but the terms "key path registry system" were excluded from my search, which made the search feature here all but useless. FYI.]
Originally, I tried doing it through the Environment project detail, but it seemed to choke on appending my path to the PATH variable. I think the problem had to do with existing PATH variables with a space in it (like "C:\Program Files\"), but testing hasn't borne that out.
Next, I tried editing the registry key HKLM\System\CurrentControlSet\Control\Session Manager\Environment\PATH, but the behavior has been sporadic. Mostly, the Installer has been replacing (not appending, or prepending -- as I tried once to do) the existing PATH with the path I'm trying to add to it. Or, it has been deleting it, entirely.
Also, in the Registry editor of AI, my new PATH variable's type is REG_SZ, but when I look in the Registry on the test system, it shows up as REG_MULTI_SZ. I don't know enough about the Windows registry to know if this is a problem or not.
This has become very frustrating, and I can't figure out what I'm doing wrong.