<p>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.</p>

<p>I figured I could go back to a lab machine to debug, but it runs fine on a lab machine over Terminal Server.</p>

<p>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.</p>

<p>Has anyone else seen these problems, and how can I troubleshoot this?</p>

<p>Thanks,</p>

[{'answer_id': 15286, 'author': 'Orion Edwards', 'author_id': 234, 'author_profile': 'https://Stackoverflow.com/users/234', 'pm_score': 3, 'selected': True, 'text': "<p>I had LOTS of issues with developing installers (and software in general) for terminal server. I hate that damn thing.</p>\n\n<p>Anyway, VS Setup Projects are just .msi files, and run using the Windows installer framework.</p>\n\n<p>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.</p>\n\n<p>The easiest way to find that is to type <code>%TEMP%</code> into the windows explorer address bar - once you're there have a look for these log files, they might give you a clue.</p>\n\n<ul>\n<li>Note - Under terminal server, sometimes the logs don't go directly into <code>%TEMP%</code>, but under numbered subdirectories. If you can't find any MSIXYZ.LOG files in there, look for directories called <code>1</code>, <code>2</code>, and so on, and look in those.</li>\n</ul>\n\n<p>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</p>\n"}, {'answer_id': 289025, 'author': 'saschabeaumont', 'author_id': 592, 'author_profile': 'https://Stackoverflow.com/users/592', 'pm_score': 1, 'selected': False, 'text': '<p>Before installing, drop to a command prompt and type</p>\n\n<pre><code>CHANGE USER /INSTALL\n</code></pre>\n\n<p>Then install your software. Once the install has completed, drop back to the command prompt and type:</p>\n\n<pre><code>CHANGE USER /EXECUTE\n</code></pre>\n\n<p>Alternatively, don\'t start the installation by a double click but instead go to Add/Remove Programs and select "install software" from there. </p>\n\n<p>Good luck!</p>\n'}]
['https://Stackoverflow.com/questions/15109', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1743/']