> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MicrosoftGame.config 元素 - InstallAction

> MicrosoftGame.config 元素 - InstallAction

# MicrosoftGame.config 元素 - InstallAction

指定安裝動作清單中的安裝動作。最多 100 個項目。

## 父系

此元素的父系是 InstallActionList 元素。

## 需求

此元素為選用，不需要設定。

## 平台

此元素僅適用於 PC 裝置。

## 行為

* 屬性為 File、Name 和 Arguments。
* 沒有預設值。
* File 屬性允許的值為父系 CustomInstallActions 元素所指定資料夾中的有效可執行檔，Argument 屬性為提供給該可執行檔的字串，Name 屬性則為字串。

## 備註

若要正確設定解除安裝或修復動作，請確定 InstallAction、UninstallAction 和 RepairAction 元素中的 Name 屬性相符。

## 另請參閱

[MicrosoftGame.config 參考 - 目錄](/zh-TW/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc)


## Related topics

- [MicrosoftGame.config Element - InstallAction](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-installaction.md)
- [MicrosoftGame.config Element - InstallActionList](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-installactionlist.md)
- [MicrosoftGame.config 元素 - RepairAction](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-repairaction.md)
- [MicrosoftGame.config 元素 - UninstallAction](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-uninstallaction.md)
- [MicrosoftGame.config 요소 - InstallAction](/ko/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-installaction.md)
