Question

How do I remove a directory from the system PATH?

How do I remove a directory from the system PATH?

Answer:

You can remove a directory from the system PATH using a removeDirectoryFromPath action. You will have to include a section like the one below inside an action list section of your XML installer project file, usually the postUninstallationActionList section. On Unix platforms, the directory will be added to the PATH definition in the shell configuration files: ~/.bashrc, ~/.profile. On Windows, the environment variable will be created in the registry.


   <removeDirectoryFromPath>
      <path>${installdir}/bin</path>
   </removeDirectoryFromPath>