Windows Installer 可轉散發套件
Windows Installer 4.5 和更早版本可作為可轉散發軟體更新套件。 請參閱 發行的 Windows Installer 版本 一節,以判斷哪些產品附帶這些 Windows Installer 版本。 版本可轉散發的更新套件會在隨附於特定 Windows Installer 版本的產品發行之後提供。
注意
Windows Installer 5.0 沒有再發行套件。 此版本隨附於 Windows 7、Windows Server 2008 R2 及之後的用戶端和伺服器版本(包括 Windows 10)。
取得 Windows Installer 可再發行套件(4.5 和更早版本)
您可以在 Microsoft 下載中心找到所有可用的 Windows Installer 再發行套件。
Windows Installer 4.5 可再發行套件
Windows Installer 4.5 再發行套件 可供使用:https://go.microsoft.com/fwlink/p/?LinkID=101159。
檔名 | 操作系統版本 | 建築 |
---|---|---|
Windows6.0-KB942288-v2-x86.MSU | Windows Vista Windows Vista 含 Service Pack 1(SP1) Windows Server 2008 |
x86 (32 位) |
Windows6.0-KB942288-v2-x64.MSU | Windows Vista Windows Vista 附帶 Service Pack 1(SP1) Windows Server 2008 |
x86-64 (64 位) |
Windows6.0-KB942288-v2-ia64.MSU | Windows Vista Windows Vista 含 Service Pack 1(SP1) Windows Server 2008 |
Itanium (64 位) |
WindowsXP-KB942288-v3-x86.exe | Windows XP with Service Pack 2 (SP2) Windows XP with Service Pack 3 (SP3) |
x86 (32 位) |
WindowsServer2003-KB942288-v4-x86.exe | Windows Server 2003 附 Service Pack 1(SP1) Windows Server 2003 與 Service Pack 2 (SP2) |
x86 (32 位) |
WindowsServer2003-KB942288-v4-x64.exe | Windows Server 2003 含 Service Pack 1 (SP1) Windows Server 2003 搭配 Service Pack 2(SP2) |
x86-64 (64 位) |
WindowsServer2003-KB942288-v4-ia64.exe | Windows Server 2003 含 Sevice Pack 1 (SP1) Windows Server 2003 隨附 Service Pack 2 (SP2) |
Itanium (64 位) |
Windows Installer 4.0 再發行套件
- 沒有用於安裝 Windows Installer 4.0 的可再發佈套件。 此版本的 Windows Installer 隨附於 Windows Vista。
Windows Installer 3.1 可轉散發套件
- Windows Installer 3.1 可再分發套件 (v2) 可在這裡取得:https://www.catalog.update.microsoft.com/Search.aspx?q=893803。
注意
如果您使用 SP1 安裝 Windows Server 2003 或舊版的可轉散發套件,升級至 Windows Installer 3.1,您可能也需要安裝適用於 Windows Server 2003 Service Pack 1 (KB898715) 的
Update,以取得 windows Installer 3.1 可轉散發套件 (v2) 中的所有可用更新。
Windows Installer 3.0 可轉散發套件
- 您可以在這裡取得 Windows Installer 3.0 可再發行套件:WindowsInstaller-KB884016-v2-x86.exe。
Windows Installer 2.0 可重新分發套件
- Windows NT 4.0 和 Windows 2000 的 Windows Installer 2.0 可再發佈版本供使用:,instmsi.exe,。
注意
Windows Installer 2.0 針對可再發行組件使用先前的命名慣例:Instmsi.exe。 在 Windows 2000 上安裝或升級至 Windows Installer 2.0 的可轉散發套件不應用於在 Windows Server 2003 和 Windows XP 上安裝或升級 Windows Installer 2.0。
安裝 Windows Installer 可再發行套件(4.5 和更早版本)
Windows Installer 4.5 會以 .msu 檔案的形式提供給 Windows Vista 和 Windows Server 2008 操作系統,並且應該使用 Windows Update 獨立安裝程式 安裝(Wusa.exe)。
您可以使用下列命令行語法和選項來安裝適用於 Windows XP 和 Windows Server 2003 操作系統的 Windows Installer 4.5 可轉散發套件。
您可以使用下列命令行語法和選項來安裝 Windows Installer 3.1 和 Windows Installer 3.0 可轉散發套件。
語法
請使用以下語法,在 Windows XP 和 Windows Server 2003 上安裝 Windows Installer 4.5 的可轉散發套件。
<Name of the Redistributable>\[<options>\]*
Command-Line 選項
Windows Installer 可轉散發軟體更新套件會使用下列不區分大小寫的命令行選項。
選擇 | 描述 |
---|---|
/norestart | 防止可轉散發套件在即使需要取代安裝過程中正在使用的檔案時,仍然要求使用者重新啟動。 如果使用此選項叫用更新套件,則如果必須取代正在使用的檔案,則會傳回 ERROR_SUCCESS_REBOOT_REQUIRED。 如果它不需要取代正在使用的檔案,則會傳回 ERROR_SUCCESS。 如需有關延遲重新啟動的其他資訊,請參閱備註部分。 |
/安靜 | 供將 Windows Installer 重新發佈為引導程式的一部分的應用程式使用。 使用者介面 (UI) 不會向用戶顯示。 啟動載入應用程式應該檢查傳回碼,以判斷是否需要重新啟動才能完成 Windows Installer 的安裝。 |
/幫助 | 顯示所有可用選項的說明。 |
Windows Vista 和 Windows Server 2008 上的延遲重新啟動
/norestart 命令行選項可防止 wusa.exe 重新啟動計算機。 不過,如果 MSU 套件正在更新的檔案正在使用中,則除非使用者重新啟動電腦,否則不會將封裝套用至計算機。 這表示使用 Windows Vista 和 Windows Server 2008 可轉散發 Windows Installer 4.5 的應用程式,在重新啟動電腦之前,無法使用 Windows Installer 4.5 功能。
Windows XP 和 Windows Server 2003 上的延遲重新啟動
建議在使用更新套件時停止 Windows Installer 服務。 當套件以完整UI模式執行時,它會偵測 Windows Installer 服務是否正在執行,並要求使用者停止服務。 如果用戶繼續而不停止服務,更新會取代 Windows Installer。
自啟動 使用可轉散發套件安裝 Windows Installer 的應用程式時,除了安裝應用程式所需的重新啟動之外,可能還需要額外的系統重新啟動。 只有在需要排除因安裝正在使用的檔案而造成的額外重新啟動時,才建議使用延遲重新啟動選項。 開發人員應該在其設定應用程式中執行下列動作,以使用延遲重新啟動選項。
使用 /norestart 命令行選項呼叫可轉散發套件。
將傳回 ERROR_SUCCESS 或 ERROR_SUCCESS_REBOOT_REQUIRED 視為成功。
在應用程式的套件上執行 Msiexec,並執行應用程式專屬的其他設定指令碼。 如果安裝程式應用程式使用 MsiInstallProduct,則應用程式必須從系統目錄載入MSI.DLL。 如果未發生重新啟動並且傳回可轉散發套件 ERROR_SUCCESS_REBOOT_REQUIRED,則要求使用者重新啟動以完成 Windows Installer 二進位檔的設定。 如果重新啟動發生,則不需要其他步驟。
注意
在可轉散發套件傳回成功之後,在新的MSI.DLL上呼叫 LoadLibrary 的應用程式,必須確定程式中尚未載入舊版的 MSI.DLL。 如果載入了舊版本的 MSI.DLL,在呼叫新 MSI.DLL 的 LoadLibrary 之前,必須先從程序位址空間釋放它。
如需詳細資訊,請參閱 Windows Installer 啟動載入。