Delphi 2005 takes 1min 52 secs to open ?

Is there some way to significantly spped up the process of opening Delphi 2005 studio edition ?
I moved from Delphi 5 which was great to the version above but it takes forever to load as it loads the .net and other useless (to me) things I don't need.  When I installed it I had to include all of the packages or it wouldn't run.  
I'm worried that if I uninstall certain things like .net then I will have to re-install the whole program.

Alrthough I do want to learn .net eventually, right now I am a beginner programmer that is learning mainly through this site on programming and always use Delphi for win32 applications.  Once I have mastered this (in about 5000 years)b I will move on to .net and other things.

Is it worth me uninstalling this program and installing the free version Delphi 6 ?
What are my options here ?
LVL 20
Mark BradyPrincipal Data EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

_Katka_Commented:
Hi, run the Delphi with parameter -r :

x:\..\bin\bds.exe -rSpeed

It will build new profile in registry named "Speed".
You can then remove useless stuff from branches:

DotNetFramework
Known Assemblies
Known IDE Assemblies
Known IDE Packages
Known Packages
Personalities

mainly the one with C# and .NET in name also
ASP or whatever you like :)

You can still run normal Delphi (as installed)
by excluding that -r parameter. You can have
more than one profile :)

It speeded up Delphi significantly and also
work within IDE. I also recommend you
to install Delphi 2005 update #3..

regards,
Kate
Mark BradyPrincipal Data EngineerAuthor Commented:
Firstly can you give me the exact syntax to put in my shortcut (or batch file)

-r :

x:\..\bin\bds.exe -rSpeed  // doesn't make sense sorry.  
I tried running a batch file that said.....

bds.exe -rSpeed -x:

that shaved it down to 1min 10sec but it still loads all the useless packages.....   .net etc

Hmmm can you elelaborate on your answer ?
_Katka_Commented:
Ok, let's take it one step at time:

1) you'll run "c:\program files\borland\bds3.0\bin\bds.exe -rNameOfYourProfile" or wherever your bds is installed
 - nothing will happen to the speed of loading because you're loading your old settings yet this time
 - but the new registry "HKEY_CURRENT_USER\Software\Borland\NameOfYourProfile" is created
2) close the IDE after it loads (we wanted just to have registry keys created)
3) use registry editor to change keys:

HKEY_CURRENT_USER\Software\Borland\NameOfYourProfile\DotNetFramework
HKEY_CURRENT_USER\Software\Borland\NameOfYourProfile\Known Assemblies
HKEY_CURRENT_USER\Software\Borland\NameOfYourProfile\Known IDE Assemblies
HKEY_CURRENT_USER\Software\Borland\NameOfYourProfile\Known IDE Packages
HKEY_CURRENT_USER\Software\Borland\NameOfYourProfile\Known Packages
HKEY_CURRENT_USER\Software\Borland\NameOfYourProfile\Personalities
 
 - simply delete packages by name which you should expect to be useless for you (C#, ASP or .NET parts, Together or Starteam support, whatever)

4) close registry editor and run IDE again with that parameter (better is to have it in shortcut itself)
5) now the packages you've deleted won't be loaded, dependently on what and how many of them was deleted the loading process is speeded-up
6) if you want to use your old settings just skip the parameter "-rNameOfYourProfile"

regards,
Kate

Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

_Katka_Commented:
Delphi is loading 4-5 times faster for me (~20s) and memory usage is as low as 30% of original load:

I've deleted those keys:

Personalities:

C#Builder
Delphi.NET

Known Assemblies:

Borland.CSharp.dll
Borland.ECO.*.dll
Borland.Studio.Janeva.dll
Borland.Studio.Starteam.dll
Borland.Studio.Together.dll
Borland.Studio.Unittest.dll
Borland.Together.EcoDiagram.dll

Known IDE Packages:

aspcside90.bpl - ASP C#
aspdelphiide90.bpl - ASP Delphi
Borland.Eco.CS.*.bpl - ECO components
caliberide90.bpl - Caliber RM
crystalide90.bpl - Crystal Decisions
cside90.bpl - C# IDE support
delphidotnetide90.bpl - Delphi .NET IDE support
dotnetcoreide90.bpl - .NET IDE support
TGIDE90.BPL - Borland Together integration
vbide90.bpl - Visual Basic IDE support
vcldotnetdesignide90.bpl - VCL for .NET IDE support

