ICE59

ICE59 會檢查公告的快捷方式是否屬於快捷方式目標功能所安裝的元件。

ICE59 回報的錯誤通常會導致下列行為:

  1. 公告的快捷方式將會啟動 Windows Installer,以安裝 [目標] 欄中所列的功能。
  2. 但是,由於 FeatureComponents 資料表 不會將目標功能對應至包含快捷方式的元件,因此不會安裝快捷方式) 所啟動之元件 (索引鍵檔。
  3. 因此,快捷方式會中斷,而且不會執行任何動作。

結果

如果公告的快捷方式不屬於快捷方式的目標功能所安裝的元件,ICE59 就會張貼錯誤。

範例

ICE59 會針對所示的範例回報下列錯誤:

The shortcut ShortcutB activates component ComponentB and advertises feature FeatureA, but there is no mapping between FeatureA and ComponentB in the FeatureComponents table.

在此情況下,ShortcutB 會公告 FeatureA,並在啟動時啟動 ComponentB 的主要檔案。 但 ComponentB 永遠不會由 FeatureA 安裝,因此即使在安裝隨選階段完成之後,快捷方式的目標也不存在。

若要修正此錯誤,請將資料列新增至與 FeatureA 和 ComponentB 建立關聯的 FeatureComponents 資料表

快捷 ( 部分)

快速鍵 目標 元件_
ShortcutB FeatureA ComponentB

 

FeatureComponents 資料表

特徵_ 元件_
FeatureA ComponentA

 

功能資料表 (部分)

功能 層級
FeatureA 10

 

元件資料表 (部分)

元件 KeyPath
ComponentA FileA
ComponentB FileB

 

檔案資料表 (部分)

檔案 元件_ 順序
FileA ComponentA 1
FileB ComponentB 2

 

ICE 參考