とっちゃん's Blog

WindowsInstaller に WiX はいかがですか~

目次

Blog 利用状況

ニュース

とっちゃんって?

コミュニティ

@ITの記事

CodeZineの記事

WiX チュートリアル

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

唯一の日本語書籍

記事カテゴリ

書庫

日記カテゴリ

インストーラ関連

旧館

[WiX]VCRedist の ExePackage を作ってみた。

さっきも書いたけど、VS2015 から、VCRuntime の配布も原則として VCRedist を使うことになる(おそらく、MFCも含めてマージモジュールでの配布の選択は無くなるだろう)。

個人的には、VCRedist の開発元が、ClickOnce 向けの setup.exe 用必須コンポーネントの情報だけではなく、ExePackage 向けの情報も出してくれると、大変ありがたかったりするのだけど。。。

ま、それはともかくとして、既存の(そして残念ながらこちらは開発元からの提供はない) VCRedist から代表的な2つをピックアップして、ExePackage を作ったので張り付けておく。

VC100(VS2010のVisualC++) SP1用

  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <Fragment>  
  3.  <util:ProductSearch  
  4.        Id="VCRedist100_x86"  
  5.        Variable="VCRedist100_x86"  
  6.        ProductCode="{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}"  
  7.        Result="state"/>  
  8.  <PackageGroup Id="VCRedist100_x86">  
  9.   <ExePackage  
  10.     Id="VCRedist100_x86"  
  11.     Name="redistVC100\vcredist_x86.exe"  
  12.     SourceFile="VS2010\vcredist_x86.exe"  
  13.     DetectCondition="VCRedist100_x86 &gt;= 3"  
  14.     Permanent="yes"  
  15.     PerMachine="yes"  
  16.     Cache="no"  
  17.     Vital="yes"  
  18.     Compressed="no"  
  19.     LogPathVariable="VCRedist100_x86_log"  
  20.     DisplayName="Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219"  
  21.     Protocol="netfx4"  
  22.     InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[VCRedist100_x86_log].html&quot;"  
  23.     RepairCommand="/q /norestart /repair /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[VCRedist100_x86_log].html&quot;"  
  24.     UninstallCommand="/uninstall /q /norestart /ChainingPackage &quot;[WixBundleName]&quot; /log &quot;[VCRedist100_x86_log].html&quot;" />  
  25.  </PackageGroup>  
  26. </Fragment>  

VC120(VS2013)用 Update4 用

  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <Fragment>  
  3.  <util:ProductSearch  
  4.     Id="VCRedist120_x86"  
  5.     Variable="VCRedist120_x86"  
  6.     ProductCode="{13A4EE12-23EA-3371-91EE-EFB36DDFFF3E}"  
  7.     Result="state" />  
  8.  <PackageGroup Id="VCRedist120_x86">  
  9.   <ExePackage  
  10.     Id="VCRedist120_x86"  
  11.     Name="redistVC120\vcredist_x86.exe"  
  12.     SourceFile="VS2013\vcredist_x86.exe"  
  13.     DownloadUrl="http://go.microsoft.com/fwlink/?LinkID=320712"  
  14.     DetectCondition="VCRedist120_x86 &gt;= 3"  
  15.     Permanent="yes"  
  16.     PerMachine="yes"  
  17.     Cache="no"  
  18.     Vital="yes"  
  19.     Compressed="no"  
  20.     LogPathVariable="VCRedist120_x86_log"  
  21.     DisplayName="Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.30501"  
  22.     Protocol="burn" />  
  23.  </PackageGroup>  
  24. </Fragment>  

あえて、コメントを入れていないのはわざとです。すべての行を分けてるのもわざとです。

質問がある場合は、msi-ml(http://www.freeml.com/msi)までどうぞ。

投稿日時 : 2015年3月9日 15:25

コメントを追加

# re: [WiX]VCRedist の ExePackage を作ってみた。 2015/03/09 15:29 とっちゃん

VC120側がおかしいからって修正したらそれぞれが2個になっちゃった。。。

なんだかなぁ。。。

# In fact when someone doesn't know afterward its up to other users that they will help, so here it happens. 2019/05/29 14:02 In fact when someone doesn't know afterward its up

In fact when someone doesn't know afterward its up to other users that they will help,
so here it happens.

# Hello to every , for the reason that I am in fact keen of reading this blog's post to be updated regularly. It includes good data. 2019/06/02 20:28 Hello to every , for the reason that I am in fact

Hello to every , for the reason that I am in fact keen of reading this blog's post to
be updated regularly. It includes good data.

# Useful info. Fortunate me I found your web site by accident, and I am shocked why this twist of fate did not happened in advance! I bookmarked it. 2019/06/07 16:06 Useful info. Fortunate me I found your web site by

Useful info. Fortunate me I found your web site by accident, and I am shocked why this
twist of fate did not happened in advance!

I bookmarked it.

# Right away I am ready to do my breakfast, after having my breakfast coming again to read more news. 2019/07/19 7:25 Right away I am ready to do my breakfast, after ha

Right away I am ready to do my breakfast, after having my breakfast
coming again to read more news.

# Amazing! Its in fact amazing paragraph, I have got much clear idea concerning from this paragraph. 2019/08/13 22:04 Amazing! Its in fact amazing paragraph, I have go

Amazing! Its in fact amazing paragraph, I have got
much clear idea concerning from this paragraph.

# Thanks for finally talking about >[WiX]VCRedist の ExePackage を作ってみた。 <Liked it! https://empiricaltherapeutics.com/index.php/Benutzer:JudiBuckner3 https://relysys-wiki.com/index.php?title=User:MerryAtchison3 https://bbarlock.com/index.php/User:Ka 2022/05/15 13:18 Thanks for finally talking about >[WiX]VCRedist

Thanks for finally talking about >[WiX]VCRedist の ExePackage を作ってみた。 <Liked it!

https://empiricaltherapeutics.com/index.php/Benutzer:JudiBuckner3
https://relysys-wiki.com/index.php?title=User:MerryAtchison3
https://bbarlock.com/index.php/User:KarolinTrethowan
https://www.greatafricanrailway.org/index.php/Omg_One_Of_The_Best_Mortgage_Broker_Ever
http://wiki.xn--80ahlrjqm6azc.xn--p1ai/index.php/User:RhodaFarrelly15
http://wiki.lynthornealder.com/index.php?title=User_talk:JulieShephard15

タイトル
名前
URL
コメント