desktop7:Shortcut

ファイルへのショートカットを作成します。

要素の階層

<Package>
   └─ <Extensions>
      └─ <desktop7:Extension>
         └─ <desktop7:Shortcut>
   └─ <Applications>
      └─ <Application>
         └─ <Extensions>
            └─ <desktop7:Extension>
               └─ <desktop7:Shortcut>

構文

<desktop7:Shortcut
  File = 'A required string between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.'
  Icon = 'A required string between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.'
  Arguments = 'An optional string between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
  PinToStartMenu = 'An optional boolean value.'
  ExcludeFromShowInNewInstall = 'An optional boolean value.'
  Description = 'An optional string between 1 and 2048 characters in length.'
  desktop10:DisplayName = 'An optional string between 1 and 256 characters in length. This string is localizable.'
  desktop10:Description = 'An optional string between 1 and 2048 characters in length.' >

  <!-- Child elements -->
  desktop7:AppMigrations?

</desktop7:Shortcut>

? 省略可能 (ゼロまたは 1)

属性

特性 説明 データの種類 必須 既定値
File ショートカットのターゲットであるファイルへのパス。 <、>、:、"、|、?、または *) の文字を含むことができない長さの 1 ~ 256 文字の文字列。 イエス
アイコン ショートカットのアイコンであるファイルへのパス。 <、>、:、"、|、?、または *) の文字を含むことができない長さの 1 ~ 256 文字の文字列。 イエス
引数 ショートカットの引数。 先頭と末尾に空白以外の文字を含む、1 ~ 32767 文字の省略可能な文字列。 いいえ
PinToStartMenu ショートカットを [スタート] メニューにピン留めするかどうかを指定するブール値。 省略可能なブール値。 いいえ
ExcludeFromShowInNewInstall 新しくインストールされたアプリに適用される強調表示からショートカットを除外するかどうかを指定するブール値。 省略可能なブール値。 いいえ
説明 ショートカットの説明。 1 ~ 2048 文字の長さの省略可能な文字列。 いいえ
desktop10:DisplayName ショートカットの表示名。 1 ~ 256 文字の長さの省略可能な文字列。 この文字列はローカライズ可能です。 いいえ
desktop10:Description ショートカットのローカライズ可能な説明。 1 ~ 2048 文字の長さの省略可能な文字列。 いいえ

子要素

子要素 説明
desktop7:AppMigrations 最近アンインストールされたアプリの非アクティブ化されたショートカットのアプリ移行エントリのセットを指定します。

親要素

親要素 説明
desktop7:Extension アプリの機能拡張ポイントを宣言します。

要求事項

アイテム 価値
Namespace http://schemas.microsoft.com/appx/manifest/desktop/windows10/7
desktop10 http://schemas.microsoft.com/appx/manifest/desktop/windows10/10
最小 OS バージョン Windows 10 (ビルド 19645)

注釈

ファイル パス形式は、ディレクトリに解決される次のいずれかの定数を基準とした相対パスです。

定数 ディレクトリ
共通プログラム C:\ProgramData\Microsoft\Windows\スタート メニュー\プログラム
プログラム C:\Users\<username>\AppData\Roaming\Microsoft\Windows\スタート メニュー\プログラム
デスクトップ C:\Users\<username>\Desktop

そのため、たとえば[ ファイル] に次の値を指定すると、パス C:\Users\<username>\Desktop\Shortcut.lnkを持つショートカットが作成されます。

File="$(Desktop)\Shortcut.lnk"

Examples