Recent

Author Topic: [SOLVED] ZipFilePkg  (Read 1890 times)

Cliff48

  • Jr. Member
  • **
  • Posts: 51
[SOLVED] ZipFilePkg
« on: May 26, 2015, 01:10:15 am »
I am trying to install ZipFilePkg but it shows FPCAdds not found.

Searching, I found that FPCadds was moved to Lazutils late last year and that isnt in the uses clause.

How do I unpack a Package, make the change ... and repackage it for install?

Thanks in advance for any help.
« Last Edit: May 27, 2015, 05:51:11 am by Cliff48 »
Laz Ver 1.4.0  FPC 2.6.4 SVN 48774
Win 7 Ultimate SP1
Intel I7-2600 CPU @  3.40GHZ 8GB Ram 64bit OS

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: ZipFilePkg
« Reply #1 on: May 26, 2015, 08:17:31 pm »
Load the package
----------------
Package -> Open Package File (lpk) ... (open zipfilepkg.lpk)

Add a new dependency for the package
------------------------------------
Add other items (main screen option for the concerned package)  [1]
 -> New Requirement -> Package Name
 -> select "LazUtils" in the combobox or enter it manually,
 -> Create New Requirement

You should now see LazUtils in the "Required Packages" section (main screen option for the concerned package), just before FCL (>=1.0)  [2]

Save modified package
---------------------
Save (main screen option for the concerned package)  [3]

Your zipfilepkg.lpk file has now been updated, and you can also compile it.


You can also just edit the zipfilepkg.lpk file itself with a "correct" text editor (if you know what you are doing).

Modify the RequiredPkgs section:
Code: [Select]
    <RequiredPkgs Count="2">
      <Item1>
        <PackageName Value="LazUtils"/>
      </Item1>
      <Item2>
        <PackageName Value="FCL"/>
        <MinVersion Major="1" Valid="True"/>
      </Item2>

Cliff48

  • Jr. Member
  • **
  • Posts: 51
Re: [SOLVED] ZipFilePkg
« Reply #2 on: May 27, 2015, 05:53:04 am »
Thank you Chris for your prompt and clear response - its truly appreciated.

Apart from solving the problem, I get to learn new stuff :)
Laz Ver 1.4.0  FPC 2.6.4 SVN 48774
Win 7 Ultimate SP1
Intel I7-2600 CPU @  3.40GHZ 8GB Ram 64bit OS

 

TinyPortal © 2005-2018