我的開源: UnInstaller for Windows(VBScript)

來源:互聯網
上載者:User
簡介

        要卸載一個安裝的軟體,需要知道它的卸載資訊,大多數軟體在安裝時都會在Registry中註冊卸載資訊。一般情況,對於使用MSI方式安裝的軟體,都使用一個Key來記錄,並可使用下面命令卸載,可是這個key不好記憶,也因不同版本而不同,很不容易管理;另外使用msiexec卸載軟體,需要一個一個地進行,不能同時運行;而且使用Windows的卸載介面不適合管理多電腦環境。

msiexec /x {key}

        使用軟體的名稱來卸載軟體,更加直觀和方便,這就是本指令碼的初衷。

        本指令碼適用於Windows XP, Vista, 7,x86和x64版本

功能:

本指令碼實現以下一些功能:

  • 列表:列出所有已安裝的程式資訊,資訊包括:{key},軟體名稱,安裝日期,主要版本,次版本,估計大小,卸載Version命令,發行者,顯示版本,和安裝路徑。並且可以列出指定名稱/版本等程式資訊的程式:通過給定的軟體名稱,版本等過濾選項,顯示該軟體的程式資訊。
  • 列卸載資訊:列出指定名稱/版本等資訊的程式卸載資訊,通過給定的軟體名稱,版本等過濾選項,顯示軟體名稱和卸載命令。
  • 卸載:根據指定名稱/版本等資訊卸載程式:通過給定的軟體名稱,版本等過濾選項,卸載該(多個)軟體。
過濾選項:

        目前支援對軟體名稱(Display Name),主要版本(Major Version),次版本(Minor Version),顯示版本(Display Version)作為過濾選項,使用者可以通過制定這些過濾選項的一個或者多個的組合,來找到所要的軟體資訊。

卸載選項:

        客戶可以指定卸載程式的選項,以適合自己的情況。比如: MSI的安靜卸載選項可能使用:

/quiet /norestart
或者
/qr /norestart

對於其它卸載程式,可能使用/s等。

 

下載:

        本指令碼使用GNU GPL v2協議方式共用,在Google項目裡下載源碼。

軟體說明資訊:

' ---------------------------------------------------------------------------' Name: Uninstaller for Windows'' Version 0.1' Support Windows Xp, Vista, 7 (x86 or x64)'' History:'    Created: May 14, 2012'    Updates: June 20, 2012: Initial'' Description: '    This script list/test/uninstall a program. User can provide commands/options'    to specify program to be operated.'    For help, run: cscript Uninstaller.vbs /h'' Copyright (c) 2012, Tony Liu'' This program is free software; you can redistribute it and/or' modify it under the terms of the GNU General Public License' as published by the Free Software Foundation; either version 2' of the License, or (at your option) any later version.'' This program is distributed in the hope that it will be useful,' but WITHOUT ANY WARRANTY; without even the implied warranty of' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the' GNU General Public License for more details.'' You should have received a copy of the GNU General Public License' along with this program; if not, write to the Free Software' Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.'' Contact: Tonyliu2ca@gmail.com'

 

Tony Liu

June 2012

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.