2009-10-02 115 views
0

Visual Studio 2005Windows安裝程序3.1

我開發了一個使用C#的應用程序。我創建了一個安裝應用程序,並在CD上包含了.NET Framework 2.0。我不使用ClickOnce

但是,我們的一位客戶抱怨說他們無法安裝,因爲它要求Windows Installer 3.1使用 。但是,我並沒有從安裝項目中排除這一點。

要做一個完整的測試,我決定安裝一些沒有.NET框架或Windows Installer 3.1的VMware(只是一個骷髏的Windows XP)。應用程序安裝OK。

什麼是Windows Installer 3.1?爲什麼我需要它?

回答

2

Windows安裝程序是能夠運行MSI文件的軟件。它來自Windows(從Windows 2000 SP4開始)(在某些版本中)。在每個MSI文件中,定義了最低安裝程序版本;如果MSI「太新」,安裝程序會投訴。 Windows SDK有a table顯示哪些安裝程序版本包含在Windows發行版中。

您可以獲得3.1 redistributable from Microsoft

2

您需要它來安裝.NET Framework 2.0。 請檢查this下載鏈接。

系統要求說:

系統要求

- Required Software: 

    o Windows Installer 3.0 (except for Windows 98/ME, which require Windows Installer 2.0 or later). Windows Installer 3.1 or later is recommended. 
    o IE 5.01 or later: You must also be running Microsoft Internet Explorer 5.01 or later for all installations of the .NET Framework. 

編輯:您可以在所有先決條件在安裝程序包存在於您的項目安裝項目進行確認。您可以在this CodeProject article.中找到一步一步的操作方法。