Solved

%Homepath% and %windir% are somewhat mixed

Posted on 2006-10-24
4
749 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 53

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 53

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Join & Write a Comment

Suggested Solutions

I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now