The usual way to fix these types of windows issues is to use the registry. I think we can #ifdef some code in to get such an entry, if it exists, and fall back on the argv[0] solution.