2013-09-01 9 views
9

仮想環境の設定を合理化するために、私はChocolateyを使用して自分のVMを自動化しています。Visual Studioのアップデートをコマンドラインから確認するにはどうしたらいいですか?

私は、Visual Studioをインストールするcinstコマンドを実行することができますので

c:\> cinst VisualStudio2012Professional 

それがインストールされています後場合、私は思ったんだけど、コマンドラインスイッチは、をチェックし(その後、「インストール」)することがありビジュアル内の更新情報スタジオ?これはまた、サイドVS.に沿って設置されているすべての拡張機能を拡張する必要があり

"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" /InstallUpdates 

の線に沿って

何か...

答えて

9

チェックする方法はありますが、それはまっすぐではありません。

します。C:\ Program Files(x86の)\のMicrosoft Visual Studioの11.0 \ Common7このURLはに配置することができ

http://go.microsoft.com/fwlink/?LinkID=251032

:Visual Studioの更新は、現在ここでホストされているATOMフィード経由で公開されています\ IDE \ CommonExtensions \ Platform \ Shell \ Microsoft.VisualStudio.ExtensionManager.Implementation.pkgdef

[$ RootKey $ \ ExtensionManager \ Repositories {52943709-1abb-4abe-b413-41e8bb6d0462}]キーの下にあります。

上記のURLは、Visual Studioのいずれのバージョンでも変更する必要はありませんが、保証するものではありません。あなたがhttp://go.microsoft.com/fwlink/?LinkID=290886の応答を調べる場合は、現在、この応答を取得します:

<?xml version="1.0" encoding="utf-8"?> 
<feed xmlns="http://www.w3.org/2005/Atom"> 
    <title type="text"></title> 
    <id>uuid:99B94631-1B1A-45A0-9C34-54F75988DD54;id=1</id> 
    <updated>2013-02-12T20:00:00-07:00</updated> 
    <entry> 
    <id>8EAF6C8E-1283-4EEE-AB6E-F0F087BFCBFF</id> 
    <title type="text">Visual Studio 2012 Update 3</title> 
    <summary type="text">Includes security updates, other critical updates, hotfixes, and feature packs that have been issued since the product was released.</summary> 
    <published>2012-12-01T21:00:00-07:00</published> 
    <updated>2012-12-01T21:00:00-07:00</updated> 
    <author> 
     <name>Microsoft Corp.</name> 
    </author> 
    <link rel="alternate" type="text/html" href="http://go.microsoft.com/fwlink/?LinkID=257044&amp;clcid=0x409"/> 
    <link rel="releasenotes" type="text/html" href="http://go.microsoft.com/fwlink/?LinkID=257045&amp;clcid=0x409"/> 
    <link rel="update" type="text" href="http://go.microsoft.com/fwlink/?LinkID=302339"/> 
    <!-- icon should be 32 x 32 pixels --> 
    <link rel="icon" type="text" href="http://visualstudiogallery.msdn.microsoft.com/Content/VisualStudio/VSDownload_32x.png"/> 
    <!-- preview image should be 200 x 200 pixels --> 
    <link rel="previewimage" type="text" href="http://visualstudiogallery.msdn.microsoft.com/Content/VisualStudio/VSDownload_200x.png"/> 
    <Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/developer/vsx-syndication-schema/2010"> 
     <Id>8EAF6C8E-1283-4EEE-AB6E-F0F087BFCBFD</Id> 
     <Version>11.0.60610.01</Version> 
     <References /> 
    </Vsix> 
    </entry> 
    <entry> 
    <id>28743233-1A36-4e67-8747-F072F8C76D1F</id> 
    <title type="text">Visual Studio Extensions for Windows Library for JavaScript</title> 
    <summary type="text">This release updates the development resources for the controls, CSS styles, and helper functions that are included in the Windows Library for JavaScript.</summary> 
    <published>2013-08-08T20:00:00-07:00</published> 
    <updated>2013-08-08T20:00:00-07:00</updated> 
    <author> 
     <name>Microsoft Corp.</name> 
    </author> 
    <link rel="alternate" type="text/html" href="http://go.microsoft.com/fwlink/?LinkId=260891&amp;clcid=0x409"/> 
    <link rel="releasenotes" type="text/html" href="http://go.microsoft.com/fwlink/?LinkID=260892&amp;clcid=0x409"/> 
    <link rel="update" type="text" href="http://go.microsoft.com/fwlink/?LinkID=260893"/> 
    <link rel="icon" type="text" href="http://visualstudiogallery.msdn.microsoft.com/Content/VisualStudio/VSDownload_32x.png"/> 
    <link rel="previewimage" type="text" href="http://visualstudiogallery.msdn.microsoft.com/Content/VisualStudio/VSDownload_200x.png"/> 
    <Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/developer/vsx-syndication-schema/2010"> 
     <Id>Microsoft.WinJS</Id> 
     <Version>1.0.9200.20789</Version> 
     <References /> 
    </Vsix> 
    </entry> 
</feed> 

ノートが2つのエントリはこのフィードであり、あなたが興味を持っている1は、Visual Studio 2012」で始まるタイトルの一つであること更新。"

このファイル(ここでは11.0.60610.01)に指定されたバージョンは、あなたがディスク上に持っているバージョンよりも大きい場合:

(Get-Item "${env:ProgramFiles(x86)}\Microsoft Visual Studio 11.0\common7\ide\devenv.exe").VersionInfo.ProductVersion 

次にあなたがリンク/ @更新にURLをダウンロードし、インストールしたいと思いますノード:

<link rel="update" type="text" href="http://go.microsoft.com/fwlink/?LinkID=302339"/> 

このURLは、更新されたMSIにリダイレクトする必要があります。

+0

これは問題を解決するための良い、しかしハックな方法です。 Who/whereはdevenv.exeコマンドラインスイッチにこれをすべて含める機能要求をどこに送りますか?それらが "決してgunna起こる"状況の1つであるならば、私はちょうどそれをするためにEXEを構築し、それを#Chocolateyにプッシュすることを見るかもしれません。 –

+1

うん。おそらくあなたが望んでいたAPIはありません:) vs機能要求を提出するためのどこかにユーザーボイスサイトがありますが、それはバックログの上にあるとは思えません。私はチョコレートのセルフアップデータを作成するのがクールだと思っていました。更新のためにチョコパッケージを見つけることができます。それはパッケージプロデューサーと消費者の両方が追いつくための痛みです。 –

1

Devenv Command Line Switches MSDNドキュメントに記載されている情報に基づいています。現在のところ、Visual Studioへの更新を確認/インストールするためにコマンドラインswtichを呼び出す方法はありません。

しかし、Matt Wrockは、彼の答えに素晴らしい回避策を示しています。

関連する問題