profile_overrides.xml 檔案會提供系統管理設定檔的檔案路徑,以及決定使用的軟體版本。
此檔案必須儲存在本機電腦上的特定應用程式相關資料夾: %programdata%\<公司名稱>\<應用程式名稱>\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 覆寫。