Solved

%Homepath% and %windir% are somewhat mixed

Posted on 2006-10-24
4
760 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 55

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 55

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

691 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