I have a setup project created by Visual Studio 2005, and consists of both a C# .NET 2.0 project and C++ MFC project, and the C++ run time. It works properly when run from the main console, but when run over a Terminal Server session on a Windows XP target, the install fails in the following way - When the Setup.exe is invoked, it immediately crashes before the first welcome screen is displayed. When invoked over a physical console, the setup runs normally.
我有一个由Visual Studio 2005创建的安装项目,它包含一个C#.NET 2.0项目和C ++ MFC项目,以及C ++运行时。从主控制台运行时它可以正常工作,但是当在Windows XP目标上通过终端服务器会话运行时,安装会以下列方式失败 - 调用Setup.exe时,它会在显示第一个欢迎屏幕之前立即崩溃。通过物理控制台调用时,安装程序正常运行。
I figured I could go back to a lab machine to debug, but it runs fine on a lab machine over Terminal Server.
我想我可以回到实验室机器进行调试,但它在终端服务器上的实验室机器上运行良好。
I see other descriptions of setup problems over Terminal Server sessions, but I don't see a definite solution. Both machines have a nearly identical configuration except that the one that is failing also has the GoToMyPC Host installed.
我看到有关终端服务器会话的设置问题的其他描述,但我没有看到明确的解决方案。两台机器的配置几乎完全相同,只是失败的机器也安装了GoToMyPC主机。
Has anyone else seen these problems, and how can I troubleshoot this?
有没有其他人看到这些问题,我该如何解决这个问题?
Thanks,
2 个解决方案
#1
2
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.
无论如何,VS Setup Projects只是.msi文件,并使用Windows安装程序框架运行。
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.
这将在错误输出时删除日志文件,它们被称为MSIc183.LOG(交换c183以获取一些随机数字和字母),它们将进入您的登录用户帐户的临时目录。
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.
找到这种方法最简单的方法是在Windows资源管理器地址栏中键入%TEMP% - 一旦你在那里查看这些日志文件,它们可能会给你一个线索。
- 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.
注 - 在终端服务器下,有时日志不会直接进入%TEMP%,而是在编号的子目录下。如果在那里找不到任何MSIXYZ.LOG文件,请查找名为1,2等的目录,然后查看这些文件。
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
1
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!
#1
2
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.
无论如何,VS Setup Projects只是.msi文件,并使用Windows安装程序框架运行。
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.
这将在错误输出时删除日志文件,它们被称为MSIc183.LOG(交换c183以获取一些随机数字和字母),它们将进入您的登录用户帐户的临时目录。
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.
找到这种方法最简单的方法是在Windows资源管理器地址栏中键入%TEMP% - 一旦你在那里查看这些日志文件,它们可能会给你一个线索。
- 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.
注 - 在终端服务器下,有时日志不会直接进入%TEMP%,而是在编号的子目录下。如果在那里找不到任何MSIXYZ.LOG文件,请查找名为1,2等的目录,然后查看这些文件。
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
1
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!