0

I need to use one rather poorly-coded application which requires me to use en-US regional settings, or more specifically, the date format needs to be in en-US format when executing that application. I don't want to use en-US date format when I regularly use my PC. I'd like to start this application using just a double-click, without changing the regional settings manually when using it.

I have created a special user as a member of "Administrators" group (this program requires elevation) and set its regional settings to en-US, with the idea to use runas to launch this application using the different user credentials, hoping that if I launched the app this way, it would pick up the given user regional setting.

I have also tried doing this using PsExec from SysInternals Suite.

However, the application still uses my regional settings. My OS is Windows 10 64-bit. Does anyone have an idea?

EDIT: The accepted answer of the linked (possible duplicate) question is the same as what I've already tried (and marked with bold now for clarity).

EDIT2: The application I am trying to launch is 32-bit, but requires elevation.

1 Answers1

0

I have been able to solve this particular problem using a simple, quick and dirty way. As all this application requires is changing the date format (more specifically, short date format) I have created an application which:

  1. saves the current date format from Registry (from HKCU\Control Panel\International)
  2. changes the date format to the one required by the application I'm launching
  3. launches the application
  4. waits for the application to load
  5. changes the date format setting value back to the previous value

https://drive.google.com/open?id=1RF_vu_-5Qk_ytE93iRzfK0zJGi5706ey

Source

Requires .NET Framework 4.6. Contains appSettings.json which lets you change the application to launch, parameters and the date format to set.