WPCubed Product Support

Run time package

How do I create a D2006 run time package?

It would be helpful if a project group was supplied with updates that includes a project for creating the design time package and a project for creating the run time package.

Also under options for these projects, the current version should be set if possible

Thank you
Russell

#1 ♥ 0
6k Views 2 users read 3 min
support

If you want to use runtime packages you can create one very easily with version5. Simply create a new package, add the units WPRTE*, WPCtr* and WPIO* (.PAS), set the option 'runtime only' and compile.

The wptools designtime package has to include that unit. I personally dislike the runtime package concept since, if copied to the system directory, can introduce version conflicts - esspecially if I provide a template runtime package which naturally is used by several programs under the same name.

Julian

#2 ♥ 0

The reason for using run time packages is to allow my regular web updates to be much smaller. I agree it's not ideal.

WRT the run time package, I compile with the units you suggest however most of these units are removed as they are already included in the required package WPTools5_D10_W32.bpl (the design time only package)

Now if both the run time and design time packages are required to be distributed why bother splitting into 2 packages. Borland recommends and I would like them to be separate to allow a smaller download.

I checked and the only unit the design time page contains is WPTools_reg

Russell

#3 ♥ 0
support

The WPTools5_D10_W32.bpl must not be distributed. If the WPCtrMemo etc files are included there delete the references. The reference to the new runtime package replaces the reference to that units. A sucessfull build of the runtime package requires the disabling of the designtime package - in any case do NOT accept the changes the IDE want to do to the runtime package.

Julian

#4 ♥ 0

Julian,
I have checked the design time package and it only includes WPTools_reg.pas. I have tried removing WPTools5_D10_W32 and adding the files you list below and get the following message 🙁

The following changes are necessary to make this package compatible with other installed packages. Choose OK to apply these changes and rebuild the package.

Add WPTools5_D10_W32.
WPTools5_D10_W32 contains implicit unit(s) WPUtil, WPOBJ_Image, GraphicEx, MZLib, GraphicColor, GraphicStrings, GraphicCompression, JPG, WPPrTab1, WPRuler.

Remove WPCTRStyleCol, WPCTRLabel, WPCTRMEMO, WPCtrPrint, WPCTRRich, WPIOWriteRTF, WPIO, WPIoANSI, WPIOCSS, WPIOHTML, WPIOReadRTF, WPIOUNICODE, WPIOWPTools, WPRTEPAINT, WPRteDefs.
Unit(s) WPCTRStyleCol, WPCTRLabel, WPCTRMEMO, WPCtrPrint, WPCTRRich, WPIOWriteRTF, WPIO, WPIoANSI, WPIOCSS, WPIOHTML, WPIOReadRTF, WPIOUNICODE, WPIOWPTools, WPRTEPAINT, WPRteDefs were found in required package WPTools5_D10_W32

If I don't accept I cannot compile.
If I do accept and compile I get a runtime bpl file which is only 23k in size.

Russell

#5 ♥ 0

Just to complete this thread - it does all work as Julian explained. I mustn't have been holding my mouth correctly 🙂

Russell

#6 ♥ 0
This category is archived. No new posts are possible.