2011-06-29 144 views
0

Possible Duplicate:
How to make Installer using WCF調試安裝程序

我有一個安裝程序。它成功地重建。成功重建後,我試圖安裝.msi文件。

我得到一個錯誤:

Error 1001. Exception occurred while initializing the installation 
System.IO.FileNotFoundException: Could not load file or assembly 
'file:///c:\WINDOWS\system32\Files\Default' or one of its dependencies. Then system cannot find the file specified. 

也請讓我一些技巧有關.NET中調試安裝

回答

5

據我所知,你不能對它進行調試,因爲MSI文件不是可執行文件。它是一個安裝程序文件,Windows會自動將其作爲參數傳遞給msiexec(Windows安裝程序) - 實際執行所有工作,以及沒有源代碼的實際可執行文件。

你需要做的是登錄。使用/L*選項(更多詳細信息here)。 打開命令提示符,瀏覽到您的MSI文件的文件夾,並寫這樣的事:

msiexec /i myInstaller.msi /L* log.txt