SHORTFILENAMES 属性

设置 SHORTFILENAMES 属性会导致为目标文件名使用短文件名,而不是使用长文件名。 它不会影响安装程序在源中查找的文件名。

默认值

如果未设置 SHORTFILENAMES 属性,并且目标卷支持长名称,则安装程序将使用长名称。 如果目标卷不支持长名称,则安装程序将使用短名称。

备注

设置 SHORTFILENAMES 属性后,安装程序将使用 File 表Directory 表中列出的任何“短|长”对中的短文件名创建文件夹和安装文件。

应用程序可以使用 GetShortPathName 函数检索指定文件路径的短路径形式。

要求

要求
版本
Windows Server 2012、Windows 8、Windows Server 2008 R2 或 Windows 7 上的 Windows Installer 5.0。 Windows Server 2008 或 Windows Vista 上的 Windows Installer 4.0 或 Windows Installer 4.5。 Windows Server 2003 或 Windows XP 上的 Windows Installer。 若要了解 Windows Installer 版本所需的最低 Windows Service Pack,请参阅 Windows Installer 运行时要求

请参阅

属性