I am working on Installation of particular Qt based Windows GUI application, which needs DLLs to be placed in the PATH system environment variable. For placing I could somehow manage to append Installation_path to PATH. But while uninstallation of my application I want to search for where my installation path is and then I've to remove those and put normal path as usually without modifying it. Is a regex my companion or any other way in doing this?
That is, if my Application path is C:\Application_Name\libs\dll_directory_1; C:\Application_Name\libs\dll_directory_2; C:\Application_Name\libs\dll_directory_3, I've to search for Application_Name and all the paths in between the semicolon as delimiter, remove these paths.