Solved

%Homepath% and %windir% are somewhat mixed

Posted on 2006-10-24
4
753 Views
Last Modified: 2008-02-01
On a 2003 server that has been upgraded from 2000 server (long ago, no problems so far), suddenly several installations that should write into c:\winnt started writing into %homedir%\windows !? %homepath% is c:\documents and settings\username.
The variables are all in the expected state and healthy, that is echo %windir% for example still is c:\winnt

I am really worried why it uses %homepath%\windows - since it is an upgrade, the directory windows has never existed.
Also some applications don't work anymore since they are looking for files in %homepath%\windows instead of c:\winnt.

Any suggestions were to start looking?
0
Comment
Question by:McKnife
  • 2
  • 2
4 Comments
 
LVL 28

Accepted Solution

by:
Michael Pfister earned 500 total points
ID: 17795003
Have you changed the terminal services mode from "Remote Administration mode" to "Application Server mode"?
If yes, you need to switch to install mode before installing any app. Either install via "Add/Remove programs" or issue a

chgusr /install

on the command line before starting your install and a

chgusr /execute

afterwards.

Hope it helps.

Michael

PS:


"Installation Mode
If you put a user's session in installation mode before you install an application, the application is installed in the %SystemRoot% directory instead of the user's home directory. If a user's session is in installation mode, all changes that are made to an application's INI files are written to this central location. Putting the session in installation mode permits Terminal Server to keep track of the user-specific application registry entries and any INI files that the application may install during installation. This permits Terminal Server to automatically propagate these registry keys and files to each user as they are needed by applications while they are in execute mode. After you install an application, return the user's session to execute mode to avoid writing user-specific data to the initial user-global installation. If a session is in installation mode when you install an application, the following steps occur"

Source: http://support.microsoft.com/kb/186498/en-us
0
 
LVL 54

Author Comment

by:McKnife
ID: 17797233
Hi mpfister,
so you read about my other problem? It is the same server indeed, so I suppose you are right.
Problem came up initially with a part of an application that had been installed a long time ago before TS were installed. But, when you install TS, the wizard alerts you that some apps might have to be reinstalled - and I was wondering why everything still worked...
Today I had no time, maybe tomorrow I'll be back.
Thanks
0
 
LVL 54

Author Comment

by:McKnife
ID: 17802509
You were perfectly right, thanks.
the application that started the trouble (after TS installation) however is even incompatible with TS Mode. There is no way to get it running in application mode, although I reinstalled it, but the rest is ok. I will contact the support.
0
 
LVL 28

Expert Comment

by:Michael Pfister
ID: 17812306
Glad it helped to track down the prob.

Michael
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us need to configure DHCP server(s) in their environment. We can do that simply via DHCP console on server or using MMC snap-in on each computer with Administrative Tools installed in a network. But what if we have to configure many DHCP ser…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question