共用方式為


ICE92

ICE92 會確認沒有元件識別碼 GUID 的元件未同時指定為永久元件。 此 ICE 自訂動作會檢查 元件資料表 中未在 ComponentId 欄位中指定的 GUID ,並確認尚未在 [屬性] 欄位中設定 msidbComponentAttributesPermanent 旗標。 ICE92 也會驗證沒有元件同時具有 msidbComponentAttributesPermanentmsidbComponentAttributesUninstallOnSupersedence 屬性。

如果 ComponentId 資料行為 Null,安裝程式不會註冊元件,而且安裝程式無法移除或修復元件。

結果

ICE92 張貼下列錯誤。

ICE92 錯誤 Description
元件 '[1]' 沒有 ComponentId,而且標示為永久。 Component 資料表中此元件的專案在 ComponentId 資料行中具有 Null,並在 Attributes 資料行中具有 msidbComponentAttributesPermanent

 

ICE92 會張貼下列警告。

ICE92 警告 Description
元件 '[1]' 標示為永久且卸載取代。 卸載取代屬性將會被忽略,因為元件是永久的。 元件資料表中此元件的專案同時具有msidbComponentAttributesPermanentmsidbComponentAttributesUninstallOnSupersedence屬性。

 

範例

ICE92 報告下列範例錯誤:

The Component 'Component1' has no ComponentId and is marked as permanent.

元件資料表 (部分)

元件 ComponentId 目錄_ 屬性 KeyPath
Component1   DirectoryA 16 FileA

 

ICE 參考