共用方式為


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 的主要檔案。 然而,FeatureA 永遠不會安裝 ComponentB,因此即使安裝隨選階段完成,快捷方式的目標也不存在。

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

捷徑 (部分)

捷徑 目標 元件_
ShortcutB FeatureA ComponentB

 

FeatureComponents 數據表

特徵_ 元件_
FeatureA ComponentA

 

功能資料表 (部分)

特徵 水準
FeatureA 10

 

元件資料表 (部分)

元件 KeyPath
ComponentA FileA
ComponentB FileB

 

檔案資料表 (部分)

元件_ 序列
FileA ComponentA 1
FileB ComponentB 2

 

ICE 參考