profile_overrides.xml 文件将提供管理配置文件的文件路径,并确定使用的软件版本。
此文件必须保存在本地计算机指定应用程序的相关文件夹,例如: %programdata%\<company_name>\<application_name>\profile_overrides.xml
.xml 文件使用以下示例中显示的特定语法:
profile_overrides.xml 文件样本
<?xml version="1.0"?>
<profileoverrides>
<version build="*">
<setting type="QString" value="U:\Common\CAD\Shared\profile_1.xml"
/>
<setting type="QString" value="U:\Common\CAD\Shared\profile_2.xml"
/>
</version>
<version build="12.0.003">
<setting type="QString" value="U:\Common\CAD\Shared\profile_3.xml"
/>
</version>
</profileoverrides>
在 build 参数中,version 标记将指定应用后续配置文件设置的版本。 星号 (*) 将指定已为所有安装的程序版本应用后续配置文件。
在 value 参数中,settings 标记将在程序启动时指定要加载的 profile.xml 文件。 该文件一般位于网络驱动器及文件夹中。
您应保留替代值规范的顺序。 在以上示例中,独立用户配置文件被 profile_1 替代,然后被 profile_2 替代。