MSFN Forum: Adobe Acrobat 7.0.0 Professional - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Adobe Acrobat 7.0.0 Professional re-compress with makecab -> error Rate Topic: -----

#1 User is offline   my2001 

  • Member
  • PipPip
  • Group: Members
  • Posts: 260
  • Joined: 31-May 04

  Posted 13 August 2005 - 03:16 AM

Hi!

I'd like to integrate my Adobe Acrobat 7.0.0 Professional into my unattended CD. No problems at all with doing it unattended, but there's another error which bothers me.

The original file is "AcTR7EFG.exe" which extracts the setup files to the HDD, fine. This msi-setup package contains one big file namend Data1.cab with over 450 MB! Unfortunately this Data1.cab file isn't compressed at all. :angry: So I tried to compress it on my own and therefore extracted its contents into a seperate folder and and re-compressed it using the makecab command with the following directives:

makecab /F Acro7.ddf


Acro7.ddf contains the following:
.OPTION EXPLICIT
.Set ReservePerCabinetSize=6144
.Set DiskDirectoryTemplate=
.Set Cabinet=on
.Set Compress=on
.Set CompressionType=MSZIP
.Set CompressionMemory=21
.Set CompressionLevel=7
.Set CabinetNameTemplate=Data1.cab
.Set MaxDiskSize=CDROM
A3.tds
A3.tds1
A3.tds4
A4.tds
A4.tds1
[... the other files from the original cab]


This works flawlessly and a new compressed Data1.cab is created, this time only 207 MB. :) And after running the setup.exe the installation process starts and everything is performed well until it comes to copying the files from the now compressed cab. Some files are copied but then setup routine displays an error message which says:

Quote

Error 1334: The file 'Hanko.html4' cannot be installed because the file  cannot be found  in the cabinet file 'Data1.cab'. [...]


This is weird because the desired file is definately within the cab file, i.e. not missing! Needless to say that I checked it several times. The error causes setup to cancel. Using the original uncompress cab works well. Is there any mistake I make when compressing the original cab or did I forget anything special?

Btw using LZX compression is worthless, it would last hours to create the new cab.

Thanks for ya help! :)


#2 User is offline   my2001 

  • Member
  • PipPip
  • Group: Members
  • Posts: 260
  • Joined: 31-May 04

Posted 13 August 2005 - 04:18 AM

Well ... I did some research and found that just re-compressing the cab file doesn't seem to be sufficient.

Using Cabinets and Compressed Sources

Does anyone know more about this? How can I re-compress an existing cab file not destroying the "internal structure" defined in the according msi?

Thanks! :)

#3 User is offline   seapagan 

  • Member
  • PipPip
  • Group: Members
  • Posts: 229
  • Joined: 09-March 04

Posted 20 August 2005 - 07:55 PM

I came across the same problem today, when repackaging MSN Messenger. I had extracted the cab file from the msi, added some patched files and tried to recab and install - same error.

Turns out that the files need to be put in the cab file in exactly the same order that they were in originally, or the msi cannot find them.
To find this order, use the 'list' function of cabarc (from CAB SDK) and redirect this to a text file :
cabarc L data1.cab > file-list.txt

The file file-list.txt will now contain the filenames in the correct order. Just edit this removing all the extra header data and file sizes etc, so it only contains the filenames, without any extra spaces etc, then put this at the end of your ddf file, after the last '.set' command. Recreate the cab file as usual, then try to install.

This worked for me, but I have only tried on the one msi so far, so ymmv...

SP.

This post has been edited by seapagan: 20 August 2005 - 08:10 PM


#4 User is offline   my2001 

  • Member
  • PipPip
  • Group: Members
  • Posts: 260
  • Joined: 31-May 04

  Posted 27 August 2005 - 10:20 AM

Thanks a lot for your hints! :) I tried it that way and yeah, they helped to solve my mentioned problems!

#5 User is offline   seapagan 

  • Member
  • PipPip
  • Group: Members
  • Posts: 229
  • Joined: 09-March 04

Posted 30 August 2005 - 06:27 AM