choose what's coresponding to your situation, but
these are settings for clear Delphi 7 sucessor :) or
choose more to get rid of other things..

hope this helped
regards,
Kate
_Katka_Commented:
Three more notes:

1) as I already said: it is a wise think to have Delphi update #3 installed it speeded-up the IDE noticably
2) use "classic undocked" desktop profile it's faster a bit :)
3) alternatively don't use too much windows displayed (Model viewer, Data explorer,..) unless you need them ofcourse :))

regards,
Kate
Mark BradyPrincipal Data EngineerAuthor Commented:
Well you may laugh at me but consider what you posted about the registry...

3) use registry editor to change keys:

HKEY_CURRENT_USER\Software\Borland\NameOfYourProfile\DotNetFramework
HKEY_CURRENT_USER\Software\Borland\NameOfYourProfile\Known Assemblies
HKEY_CURRENT_USER\Software\Borland\NameOfYourProfile\Known IDE Assemblies
HKEY_CURRENT_USER\Software\Borland\NameOfYourProfile\Known IDE Packages
HKEY_CURRENT_USER\Software\Borland\NameOfYourProfile\Known Packages
HKEY_CURRENT_USER\Software\Borland\NameOfYourProfile\Personalities

The key word being 'change'.............. Well I must be tired because I deleted those keys and now I have mega trouble.
Geeze !

Ok so I installed Delphi 6 personal and it works fine for my needs only I'm used to a few of the delights of Studio 2005.

Like how do install the package (if it needs to be installed) that uses 'XpMan'  as I set my projects to use it ?
Version 6 looks for a .bpl file for it's packages but I only have on my pc '.dcu' files as in 'XpMan.dcu' .

I don't mind usuing this older version as it loads in about 4 seconds (YES!) but would like to dress it up a little.

I'll give the point to help me out here
BlackTigerXCommented:
you can also try using this tool:

Delphi Settings Manager, you can get it with complete source code at:

http://www.codeline.net/
Mark BradyPrincipal Data EngineerAuthor Commented:
Actually if I run Delphi 2005 without the -r switch it all works fine but I'd still like to know how to install XPMan into my Delphi 6 version if someone could let me know would be great.
_Katka_Commented:
Hi, try to make new package
and then add the files you have
to it..The build & install..

regards,
Kate
Mark BradyPrincipal Data EngineerAuthor Commented:
could you be more specific please.  I have not made a new package before.  Also, why not just load the package that uses xpman instead of creating a new one ?
_Katka_Commented:
1) from menu select File->New->Other->Package
2) package manager appears, press "Add" button
3) the form appears, select "Browse..." on the first tab (already selected)
4) browse the files (don't forget to change filter to compiled unit *.dcu)
5) after selection confirm
6) now just press "Install" from package manager
7) the package should be installed

regards,
Kate
Mark BradyPrincipal Data EngineerAuthor Commented:
Katka
I tried the above but when I went to 'Install' package it gave me this error....

[Fatal Error] File not found: 'c:\program files\borland\bds\3.0\lib\XPMan.pas'

Now that path above is the path for my DElphi 2005 version but even in that version I have no file call 'xpman.pas'.  In fact no where on my computer.  Delphi 2005 uses the package fine but version 6 doesn't like it.  Any ideas on how to fix this ?

Points increased to 100 although I'm going to accept your answer to my original question but if someone other than you fixes this problem then I'll split 50 points each.
_Katka_Commented:
Here's your XPMan.pas:

*******
unit XPMan;
{$WEAKPACKAGEUNIT ON}
interface

uses
  SysUtils, Classes;

type
  TXPManifest = class(TComponent)
  end;

{$R WindowsXP.res}

implementation

end.
*******

yeah, that's all :)

regards,
Kate

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
_Katka_Commented:
Note: XPMan is not included in free version of Delphi
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.