 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Manfra Guest
|
Posted: Mon Dec 04, 2006 9:01 pm Post subject: Remove Packages From IDE Using OTA or other way |
|
|
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
|
Posted: Tue Dec 05, 2006 1:10 am Post subject: Re: Remove Packages From IDE Using OTA or other way |
|
|
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
|
Posted: Tue Dec 05, 2006 1:22 am Post subject: Re: Remove Packages From IDE Using OTA or other way |
|
|
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
|
Posted: Wed Dec 06, 2006 1:31 am Post subject: Re: Remove Packages From IDE Using OTA or other way |
|
|
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
|
Posted: Wed Dec 06, 2006 3:56 pm Post subject: Re: Remove Packages From IDE Using OTA or other way |
|
|
| 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 |
|
 |
|
|
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
|
|