問題描述
Visual Studio 2005 安裝項目安裝在終端服務器上崩潰 (Visual Studio 2005 Setup project install crashes over Terminal Server)
我有一個由 Visual Studio 2005 創建的安裝項目,由 C# .NET 2.0 項目和 C++ MFC 項目以及 C++ 運行時組成。從主控制台運行時它可以正常工作,但在 Windows XP 目標上的終端服務器會話上運行時,安裝會以下列方式失敗 ‑ 調用 Setup.exe 時,它會在顯示第一個歡迎屏幕之前立即崩潰. 通過物理控制台調用時,設置運行正常。
我想我可以回到實驗室機器進行調試,但它在終端服務器上的實驗室機器上運行良好。
我看到其他關於終端服務器會話設置問題的描述,但我沒有看到明確的解決方案。
參考解法
方法 1:
I had LOTS of issues with developing installers (and software in general) for terminal server. I hate that damn thing.
Anyway, VS Setup Projects are just .msi files, and run using the Windows installer framework.
This will drop a log file when it errors out, they're called MSIc183.LOG (swap the c183 for some random numbers and letters), and they go in your logged‑in‑user account's temp directory.
The easiest way to find that is to type %TEMP%
into the windows explorer address bar ‑ once you're there have a look for these log files, they might give you a clue.
- Note ‑ Under terminal server, sometimes the logs don't go directly into
%TEMP%
, but under numbered subdirectories. If you can't find any MSIXYZ.LOG files in there, look for directories called1
,2
, and so on, and look in those.
If you find a log file, but can't get any clues from it, post it here. I've looked at more than I care to thing about, so I may be able to help
方法 2:
Before installing, drop to a command prompt and type
CHANGE USER /INSTALL
Then install your software. Once the install has completed, drop back to the command prompt and type:
CHANGE USER /EXECUTE
Alternatively, don't start the installation by a double click but instead go to Add/Remove Programs and select "install software" from there.
Good luck!
(by Mike、Orion Edwards、saschabeaumont)