安裝和卸載windows程式

來源:互聯網
上載者:User

安裝windows service通常有兩種工具

1.Framework目錄下的installutil.exe工具。
2.visual studio命令列工具

在這裡我要說的是當我們使用的系統是64位的系統,Framework包含1.0,2.0,3.0,3.5,4.0以及它們的64位版本時的情況。

一、使用installutil.exe

使用Visual Studio 2010建立的基於x86的4.0應用程式,在使用 installutil.exe工具安裝時,你會發現在Microsoft.NET目錄下有很多installutil.exe,包括不同版本Framework的x86和x64工具,這當然要使用32位版本的4.0的installutil.exe工具,一般在C:\Windows\Microsoft.NET\Framework\v4.0.30319這個目錄下。

使用這個工具安裝和卸載程式的命令

1.安裝。在命令列下,進入到C:\Windows\Microsoft.NET\Framework\v4.0.30319這個目錄, installutil.exe 應用程式path,比如我的F盤有一個ServiceTest.exe程式。命令則是: installutil.exe "F:\ServiceTest.exe"

2.卸載。下載只需要在應用程式名稱前面加上/u即可。比如:installutil.exe /u "F:\ServiceTest.exe"

二、使用visual studio 命令列工具

使用visual studio 2010命令列工具比較簡單,在64位系統下,visual studio 2010提供了兩個工具Visual Studio Command Prompt (2010)和Visual Studio x64 Win64 Command Prompt (2010)

第一個用於安裝卸載x86程式,第二個用於安裝卸載x64程式。
但命令有稍微不同,仍然以上面F:\ServiceTest.exe為例,開啟 Visual Studio Command Prompt (2010)。

1.安裝。installutil "F:\ServiceTest.exe"
2.卸載。installutil "F:\ServiceTest.exe" /u

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.