Glad I could help :)

I've played with a few others since, using the same method, and it's worked in all cases.

SP

#6 User is offline   Nilfred 

  • Member
  • PipPip
  • Group: Members
  • Posts: 210
  • Joined: 18-September 04

Posted 31 August 2005 - 12:36 PM

seapagan, on Aug 20 2005, 10:55 PM, said:

Turns out that the files need to be put in the cab file in exactly the same order that they were in originally, or the msi cannot find them.
To find this order, use the 'list' function of cabarc (from CAB SDK) and redirect this to a text file :
cabarc L data1.cab > file-list.txt

I'd been used instead:
expand -D data1.cab > file-list.txt

The same order is output with less stuff to remove.

Testing your method I found some diferences:

Original said:

Microsoft ® Cabinet Tool - Version 5.1.2600.0
Copyright © Microsoft Corporation. All rights reserved..

Listing of cabinet file '..\ESP\data1.cab' (size 34401925):
  441 file(s), 23 folder(s), set ID 1111, cabinet #0

Reconstructed said:

Microsoft ® Cabinet Tool - Version 5.1.2600.0
Copyright © Microsoft Corporation. All rights reserved..

Listing of cabinet file 'data1.cab' (size 34404632):
  441 file(s), 1 folder(s), set ID 25053, cabinet #0

Now the question is: How to expand the folder estructure?
And: How to set the "set ID"? I noted the option in cabarc but I mean using standart Makecab directive.

#7 User is offline   seapagan 

  • Member
  • PipPip
  • Group: Members
  • Posts: 229
  • Joined: 09-March 04

Posted 01 September 2005 - 05:58 AM

@ Nilfred :

Yeah, that would be a bit easier, not having to remove headers etc from the text file.

For the 'ID' - some installers apparently use that, but I have not found one yet that setting the ID makes a difference. I would recommend checking out the cabsdk from microsoft for more details on the ddf format - however, I have not found any way to set the id from ddf file either. If you really need to do it, use cabarc after makecab to set the ID. Also, cabarc for me defaults to a '0' ID - you are saying that yours gives 25053?

Different directories are often used to split compression types, but the list command will tell you these directories, then just build it into the ddf, as described in the docs. The difference in file size is probably due to the directory overhead in the first one.
I am really looking for a program that will generate a ddf file from a cab! :angry:
Is the new generated file working for you? Or is the Install crashing?

SP

#8 User is offline   wazhy 

  • Group: Members
  • Posts: 5
  • Joined: 01-September 05

Posted 01 September 2005 - 08:13 AM

AdbeRdr70_enu_full.exe /w /v"/qb"

#9 User is offline   Nilfred 

  • Member
  • PipPip
  • Group: Members
  • Posts: 210
  • Joined: 18-September 04

Posted 01 September 2005 - 11:40 AM

seapagan, on Sep 1 2005, 08:58 AM, said:

I am really looking for a program that will generate a ddf file from a cab!  :angry:
Here you are:
@echo off
Set diamond=ard7.ddf
Set cabinet=..\ESP\data1.cab
echo .OPTION EXPLICIT >%diamond%
echo .Set ReservePerCabinetSize=6144 >>%diamond%
echo .Set DiskDirectoryTemplate= >>%diamond%
echo .Set Cabinet=on >>%diamond%
echo .Set Compress=on >>%diamond%
echo .Set CompressionType=LZX >>%diamond%
echo .Set CompressionMemory=21 >>%diamond%
echo .Set CompressionLevel=7 >>%diamond%
echo .Set CabinetNameTemplate=Data1.cab >>%diamond%
echo .Set MaxDiskSize=CDROM >>%diamond%
for /f "usebackq delims=: tokens=2" %%i IN (`expand -D %cabinet%`) do echo%%i>>%diamond%

expand %cabinet% -F:* .

COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\AcroRd32.exe"
COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\AcroRd32.dll"
ATTRIB -r esdupdate.dll
COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\esdupdate.dll"
REM For reader lite this file does not exist:
IF EXIST "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\rt3d.dll" COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\rt3d.dll"
COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\plug_ins\Acroform.api"
COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\plug_ins\Escript.api"
COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\Updater\acroaum.exe"
COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\ActiveX\AcroPDF.dll"
REM Update for 7.0.2:
COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\AcroRd32Info.exe"
COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\plug_ins\digsig.api"
COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\plug_ins\ppklite.api"
REM Swedish only:
IF EXIST "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\Rdlang32.sve" COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\Rdlang32.sve"

makecab /F %diamond%
Is a unfinished working example of AR 7.0.3 update recab (31 Mb). You may get the idea from the first part ;)
Bug: Don't ever use a full pathname for the cabinet file because of the colon (':') is used as delimiter.

seapagan, on Sep 1 2005, 08:58 AM, said:

Is the new generated file working for you? Or is the Install crashing?
<{POST_SNAPBACK}>
No, I just became picky about the diferences: It works anyway.

#10 User is offline   seapagan 

  • Member
  • PipPip
  • Group: Members
  • Posts: 229
  • Joined: 09-March 04

Posted 01 September 2005 - 01:43 PM

Nilfred, on Sep 1 2005, 06:40 PM, said:

Here you are:
@echo off
Set diamond=ard7.ddf
Set cabinet=..\ESP\data1.cab
....
Thanks for that example Nilfred. Will it also generate the required code in a ddf file to preserve the directory structure?

SP

#11 User is offline   Nilfred 

  • Member
  • PipPip
  • Group: Members
  • Posts: 210
  • Joined: 18-September 04

Posted 01 September 2005 - 08:04 PM

seapagan, on Sep 1 2005, 04:43 PM, said:

Will it also generate the required code in a ddf file to preserve the directory structure?<{POST_SNAPBACK}>
Educated guess: No.
I asked first and you tell me it doesn't matter...
This magic line of code remove the undesired stuff from the file list:
for /f "usebackq delims=: tokens=2" %%i IN (`expand -D data1.cab`) do echo%%i>>ard7.ddf

Just in case you need full pathnames use this line instead:
for /f "usebackq delims=: tokens=3" %%i IN (`expand -D c:\somepath\data1.cab`) do echo%%i>>ard7.ddf


#12 User is offline   seapagan 

  • Member
  • PipPip
  • Group: Members
  • Posts: 229
  • Joined: 09-March 04

Posted 01 September 2005 - 08:18 PM

Nilfred, on Sep 2 2005, 03:04 AM, said:

seapagan, on Sep 1 2005, 04:43 PM, said:

Will it also generate the required code in a ddf file to preserve the directory structure?<{POST_SNAPBACK}>
Educated guess: No.
I asked first and you tell me it doesn't matter...
This magic line of code remove the undesired stuff from the file list:
for /f "usebackq delims=: tokens=2" %%i IN (`expand -D data1.cab`) do echo%%i>>ard7.ddf

Just in case you need full pathnames use this line instead:
for /f "usebackq delims=: tokens=3" %%i IN (`expand -D c:\somepath\data1.cab`) do echo%%i>>ard7.ddf

<{POST_SNAPBACK}>
That's what I was asking if there was avaliable - a program to automatically generate a ddf from a cab, obviously keeping the correct structure (directories and all).

What I actually said was I had never see an installer where the ID mattered, not the directory structure. Anyway, I can generate the ddf by hand in those cases.
I did understand what your code was trying to do, I was just confused because it did nothing to preserve the directory structure ....

SP

#13 User is offline   Nilfred 

  • Member
  • PipPip
  • Group: Members
  • Posts: 210
  • Joined: 18-September 04

Posted 01 September 2005 - 08:32 PM

Well, I already did that code before ask you about the directory structure.
The AIP regenerate the directory structure.

#14 User is offline   Schmagagled 

  • Group: Members
  • Posts: 7
  • Joined: 26-November 05

Posted 28 January 2007 - 10:23 PM

I wanted to bump this back up to see if there had been any progress on automating the re-cab process (in this case recabbing Acrobat 7 Pro VL with all patches up to 7.0.9).

