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
![]() ![]() |
Aug 13 2005, 03:16 AM Post
#1 | |
| Member ![]() ![]() Group: Members Posts: 260 Joined: 31-May 04 Member No.: 21124 |
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. CODE makecab /F Acro7.ddf Acro7.ddf contains the following: CODE .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. 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! |
| | |
Aug 13 2005, 04:18 AM Post
#2 | |
| Member ![]() ![]() Group: Members Posts: 260 Joined: 31-May 04 Member No.: 21124 |
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! |
| | |
Aug 20 2005, 07:55 PM Post
#3 | |
| Member ![]() ![]() Group: Members Posts: 229 Joined: 9-March 04 From: Offshore Qatar Member No.: 15672 OS: XP Pro x86 |
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 : CODE 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: Aug 20 2005, 08:10 PM |
| | |
Aug 27 2005, 10:20 AM Post
#4 | |
| Member ![]() ![]() Group: Members Posts: 260 Joined: 31-May 04 Member No.: 21124 |
Thanks a lot for your hints! |
| | |
Aug 30 2005, 06:27 AM Post
#5 | |
| Member ![]() ![]() Group: Members Posts: 229 Joined: 9-March 04 From: Offshore Qatar Member No.: 15672 OS: XP Pro x86 |
Glad I could help I've played with a few others since, using the same method, and it's worked in all cases. SP |
| | |
Aug 31 2005, 12:36 PM Post
#6 | |
| Member ![]() ![]() Group: Members Posts: 210 Joined: 18-September 04 From: Corrientes Member No.: 31394 OS: XP Pro x86 | QUOTE (seapagan @ Aug 20 2005, 10:55 PM) 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 : CODE cabarc L data1.cab > file-list.txt I'd been used instead: CODE expand -D data1.cab > file-list.txt The same order is output with less stuff to remove. Testing your method I found some diferences: QUOTE (Original) 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 QUOTE (Reconstructed) 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. |
| | |
Sep 1 2005, 05:58 AM Post
#7 | |
| Member ![]() ![]() Group: Members Posts: 229 Joined: 9-March 04 From: Offshore Qatar Member No.: 15672 OS: XP Pro x86 |
@ 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! Is the new generated file working for you? Or is the Install crashing? SP |
| | |
Sep 1 2005, 08:13 AM Post
#8 | |
| Group: Members Posts: 5 Joined: 1-September 05 Member No.: 71247 |
AdbeRdr70_enu_full.exe /w /v"/qb"
|
| | |
Sep 1 2005, 11:40 AM Post
#9 | |
| Member ![]() ![]() Group: Members Posts: 210 Joined: 18-September 04 From: Corrientes Member No.: 31394 OS: XP Pro x86 | QUOTE (seapagan @ Sep 1 2005, 08:58 AM) I am really looking for a program that will generate a ddf file from a cab! Here you are:CODE @echo off Is a unfinished working example of AR 7.0.3 update recab (31 Mb). You may get the idea from the first part 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% Bug: Don't ever use a full pathname for the cabinet file because of the colon (':') is used as delimiter. QUOTE (seapagan @ Sep 1 2005, 08:58 AM) No, I just became picky about the diferences: It works anyway.
|
| | |
Sep 1 2005, 01:43 PM Post
#10 | |
| Member ![]() ![]() Group: Members Posts: 229 Joined: 9-March 04 From: Offshore Qatar Member No.: 15672 OS: XP Pro x86 | QUOTE (Nilfred @ Sep 1 2005, 06:40 PM) Here you are: Thanks for that example Nilfred. Will it also generate the required code in a ddf file to preserve the directory structure?CODE @echo off Set diamond=ard7.ddf Set cabinet=..\ESP\data1.cab .... SP |
| | |
Sep 1 2005, 08:04 PM Post
#11 | |
| Member ![]() ![]() Group: Members Posts: 210 Joined: 18-September 04 From: Corrientes Member No.: 31394 OS: XP Pro x86 | QUOTE (seapagan @ Sep 1 2005, 04:43 PM) 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: CODE 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: CODE for /f "usebackq delims=: tokens=3" %%i IN (`expand -D c:\somepath\data1.cab`) do echo%%i>>ard7.ddf |
| | |
Sep 1 2005, 08:18 PM Post
#12 | |
| Member ![]() ![]() Group: Members Posts: 229 Joined: 9-March 04 From: Offshore Qatar Member No.: 15672 OS: XP Pro x86 | QUOTE (Nilfred @ Sep 2 2005, 03:04 AM) QUOTE (seapagan @ Sep 1 2005, 04:43 PM) 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: CODE 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: CODE for /f "usebackq delims=: tokens=3" %%i IN (`expand -D c:\somepath\data1.cab`) do echo%%i>>ard7.ddf 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 |
| | |
Sep 1 2005, 08:32 PM Post
#13 | |
| Member ![]() ![]() Group: Members Posts: 210 Joined: 18-September 04 From: Corrientes Member No.: 31394 OS: XP Pro x86 |
Well, I already did that code before ask you about the directory structure. The AIP regenerate the directory structure. |
| | |
Jan 28 2007, 10:23 PM Post
#14 | |
| Group: Members Posts: 6 Joined: 26-November 05 Member No.: 80848 OS: XP Pro x86 |
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 |
| | |
Jan 30 2007, 04:42 PM Post
#15 | |
| Member ![]() ![]() Group: Members Posts: 210 Joined: 18-September 04 From: Corrientes Member No.: 31394 OS: XP Pro x86 |
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 |
| | |
Jan 30 2007, 07:19 PM Post
#16 | |
| Group: Members Posts: 6 Joined: 26-November 05 Member No.: 80848 OS: XP Pro x86 |
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 |
| | |
Feb 27 2007, 02:06 PM Post
#17 | |
| The Guy from Aus ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1543 Joined: 14-November 03 From: DownUnder Member No.: 9474 |
Does anyone have any reports on slipstreaming AR7 with the latest update 7.09?
|
| | |
Feb 11 2008, 10:01 AM Post
#18 | |
| Group: Members Posts: 4 Joined: 16-April 05 Member No.: 52323 |
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 |
| | |
Feb 12 2008, 11:19 AM Post
#19 | |
| Group: Members Posts: 4 Joined: 16-April 05 Member No.: 52323 | 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. |
| | |
Feb 13 2008, 07:05 AM Post
#20 | |
| Member ![]() ![]() Group: Members Posts: 210 Joined: 18-September 04 From: Corrientes Member No.: 31394 OS: XP Pro x86 |
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. |
| | |
![]() ![]() |
| Lo-Fi Version | Time is now: 21st November 2009 - 11:04 PM |