FGump
Posts: 65
Joined: Thu Jan 05, 2006 7:23 pm

Change System Short Date Format at install

I have created an MSI that installs an application. However, for the application to run it requires that the system short date be set to MM/dd/yyyy format. By default Windows has this set to M/d/yyyy. This setting is located in the "Region and Language" applet in the control panel. How can I change this automatically from my install using AI?

Thank you
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Change System Short Date Format at install

Hello,

This can be done by updating a registry value that stores the system short date setting :

Code: Select all

HKEY_CURRENT_USER\Control Panel\International\sShortDate
This is the complete method:
- go to "Registry" page and create a new key in HKEY_CURRENT_USER - "Control Panel". In this key create the sub-key "International".
- then create a new value configurated in the following way:

Name : sShortDate
Type : String - REG_SZ /REG_MULTI_SZ
Replace existing value

In the data field entered your desired short date format :

Code: Select all

MM/dd/yyyy
Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
FGump
Posts: 65
Joined: Thu Jan 05, 2006 7:23 pm

Re: Change System Short Date Format at install

Thank you very much Sorin. This works perfectly!

Kind Regards
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Change System Short Date Format at install

Hello,

You are welcome! Just let me know if you have any other questions.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”