For a command-line app, you could create a batch file that sets the
variables, then starts the app. I'm not sure that would work for a GUI
app though, I think when you start a GUI app from the command line it
starts in its own process, with a fresh copy of the environment
variables. You could try and see whether it works.