とっちゃん's Blog

WindowsInstaller に WiX はいかがですか~

目次

Blog 利用状況

ニュース

とっちゃんって?

コミュニティ

@ITの記事

CodeZineの記事

WiX チュートリアル

Windows ユーザー エクスペリエンス ガイドライン

唯一の日本語書籍

記事カテゴリ

書庫

日記カテゴリ

インストーラ関連

旧館

[msi]Windows 8 のスタート画面にショートカットを載せないでインストールする

Windows Installer 5.0(Windows 7以上のOSに搭載)から、MsiShortcutProperty Table というショートカットのプロパティを設定するためのテーブルが追加されています。WiX を使ってる場合は ShortcutProperty Element です。

この機能そのものは、ショートカットに アプリケーションID を関連付け、ジャンプリストや最近使ったファイルなどをアプリケーションと一緒にスタートメニューでも反映できるようにWindows7で追加された機能です(最近使ったファイルの関連付けは、OS側でもやっているため、Vistaからできている)。

他にもいくつか設定できるプロパティがあるのですが、この一つに Windows 8 のスタート画面にショートカットをPIN止めするかというフラグがあります。

いや、このフラグずーっと前から探してたんですが全然見つけられなかったんですよね。この間も自分のローカルなMSDNライブラリを探していて、そこにはそれっぽいのが見つからず、Facebook で愚痴っていたら、biac さんが、それっぽいやつとヒントをくれました。

こいつの最後のほうに、System.AppUserModel.StartPinOption プロパティでスタート画面へのピン止め設定ができるよと。。。本気でさりげなく書かれています。検索で探せてませんでした。

具体的には

<Component Id="SubApp.exe" ...>
  <File Source="$(var.SubApp.TargetPath)" KeyPath="yes"/>
  <Shortcut Id="SubApp.exe" ...>
    <ShortcutProperty Id="SubApp.StartPinOption" Key="System.AppUserModel.StartPinOption" Value="1"/>
  </Shortcut>
</Component>

という感じで設定します。

これで、初めてインストール(本当に初めて)した時にこの設定が反映され、非表示としているものはスタート画面には出てこなくなります。

ただし、注意点が一つだけ。

スタート画面の設定は「ユーザーごとに保存」されています。インストール後、スタート画面を開いた時点でスタート画面へのピン止め設定がユーザーごとに別の情報として格納されます。

なので、いっぱいあるからあとから消すことにした!として、インストーラを書き換えても反映されません(昨日それで一日つぶした...orz)。

なので、一番最初にショートカットを用意するインストーラの時点からこの部分にぶれのでないような設計をしておく必要があります。

特に注意が必要なのは上書きインストールによるバージョンアップ。ショートカットの名前が同じなら入れ替えても変わらないので、そのまま引っ張り続けてしまいます。

投稿日時 : 2012年11月8日 14:53

コメントを追加

# [msi]Windows 8 のスタート画面にショートカットを載せないでインストールする 2012/11/09 10:17 .NET Clips

素敵なエントリーの登録ありがとうございます - .NET Clipsからのトラックバック

# This is the right website for everyone who wishes to understand this topic. You realize a whole lot its almost hard to argue with you (not that I actually would want to…HaHa). You certainly put a fresh spin on a topic that's been written about for a lo 2019/04/10 8:08 This is the right website for everyone who wishes

This is the right website for everyone who wishes to understand this topic.

You realize a whole lot its almost hard to argue with you (not
that I actually would want to…HaHa). You certainly put a fresh spin on a topic that's been written about for a long time.
Great stuff, just wonderful!

# For hottest news you have to visit the web and on the web I found this website as a finest web page for most up-to-date updates. 2019/04/10 13:31 For hottest news you have to visit the web and on

For hottest news you have to visit the web and on the web I found this website as a finest web page for most up-to-date updates.

# It's very easy to find out any topic on net as compared to books, as I found this piece of writing at this website. pof natalielise 2019/07/26 14:29 It's very easy to find out any topic on net as com

It's very easy to find out any topic on net as compared to books, as I
found this piece of writing at this website. pof natalielise

# It's very easy to find out any topic on net as compared to books, as I found this piece of writing at this website. pof natalielise 2019/07/26 14:30 It's very easy to find out any topic on net as com

It's very easy to find out any topic on net as compared to books, as I
found this piece of writing at this website. pof natalielise

# It's very easy to find out any topic on net as compared to books, as I found this piece of writing at this website. pof natalielise 2019/07/26 14:31 It's very easy to find out any topic on net as com

It's very easy to find out any topic on net as compared to books, as I
found this piece of writing at this website. pof natalielise

# It's very easy to find out any topic on net as compared to books, as I found this piece of writing at this website. pof natalielise 2019/07/26 14:32 It's very easy to find out any topic on net as com

