If as a software provider you deem it absolutely necessary to support jurisdiction-dependent policy, the only even vaguely safe way to do so is to bind it at application installation time, by offering different versions of the software. You absolutely cannot make it something "detected at runtime".