Skip to content

Commit

Permalink
增加update信息
Browse files Browse the repository at this point in the history
  • Loading branch information
alantsai committed Nov 22, 2018
1 parent daa2541 commit c27c73f
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ Tags: ["visual studio"]
RedirectFrom: 2017/03/visualstudio2017-offline-install.html
Series: []
---
<section> <p>「工欲善其事,必先利其器」作為.Net 開發者來說最大的利器就是Visual Studio。 </p> <p>最近Visual Studio剛過完20歲週年並且發佈了最新版本VS 2017,當然要第一時間來試試看到底可以對開發增加多少幫助,這個時候會發現,怎麼都找不到離線安裝的版本了呢? </p> <p>這篇將會介紹如何建立離線安裝版本的安裝檔。 </p></section><section><a id="KMContentPageTopID" name="KMContentPageTopID"></a> <div id="divKMOutline" style="border-top-style: groove; border-left-style: none; border-bottom-style: groove; border-right-style: none; margin: 10px 0px"> <ul style="margin: 0px 0px 0px 20px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656480" ;="">Visual Studio 的安裝方式</a> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656558" ;="">建立離線安裝包</a><br> <ul style="margin: 0px 0px 0px 30px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656697" ;="">1. 下載對應版本的exe檔案</a><br> <ul style="margin: 0px 0px 0px 30px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656587" ;="">直接連接</a> </li></ul> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656419" ;="">2. 建立離線安裝包</a><br> <ul style="margin: 0px 0px 0px 30px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656819" ;="">檔案大小</a> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656452" ;="">VS 2013/2015的離線安裝建立方式</a></li></ul></li></ul> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656670" ;="">其他參數</a><br> <ul style="margin: 0px 0px 0px 30px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656273" ;="">下載特定語系</a><br> <ul style="margin: 0px 0px 0px 30px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656846" ;="">其他語系編號</a> </li></ul> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656422" ;="">只下載特定功能</a><br> <ul style="margin: 0px 0px 0px 30px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540657258" ;="">Component Id 清單</a> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540657197" ;="">其他更多參數</a></li></ul></li></ul> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540657337" ;="">如何更新離線安裝包</a> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540657721" ;="">結語</a> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540657381" ;="">其他資訊</a></li></ul></div></section> <a name="more"></a><section> <h2 id="WizKMOutline_1489280540656480">Visual Studio 的安裝方式</h2> <p>現在軟體開發講究都是快速Release,這個從VS近年來的更新速度完全看的出來,為了趕上這些迭代更新的速度,VS的安裝方式也越來越不一樣。 </p> <p>從早期的光碟方式,到後來變成下載ISO檔案居多,最後到完全透過一個exe檔案邊安裝邊下載的模式 (VS 2017)。 </p> <p>透過EXE邊下載邊安裝好處是未來有更新任何部分,可以使用同一個exe來執行更新(想一下如果要快速迭代更新要建立多少個ISO檔案),但是壞處是如果要裝在一個網路速度很慢或者沒有網路環境的地方,就gg了。 </p> <p>幸好雖然VS 2017只有提供exe安裝方式 - 但是提供了方法讓我們可以建立自己的離線安裝包。 </p></section><section> <h2 id="WizKMOutline_1489280540656558">建立離線安裝包</h2> <p>要建立離線安裝包非常簡單,只需要: </p> <ol> <li>下載對應版本的exe安裝檔<br> </li><li>透過傳入參數的方式來建立離線安裝<br></li></ol> <h3 id="WizKMOutline_1489280540656697">1. 下載對應版本的exe檔案</h3> <p>可以到 Visual Studio的官網(<a href="https://www.visualstudio.com/downloads/">https://www.visualstudio.com/downloads/</a>)選擇要裝的版本下載。 </p> <div class="bs-callout bs-callout-info"> <h4 id="WizKMOutline_1489280540656587">直接連接</h4> <ol> <li>Community - <a href="https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&amp;rel=15">https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&amp;rel=15</a><br> </li><li>Professional - <a href="https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Professional&amp;rel=15">https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Professional&amp;rel=15</a><br> </li><li>Enterprise - <a href="https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Enterprise&amp;rel=15">https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Enterprise&amp;rel=15</a><br></li></ol></div> <h3 id="WizKMOutline_1489280540656419">2. 建立離線安裝包</h3> <p>下載下來之後,用cmd執行執行以下語法即可: </p><pre class="brush: plain;"><code class="language-none line-numbers">vs_community.exe --layout c:\vs2017offline</code></pre>
<section> <p>「工欲善其事,必先利其器」作為.Net 開發者來說最大的利器就是Visual Studio。 </p> <p>最近Visual Studio剛過完20歲週年並且發佈了最新版本VS 2017,當然要第一時間來試試看到底可以對開發增加多少幫助,這個時候會發現,怎麼都找不到離線安裝的版本了呢? </p> <p>這篇將會介紹如何建立離線安裝版本的安裝檔。 </p></section>
<section>
<div class="bs-callout bs-callout-info">
<h4>更新記錄</h4>
<ul>
<li>2018/11/20 - 增加 需要注意下載的位置不要有空格 - 感謝 謝佳宏 的回饋</li>
</ul>
</div>
</section>
<section><a id="KMContentPageTopID" name="KMContentPageTopID"></a> <div id="divKMOutline" style="border-top-style: groove; border-left-style: none; border-bottom-style: groove; border-right-style: none; margin: 10px 0px"> <ul style="margin: 0px 0px 0px 20px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656480" ;="">Visual Studio 的安裝方式</a> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656558" ;="">建立離線安裝包</a><br> <ul style="margin: 0px 0px 0px 30px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656697" ;="">1. 下載對應版本的exe檔案</a><br> <ul style="margin: 0px 0px 0px 30px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656587" ;="">直接連接</a> </li></ul> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656419" ;="">2. 建立離線安裝包</a><br> <ul style="margin: 0px 0px 0px 30px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656819" ;="">檔案大小</a> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656452" ;="">VS 2013/2015的離線安裝建立方式</a></li></ul></li></ul> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656670" ;="">其他參數</a><br> <ul style="margin: 0px 0px 0px 30px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656273" ;="">下載特定語系</a><br> <ul style="margin: 0px 0px 0px 30px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656846" ;="">其他語系編號</a> </li></ul> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540656422" ;="">只下載特定功能</a><br> <ul style="margin: 0px 0px 0px 30px"> <li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540657258" ;="">Component Id 清單</a> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540657197" ;="">其他更多參數</a></li></ul></li></ul> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540657337" ;="">如何更新離線安裝包</a> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540657721" ;="">結語</a> </li><li><a style="font-size: 15px; line-height: 1.6" href="#WizKMOutline_1489280540657381" ;="">其他資訊</a></li></ul></div></section> <a name="more"></a><section> <h2 id="WizKMOutline_1489280540656480">Visual Studio 的安裝方式</h2> <p>現在軟體開發講究都是快速Release,這個從VS近年來的更新速度完全看的出來,為了趕上這些迭代更新的速度,VS的安裝方式也越來越不一樣。 </p> <p>從早期的光碟方式,到後來變成下載ISO檔案居多,最後到完全透過一個exe檔案邊安裝邊下載的模式 (VS 2017)。 </p> <p>透過EXE邊下載邊安裝好處是未來有更新任何部分,可以使用同一個exe來執行更新(想一下如果要快速迭代更新要建立多少個ISO檔案),但是壞處是如果要裝在一個網路速度很慢或者沒有網路環境的地方,就gg了。 </p> <p>幸好雖然VS 2017只有提供exe安裝方式 - 但是提供了方法讓我們可以建立自己的離線安裝包。 </p></section><section> <h2 id="WizKMOutline_1489280540656558">建立離線安裝包</h2> <p>要建立離線安裝包非常簡單,只需要: </p> <ol> <li>下載對應版本的exe安裝檔<br> </li><li>透過傳入參數的方式來建立離線安裝<br></li></ol> <h3 id="WizKMOutline_1489280540656697">1. 下載對應版本的exe檔案</h3> <p>可以到 Visual Studio的官網(<a href="https://www.visualstudio.com/downloads/">https://www.visualstudio.com/downloads/</a>)選擇要裝的版本下載。 </p> <div class="bs-callout bs-callout-info"> <h4 id="WizKMOutline_1489280540656587">直接連接</h4> <ol> <li>Community - <a href="https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&amp;rel=15">https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&amp;rel=15</a><br> </li><li>Professional - <a href="https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Professional&amp;rel=15">https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Professional&amp;rel=15</a><br> </li><li>Enterprise - <a href="https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Enterprise&amp;rel=15">https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Enterprise&amp;rel=15</a><br></li></ol></div> <h3 id="WizKMOutline_1489280540656419">2. 建立離線安裝包</h3> <p>下載下來之後,用cmd執行執行以下語法即可: </p><pre class="brush: plain;"><code class="language-none line-numbers">vs_community.exe --layout c:\vs2017offline</code></pre>
<dl>
<dt>vs_community.exe
</dt><dd>下載下來的exe,不同版本名稱不同,這邊用community做範例
Expand All @@ -16,7 +25,10 @@ Series: []
</dd><dd><br>
</dd><dt>c:\vs2017offline
</dt><dd>這個則是要安裝到哪裡的路徑,可以自己改變要存在哪裡
</dd><dd></dd></dl>
<div class="bs-callout bs-callout-warning">
請注意儲存到哪裏的路徑避免有空白,如果路徑有空白的話可能需要透過引號包起來,避免有問題。
</div>
</dd></dl>
<p>這個時候會出現一個請等待的畫面。 </p><figure><a href="https://lh3.googleusercontent.com/-awSvLqsLHfc/WMSiSUulwaI/AAAAAAAAVpk/DmheTXcCPDg/s1600-h/image%25255B2%25255D.png"><img title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="/posts/migrate/2017-03-12-visualstudio2017-offline-install_Asset/image_thumb[2](10).png" width="704" height="304" class="img-responsive"></a> <figcaption>請等待</figcaption></figure>
<p>然後會在開啟一個cmd的視窗,並且會自動開始下載: </p><figure><a href="https://lh3.googleusercontent.com/-6_2ZzPQN9tI/WMSiVcrxUuI/AAAAAAAAVps/woyJObZ58Jc/s1600-h/image%25255B4%25255D.png"><img title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="/posts/migrate/2017-03-12-visualstudio2017-offline-install_Asset/image_thumb[4](7).png" width="704" height="356" class="img-responsive"></a> <figcaption>下載中</figcaption></figure>
<p>這個時候就可以放著給他跑了,當下載完成,<em>cmd會自動關掉,不會有任何訊息說下載完成</em>。 </p>
Expand Down

0 comments on commit c27c73f

Please sign in to comment.