It's very easy to find out any topic on net as compared to books, as I
found this piece of writing at this website. pof natalielise

# Can you tell us more about this? I'd like to find out more details. 2019/08/20 7:12 Can you tell us more about this? I'd like to find

Can you tell us more about this? I'd like to find out more details.

# Can you tell us more about this? I'd like to find out more details. 2019/08/20 7:13 Can you tell us more about this? I'd like to find

Can you tell us more about this? I'd like to find out more details.

# Can you tell us more about this? I'd like to find out more details. 2019/08/20 7:14 Can you tell us more about this? I'd like to find

Can you tell us more about this? I'd like to find out more details.

# Can you tell us more about this? I'd like to find out more details. 2019/08/20 7:15 Can you tell us more about this? I'd like to find

Can you tell us more about this? I'd like to find out more details.

# Wow, wonderful blog format! How lengthy have you been running a blog for? you made running a blog glance easy. The full look of your web site is wonderful, let alone the content! 2019/09/07 21:10 Wow, wonderful blog format! How lengthy have you b

Wow, wonderful blog format! How lengthy have you been running a blog for?
you made running a blog glance easy. The full look of your web site is wonderful,
let alone the content!

# Illikebuisse ctryo 2021/07/04 4:40 www.pharmaceptica.com

tadalafil uses https://www.pharmaceptica.com/

# Thanks for sharing such a pleasant thinking, post is good, thats why i have read it entirely 2021/08/23 9:05 Thanks for sharing such a pleasant thinking, post

Thanks for sharing such a pleasant thinking, post is good, thats
why i have read it entirely

# Thanks for sharing such a pleasant thinking, post is good, thats why i have read it entirely 2021/08/23 9:06 Thanks for sharing such a pleasant thinking, post

Thanks for sharing such a pleasant thinking, post is good, thats
why i have read it entirely

# Thanks for sharing such a pleasant thinking, post is good, thats why i have read it entirely 2021/08/23 9:07 Thanks for sharing such a pleasant thinking, post

Thanks for sharing such a pleasant thinking, post is good, thats
why i have read it entirely

# Thanks for sharing such a pleasant thinking, post is good, thats why i have read it entirely 2021/08/23 9:08 Thanks for sharing such a pleasant thinking, post

Thanks for sharing such a pleasant thinking, post is good, thats
why i have read it entirely

# Hi! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no data backup. Do you have any solutions to prevent hackers? scoliosis surgery https://coub.co 2021/09/14 7:18 Hi! I just wanted to ask if you ever have any tro

Hi! I just wanted to ask if you ever have any trouble with hackers?
My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no data backup.
Do you have any solutions to prevent hackers?
scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery

# Hi! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no data backup. Do you have any solutions to prevent hackers? scoliosis surgery https://coub.co 2021/09/14 7:19 Hi! I just wanted to ask if you ever have any tro

Hi! I just wanted to ask if you ever have any trouble with hackers?
My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no data backup.
Do you have any solutions to prevent hackers?
scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery

# Hi! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no data backup. Do you have any solutions to prevent hackers? scoliosis surgery https://coub.co 2021/09/14 7:20 Hi! I just wanted to ask if you ever have any tro

Hi! I just wanted to ask if you ever have any trouble with hackers?
My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no data backup.
Do you have any solutions to prevent hackers?
scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery

# Hi! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no data backup. Do you have any solutions to prevent hackers? scoliosis surgery https://coub.co 2021/09/14 7:21 Hi! I just wanted to ask if you ever have any tro

Hi! I just wanted to ask if you ever have any trouble with hackers?
My last blog (wordpress) was hacked and I ended up losing a few months of hard work due to no data backup.
Do you have any solutions to prevent hackers?
scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery

# Excellent blog you've got here.. It's difficult to find good quality writing like yours these days. I truly appreciate individuals like you! Take care!! 2021/12/14 15:07 Excellent blog you've got here.. It's difficult t

Excellent blog you've got here.. It's difficult to find good quality writing like
yours these days. I truly appreciate individuals like you!
Take care!!

# My brother suggested I might like this web site. He was entirely right. This post truly made my day. You can not imagine just how much time I had spent for this information! Thanks! 2021/12/26 9:46 My brother suggested I might like this web site.

My brother suggested I might like this web site. He was entirely right.
This post truly made my day. You can not imagine just how much time I had spent for this information! Thanks!

# Hello mates, its impressive article about cultureand fully defined, keep it up all the time. 2022/03/24 22:50 Hello mates, its impressive article about culturea

Hello mates, its impressive article about cultureand fully
defined, keep it up all the time.

# OZYSFmpLrrdslNXh 2022/04/19 11:07 johnansaz

http://imrdsoacha.gov.co/silvitra-120mg-qrms

タイトル
名前
URL
コメント