上個月(2016年3月)我正在構建InstallShield 2015項目,其中一個組件的.NET Installer Class
屬性設置爲Yes
,並且一切似乎都運行良好。這個月我在運行同樣的安裝時突然開始收到錯誤1001。看到這個錯誤來自這個.NET Installer Class
組件,我決定關閉.NET Installer Class
屬性作爲測試。確實解決了這個問題。但是我們有另一個構建系統,我們可以構建完全相同的代碼,並且一切仍然有效,這表明存在環境問題。在_isconfig.xml中supportedRuntime的值在ManagedInstall期間導致錯誤1001
經過一些額外的研究,我發現文件_isconfig.xml
顯示了兩個系統之間屬性的不同值,我認爲這是與問題密切相關的指標。其他研究表明,這個版本可能來自InstallUtilLib.dll
,這確實與我在兩個系統上看到的版本_isconfig.xml
相符。該安裝與<supportedRuntime version="v4.0.30319"/>
正常工作,並與<supportedRuntime version="v4.6.1055"/>
失敗。順便說一句,較新的InstallUtilLib.dll
的日期是2015年11月5日,所以我猜這個問題理論上可能是自那之後的任何更新的結果。
我看到我的系統最近安裝了一些.NET Framework更新,但在Google搜索影響InstallUtilLib.dll
的Microsoft更新時,我會空手而歸。那麼我如何確定這個問題來確定原因和/或解決方案呢?
MSI日誌報告錯誤是這樣的:
MSI (s) (58:14) [14:17:27:958]: Executing op: CustomActionSchedule(Action=_1A0C0EC89595D04ACFD3852EF29B12BD.install,ActionType=3073,Source=BinaryData,Target=ManagedInstall,CustomActionData=/installtype=notransaction /action=install /LogFile= "M:\MfgSys\System\FourthShift.SDKAdministrator.dll" "C:\Users\bmarty\AppData\Local\Temp\{C449BDEA-AA73-4FDE-A6AF-9116E1D7DEBB}\_isconfig.xml")
MSI (s) (58:20) [14:17:27:973]: Invoking remote custom action. DLL: C:\windows\Installer\MSI7282.tmp, Entrypoint: ManagedInstall
Error 1001.
安裝SP1解決了這個問題。 – BlueMonkMN