Seems like the holy grail (at least for me). I've created an admin point and patched it etc. but I wanted to see if I could get the genie back into the data1.cab using makecab and cabarc.

Right now the admin point is 500+mb and I'd like to recompress it all back again. I'm sure it can be done, just don't know how.

Anybody?

Thanks for your time..

Mike

#15 User is offline   Nilfred 

  • Member
  • PipPip
  • Group: Members
  • Posts: 210
  • Joined: 18-September 04

Posted 30 January 2007 - 04:42 PM

Progress was done:
Generic Data1.cab recompress, Automagically slim down Data1.cab based apps
For Acrobat 7.0.8 some hack should be done for a missing file and trivial add of some registry entries.
7.0.9 I din't test yet

#16 User is offline   Schmagagled 

  • Group: Members
  • Posts: 7
  • Joined: 26-November 05

Posted 30 January 2007 - 07:19 PM

Nilfred;

Thanks for the quick response, I did check out the thread you referenced yesterday and downloaded the file but I'm not sure it's what I need or I don't understand what it's doing. I don't want to appear dense (or as thick as two short planks as they say in the UK) but here's where I'm having difficulty...

I have a VL version of Acrobat 7 Pro. I have the original media (7.0.0). So ever since we bought it to distribute (7.0.3 update was already available by that time) it has been my goal to 'slipstream' all the patches into the original acropro.msi/data1.cab structure and not have to expand it to an 'admin install point'.

The original data1.cab is around 199mb and the original disk is around 240mb. Once I expand it out to an admin install point and patch it to 7.0.9 the whole thing balloons up to around 530mb.

How do I take the original and the 7.0.5/7.0.7/7.0.8/7.0.9 patches, apply them, and put all the files back into a data1.cab and acropro.msi instead of having an admin point?

There must be a way to programmatically do this. Can Orca be used to generate the file necessary to re-cab the data1.cab by somehow reading the file manifest of the acropro.msi and using that to tell makecab how to recab the files?

Thanks!

Mike

#17 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,615
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 February 2007 - 02:06 PM

Does anyone have any reports on slipstreaming AR7 with the latest update 7.09?

#18 User is offline   Youngy 

  • Group: Members
  • Posts: 4
  • Joined: 16-April 05

Posted 11 February 2008 - 10:01 AM

Am having this exact same issue with Acrobat 8 Pro. The original data1.cab file is around 400mb, after admin install and slipstreaming the unpacked structure has gone upto 800mb.
Is there an updated batch file to create the required ddf file for v8 Pro? And package into a new cab file.
Any help appreciated

#19 User is offline   Youngy 

  • Group: Members
  • Posts: 4
  • Joined: 16-April 05

Posted 12 February 2008 - 11:19 AM

View PostNilfred, on Jan 30 2007, 10:42 PM, said:

Progress was done:
Generic Data1.cab recompress, Automagically slim down Data1.cab based apps
For Acrobat 7.0.8 some hack should be done for a missing file and trivial add of some registry entries.
7.0.9 I din't test yet


I am trying to use this on Acrobat 8 Pro, I have tried using the ReCab.bat batch file to recreate the Data1.cab file. But this still errors during the install saying the installer cant find files within the cab file. Are there any changes that need to be done to the batch file to use this on Acrobat v8 Pro?

Even running the batch file on the cab file copied from the install media creates the same error. Have created an admin install and slipstreamed in upto 8.1.1 with mst file containing key etc, would just like to compress and repackage down into another cab file. Thanks for any help.

#20 User is offline   Nilfred 

  • Member
  • PipPip
  • Group: Members
  • Posts: 210
  • Joined: 18-September 04

Posted 13 February 2008 - 07:05 AM

Bump very old topics gives bad results. Please let this topic die and seach again.
Generic Data1.cab never work for A. alone. There are other topics that use variations of this script.
Work has been done up to AR7.0.8. Then Adobe gives us a tool for that... InstallShield Tuner 7.0 for Adobe Acrobat
Now there is another tool: Adobe Customization Wizard 8
These tools obsoletes scripts like this.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy