Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
I thought this was interesting - there is a way that you can globally force Windows to use short filenames (also known as 8.3 filenames because they were limited to 8 characters for the name and 3 characters for the extension) or alternatively allow Windows to use long filenames that are not bound to the 8.3 naming restrictions. This is the key name and value:
Setting this value to 0 will allow Windows to use long filenames. Setting this value to 1 will force Windows to use short filenames.
When you use the SHORTFILENAMES property in Windows Installer, that is the equivalent of forcing 8.3 filenames but only for a single MSI installation. This registry key controls 8.3 file naming for the entire system, and I have seen this be the cause of 1325 errors ('[2]' is not a valid short file name) when installing MSI packages in some rare cases.
Some setup authors do not pay attention to the setting in the file table for the short file name value and inadvertantly provide a short file name that is greater than 8 characters long. Then when someone tries to install that MSI on a system that has the Win31FileSystem value = 1 or the SHORTFILENAMES property set, they get a 1325 error. For example, you will see this if you try to install Visual Studio .NET 2003 on a machine that has this registry value set because we did not pay enough attention to the short file name values we provided in the MSI. One of the files has a short file name value of "Microsoft" which has 9 characters instead of 8.
Anonymous
January 27, 2005
Use the ICE validation rules, then you will discover these sort of issues - and you might be able to qualify for "Designed for Windows XP" :)
Anonymous
March 28, 2007
Say you did a SHORTFILENAMES only install, wouldn't that be likely to break your app anyways? e.g. if it has a call to LoadLibrary with a long filename, how will it be able to locate a file that's been installed with a different, short filename?
Anonymous
March 29, 2007
Hi Stephen - I'm not sure how an application would behave in a scenario like this, but I'm also not sure why you would want to install using the SHORTFILENAMES flag when you know your code uses long file names internally. I'd suggest trying out a test scenario if you are considering trying to support this.
Anonymous
January 21, 2009
PingBack from http://www.keyongtech.com/3666505-valid-short-file-name
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in