Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why won't W2000 PowerUser run Delphi 6 2

Status
Not open for further replies.

delphiman

Programmer
Dec 13, 2001
422
ZA

I am using W2000 and Delphi 6 Enterprise.

I can successfully run a D6 Project as an Administrator but if I try and load D6 and run the project from an icon dragged onto the Desktop of PowerUser with full privileges I get the following exception.

[Fatal Error] MDModel.dpr(1): File not found: 'System.pas'

Can someone please tell me why?
 
Did you install delphi on W2k with the same user...?

If not... Log on with the user you installed Delphi,
start RegEditand Save HKEY_LOCAL_USER\SOFTWare\Borland.

Then you log on with the PowerUser, and import the registry...

BE AWARE: Do it on your own risk... I have done it, and it works fine
 
Thanks for that.

But please can you be more specific.

>Did you install delphi on W2k with the same user...?

I installed D6 as the Administrator from the Administrator DeskTop (where it works) AND as PowerUser from the PowerUser Desktop (where it won't).

>If not log on with the user you installed Delphi,

Logged on as Administrator.

>and Save HKEY_LOCAL_USER\SOFTWare\Borland.

There is no HKEY_LOCAL_USER and I only have the following.

HKEY_CLASSES_ROOT
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_CURRENT_CONFIG

I tried to Save to HKEY_LOCAL_MACHINE\SOFTWARE\BORLAND but
W2K won't do it because there is no such Path. So I created a
folder called W2000 and saved HKEY_LOCAL_MACHINE to that folder
under the name HKEY_LOCAL_USER. (i.e.HKEY_LOCAL_USER\W2000

>Then you log on with the PowerUser, and import the registry...

Tried that but got the following exception.

---------------------------
Registry Editor
---------------------------
Cannot import C:\W2000\HKEY_LOCAL_USER.reg: Error accessing the registry.
---------------------------
OK
---------------------------


I'm sorry if I am being unusually slow here. :)

Terry


 
Login as a Power User, insert your Delphi CD and choose to install registry files only.

--- markus
 
And as for Nordlund's advise: i think it's clear that by HKEY_LOCAL_USER he ment HKEY_CURRENT_USER. And one more thing: don't mess with registry if you don't what exactly you are doing.

--- markus
 
McMerfy

>choose to install registry files only.

What are you talking about? :-(
My D6 Enterprise CD does not event present me with such a "choice"!


>i think it's clear that by HKEY_LOCAL_USER he ment HKEY_CURRENT_USER

Presumably you will then also think if someone says "eat an apple" you will find it "clear" that he means "eat a pear". :-( :-(

..... and having followed your advice (?) I get the following exception anyway

---------------------------
Registry Editor
---------------------------
Cannot import C:\W2000\HKEY_CURRENT_USER.reg: Not all data was successfully written to the registry. Some keys are open by the system or other processes.
---------------------------
OK
---------------------------


>don't mess with registry

If the advice given amounts to "messing with the registry" why am I given advice to do precisely that, "mess" with it? :-(

And perhaps this is the reason why MSOutlook is now behaving very strangely. :-( :-(

Is there someone else out there who might be able to give me some (sensible and usable)advice on this? :)

Thanks in advance.
 
I didn't install delphi on W2000 but I remember there must be something about it in the readme files.

My advice uninstall Delphi, and re-install it by the book, don't change the default options unless you have to. If you have to put in on a different drive, change only the drive letter. The ReadMe has important information but in most cases (me too) we read them if we are stuck.


INSTALLING FOR MULTIPLE USERS [WINNT/2000 ONLY]


[Note: This section applied only to installations on Windows
NT, 2000, and later Windows operating systems, including XP.
It does not apply to installations on Windows 95, 98, or
Millennium systems.]

The procedure for installing and uninstalling Delphi for
multiple users on Windows NT and Windows 2000 systems has
changed.

The new installation procedure no longer requires each user
to install Delphi separately. The product is installed only
once, by any user with Administrator privileges, and is
immediately available to all users of the same machine. It
is also available to any new users you may add later.

In previous releases, an Administrator installed the
product, and all other users of the same machine who needed
to use Delphi had to install the product separately using
the "Registry Only" option.

The new uninstallation procedure has also changed. The
Administrator who initially installed the product must first
uninstall it (through the Control Panel's Add/Remove
Programs applet); after that, all other users of the product
must log in and run the provided D6RegClean.exe utility in
order to remove user-specific data from the Windows
registry. (Note: D6RegClean.exe is installed to your \Bin
directory and is also available on your CD in the
\Info\Extras folder.)

In previous releases, no uninstall mechanism was provided
for users other than the Administrator who installed the
product.
Steven van Els
SAvanEls@cq-link.sr
 
hi,

Delphi cann't find the *.pas files which came along with the installation. It has something to do with the registry. The poweruser is not allowed to read the settings of the administrator. The easiest way to solve this is, start delphi go to Tools-> Enviorment options-> Tab library and delete all the library paths, if their is something and fill it with the paths to your delphi source files.

Something like this : $(DELPHI)\Bin


Steph [bigglasses]
 
Steven has got it right. The Delphi6 utility D6RegClean.exe is the key. I've had some issues with both D6Personal and D6Enterprise in this area, and the registry cleaner resolved them. e.g. Reinstall of Enterprise and the component palette didn't show afterward, as it did before. I ran the cleaner and it fixed me up.

Another work-around that should work for D6, that I've use in prior versions was to grant the user local admin rights, fix it up, then revoke the rights. (Be sure that the debugger points correctly by having the user run as local admin and set the debugger. Other things are also setup by a run of the IDE.....)

Caveats
1) You'll have to re-register your custom componets or addons, if any.
2) You'll have to re-register with Borland, because the keys that hold your registered status are also cleaned out.

-hal

** Loyal Borland Pascal User since CP/M TP 1.0 ***
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top