Something equivalent to this command line:
set PATH=%PATH%;C:\Something\bin
To run my application, something has to be in a PATH variable. So I want at the program beginning catch exceptions if the program fails to start and display some wizard for the user to select the installation folder of a program that needs to be in a PATH. Then I would take that folder's absolute path and add it to the PATH variable and start my application again.
That "something" is VLC media player. I need its installation folder in the PATH variable (for example: C:\Program Files\VideoLAN\VLC). My application is a single executable .jar file and in order to use it, VLC needs to be in a PATH. So when the user first starts my application, that little wizard would pop up to select the VLC folder, and then I would update PATH with it.