BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Remove Packages From IDE Using OTA or other way

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OpenToolsAPI
View previous topic :: View next topic  
Author Message
Manfra
Guest





PostPosted: Mon Dec 04, 2006 9:01 pm    Post subject: Remove Packages From IDE Using OTA or other way Reply with quote



is there a way to unistall packes from the IDE using OTA ? i need
these to speed up the build all process, since delphi automatically
removes the package and reinstall it for each project in the project
group because this pakacge installed uses all the packages in trying to
build in the project group, so i need to write some sort of Build
command that removes that packege, builds all the packages projects of
the project group and then re-install it. These would speed up the
build all a lot.

Thank you
Back to top
Christian Wilkerson
Guest





PostPosted: Tue Dec 05, 2006 1:10 am    Post subject: Re: Remove Packages From IDE Using OTA or other way Reply with quote



The UnloadPackage method would (in theory) uninstall those packages,
however, you need the Handle of the package in order for that to work.
LoadPackage returns the handle when it's called, but it's the IDE that calls
that. So how else do you get the Handle. Sorry, I don't know.

-Christian

"Manfra" <fgmanfredini (AT) gmail (DOT) com> wrote in message
news:1165244480.008244.289800 (AT) n67g2000cwd (DOT) googlegroups.com...
Quote:
is there a way to unistall packes from the IDE using OTA ? i need
these to speed up the build all process, since delphi automatically
removes the package and reinstall it for each project in the project
group because this pakacge installed uses all the packages in trying to
build in the project group, so i need to write some sort of Build
command that removes that packege, builds all the packages projects of
the project group and then re-install it. These would speed up the
build all a lot.

Thank you
Back to top
Florent Ouchet
Guest





PostPosted: Tue Dec 05, 2006 1:22 am    Post subject: Re: Remove Packages From IDE Using OTA or other way Reply with quote



Christian Wilkerson a écrit :
Quote:
The UnloadPackage method would (in theory) uninstall those packages,
however, you need the Handle of the package in order for that to work.
LoadPackage returns the handle when it's called, but it's the IDE that calls
that. So how else do you get the Handle. Sorry, I don't know.

You can get a module handle by calling the GetModuleHandle method
(declared in Windows.pas). I don't know if it will work as expected with
packages.

--
Florent Ouchet
What I am listening http://www.pandora.com/people/outch
Back to top
Thomas Mueller
Guest





PostPosted: Wed Dec 06, 2006 1:31 am    Post subject: Re: Remove Packages From IDE Using OTA or other way Reply with quote

Hi,

Manfra wrote:

Quote:
is there a way to unistall packes from the IDE using OTA ? i need
these to speed up the build all process, since delphi automatically
removes the package and reinstall it for each project in the project
group because this pakacge installed uses all the packages in trying to
build in the project group, so i need to write some sort of Build
command that removes that packege, builds all the packages projects of
the project group and then re-install it. These would speed up the
build all a lot.

If you can live with a solution that only works from outside the ide:

1. Remove all unnecessary packages from the registry
2. call the ide with the appropriate parameters to automatically load and
build your project (I think the switch was /m for make, but you better look
it up)
3. add the packages to the registry again

MfG
twm
Back to top
TOndrej
Guest





PostPosted: Wed Dec 06, 2006 3:56 pm    Post subject: Re: Remove Packages From IDE Using OTA or other way Reply with quote

Quote:
If you can live with a solution that only works from outside the ide:

1. Remove all unnecessary packages from the registry
2. call the ide with the appropriate parameters to automatically load
and build your project (I think the switch was /m for make, but you
better look it up)

I think you mean the -b (build) switch.

Quote:
3. add the packages to the registry again

You could also prepare a "clean" registry subkey and use the -r command line
parameter to start Delphi from that subkey to rebuild, e.g.:
bds.exe -pDelphi -rBDSClean MyProjectGroup.bdsgroup

For example, my registry subkey
HKEY_CURRENT_USER\Software\Borland\BDSClean\4.0\Known Packages is clean (no
packages installed) so it loads and builds my project groups fast.

HTH
TOndrej
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OpenToolsAPI All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.