Errors after installing in BDS2006 on Vista

contains all delphi packages mentioned below
Post Reply
cmatrix
Posts: 7
Joined: Wed Feb 14, 2007 8:52 pm

Errors after installing in BDS2006 on Vista

Post by cmatrix »

BDS 2006 (Turbo Delphi)
Vista

I just installed MadCollectionVista. On starting Delphi I get an error for every mad bpl: Can't load package...Access is denied... How do I get rid of these errors?

thanks
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Hmmmm... That sounds interesting. Can you please check NTFS security attributes for the madCollection installation folder? Just as a test please add "Everyone". You can remove it later, it's just a test to find out whether that's the problem or not.
cmatrix
Posts: 7
Joined: Wed Feb 14, 2007 8:52 pm

Post by cmatrix »

Adding "Everyone" to the DeXter folder had no effect.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Are the packages listed in the list of installed packages in the Delphi IDE? If so, are they checked there? If not, could you please try to check "madBasic_.bpl"? What happens then? If you can't check it, could you please try to load it into the editor? Of course you'll get junk into the editor, as it's not a text file. But I just want to find out whether opening and reading the file works.

Thanks!
cmatrix
Posts: 7
Joined: Wed Feb 14, 2007 8:52 pm

Post by cmatrix »

The packages are listed as installed packages in the Delphi IDE but are not checked. When I try to check "madBasic_.bpl" I get the exact same error as on starting the IDE. When I try to load it into the editor it says "You don't have permission to open this file".

No matter what perms I set on the folders they are not propagating to the files themselves. I have to add the User group to the file permissions of each bpl file. Then they all load.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

That's quite strange. I mean if the madCollection installer was able to CREATE these files, why is Delphi not able to read them? Very strange...

Anyway, can you live with the workaround to give the bpls additional permissions?

Addins permissions to folders only works if you ask Windows to propagate the added permissions to subfolders, I think. But sometimes this whole rights management system can be quite confusing... :confused:
cmatrix
Posts: 7
Joined: Wed Feb 14, 2007 8:52 pm

Post by cmatrix »

The files would have been created with the Admin account but they need to be given permissions for ordinary users to read them. It's now working for me but as more move to Vista you're probably going to see this problem again.

Now I can load Delphi but when I try to compile an app I get [Pascal Fatal Error]...F1026 File not found: 'C:\Program Files\madCollection\madExcept\DeXter\madExcept.dcu'. The weird thing is I have put 'C:\Program Files\madCollection\madExcept\DeXter' in both the Library path and the Browsing path. Again it is found when you give the dcu file read perms for Users. AFAICS C:\Program Files\ has read perms for User and it is supposed to propagate to all subfolders...Aghhh!

:crazy:
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Ok, thanks, I'll see whether I can solve this problem in one of the next builds. For now I guess you have to manually set the appropriate access rights... :?
cmatrix
Posts: 7
Joined: Wed Feb 14, 2007 8:52 pm

Post by cmatrix »

Someone from the MS groups thinks the User group should always already have read access to the Program Files group. Is it possible the madCollection installer is overwriting these perms?
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

No, madCollection is not changing NTFS rights! Not intentionally, anyway...
RobinP
Posts: 5
Joined: Sat Aug 30, 2014 9:06 am

Re: Errors after installing in BDS2006 on Vista

Post by RobinP »

Hi,
FYI - I just got this again when installing on Windows 7 for C++ Builder XE3. It seems the directories all have read access from the "Users" group, but not the actual files. I've solved it in the meantime by installing to "C:\Components", where I have other stuff that has obviously had the same problem. Robin
RobinP
Posts: 5
Joined: Sat Aug 30, 2014 9:06 am

Re: Errors after installing in BDS2006 on Vista

Post by RobinP »

Update: installing in C:\Components still didn't fix it, I had to manually change the permissions for the whole directory.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Errors after installing in BDS2006 on Vista

Post by madshi »

Sounds strange. I've no idea why that happens. The weirdest thing is that it seems to work just fine for 99.9% of all users... :confused:
Krystian
Posts: 5
Joined: Fri Aug 08, 2014 7:19 am

Re: Errors after installing in BDS2006 on Vista

Post by Krystian »

I've had similar/same issue on madExcept installation directory few months ago (XE5.2, Win7Pro64 SP1). There was also some issues with Owner of files/directories. IIRC it was after updating madExcept, but I cannot reproduce it now.
I'm not installing it in Program Files, but in C:\DelphiComponents\madCollection

I've ended up with:
- uninstalling madExcept
- removing madCollection directory (as I remember I had to take ownership of directory with "Replace owner on subcontainers and objects")
- clean install od madExcept
- and after that installation there was no changes on directories/files permissions.
Post Reply