Jump to content

7zip Adobe Acrobat Reader Version 7.0.3 25MB


Nilfred

Recommended Posts

icon13.gif[Warning: This still Beta stage] icon13.gif

As I learn from bitmonster here is a small guide how to create your own silent install package:

  1. Get the Adobe Acrobat Reader 7.0.1 full, 7.0 full or 7.0 basic package in your native tongue and install it.
  2. If you got a 7.0 package get the Adobe Acrobat Reader 7.0.1 update package and install it. If you got a 7.0.1 package skip this step.
  3. Get the Adobe Acrobat Reader 7.0.2 update package and install it.
  4. Get the Adobe Acrobat Reader 7.0.3 update package and install it.
  5. Create or select an empty working folder
  6. If you already got a 7-Zip release prior to 4.17b installed then open up the folder where 7-zip has installed itself to and grab the 7za.exe and 7zS.sfx files and copy them to your folder. This way you can safely skip the next 2 steps.
  7. Get 7-Zip Command Line Version and grab the 7za.exe file from the archive to your working folder.
  8. In the same page get Extra modules: 7z Library, Plugin for FAR, SFXs for installers and grab the 7zS.sfx file from the archive to your working folder.
  9. Get the UPX-package (Win32 console version), unpack it and copy the upx.exe to your folder
  10. Get the StartX-package, grab the StartX.exe out of the archive (you find it in the 'Release' folder) and move it to your folder.
  11. Download the atached ar.bat.txt to your folder and rename it to ar.bat. If your browser allow the copy and paste facility without issues, you can instead make a new batch-file in your folder, name it ar.bat and paste the following text into it:

@ECHO OFF
SET Target=AdobeReader
SET BuildDir=%~dp0build\

REM FoolProof:
%~d0
CD "%~p0"
SET Errors=0
FOR %%I in (StartX.exe 7za.exe) DO IF NOT EXIST %%I CALL :Error %%I
IF NOT EXIST 7zAR.sfx FOR %%I in (upx.exe 7zS.sfx) DO IF NOT EXIST %%I CALL :Error %%I
IF NOT EXIST "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\AcroRd32.exe" CALL :Error2
IF %Errors%==1 Pause
IF %Errors%==1 GOTO :CleanUP

MD "%BuildDir%"
COPY StartX.exe "%BuildDir%StartX.exe"

SET MsiName=
%SystemDrive%
CD "%ProgramFiles%\Adobe\Acrobat 7.0\Setup Files\"
FOR /R %%I in (*.msi) DO SET MsiName=%%I
START /wait msiexec /a "%MsiName%" TARGETDIR="%BuildDir%" /QB

%~d0
CD "%BuildDir%program files\Adobe\Acrobat 7.0\Reader\"
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" "plug_ins\"
COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\plug_ins\Escript.api" "plug_ins\"
COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\Updater\acroaum.exe" "Updater\"
COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\ActiveX\AcroPDF.dll" "..\ActiveX\"
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" "plug_ins\"
COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\plug_ins\ppklite.api" "plug_ins\"
REM Swedish users only:
IF EXIST "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\Rdlang32.sve" COPY /Y "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\Rdlang32.sve"

CD ..\..\..\..
SET MsiName=%Target%.msi
FOR %%I in (*.msi) DO REN "%%I" %Target%.msi

REM 512 Mb of RAM recommended for things going faster:
..\7za.exe a "%~dp0%Target%.7z" -r -mx=9 -mfb=255 -md=48m *
CD..
RMDIR /S /Q "%BuildDir%"

IF EXIST Empty.txt COPY /Y Empty.txt config.txt
IF EXIST Empty.txt ECHO ;!@Install@!UTF-8!>>config.txt
IF NOT EXIST Empty.txt ECHO ;!@Install@!UTF-8!>config.txt
ECHO RunProgram="StartX.exe /WAIT \"msiexec /i %MsiName% /qb\"">>config.txt
ECHO ;!@InstallEnd@!>>config.txt

IF NOT EXIST 7zAR.sfx upx.exe 7zS.sfx -o7zAR.sfx
COPY /b 7zAR.sfx + config.txt + %Target%.7z %Target%7.exe

DEL config.txt
DEL %Target%.7z
SET MsiName=
:CleanUP
SET Target=
SET BuildDir=
SET Errors=
GOTO:EOF

:Error
ECHO Needed file not found: %1
SET Errors=1
GOTO:EOF

:Error2
ECHO Acrobat Reader 7 shoud be instaled and updated!
SET Errors=1
GOTO:EOF

Now you should have the following files in your folder:

7za.exe
7zS.sfx
upx.exe
StartX.exe
ar.bat

Optionally you may:

  1. Create an Empty.txt text file with Notepad and save as UTF8. Some guys here may call this critical.
  2. Create your own 7zC.sfx ;) and the script will create an upx compressed 7zAR.sfx for you. If 7zAR.sfx exist upx.exe and 7zS.sfx aren't needed.
  3. Delete 7zAR.sfx from previous run if you recently updated 7zC.sfx

Start the ar.bat and wait few minutes. At the end you should have a AcrobatReader7.exe in your folder with a size of about 25 MB.

You can run this standalone file through svcpack.inf or any other batch without any commandline switches. But if you use a batch instead of svcpack.inf you should use the start-command:

start /wait AcrobatReader7.exe

Also apply the registry entries of the next post:

REGEDIT /S Reader7.reg

icon13.gif[/Warning: This still Beta stage] icon13.gif

Help wanted, I got some issues:

  • How should I add the reg tweaks to the installer?
  • Need feedbak in other languages than Spanish

Languages tested so far:

  • Croatian by maki1908
  • Danish by Stalkie
  • Dutch by spaced
  • English by it_ybd
  • French by Vier
  • German by Madgen
  • Norwegian by svortevik
  • Portuguese by JohnS
  • Russian by fanatf1
  • Spanish by myself
  • Swedish by CEoCEo

Bugs:

  • Adobe Acrobat 7.0.1 and Reader 7.0.1 update could NOT be uninstalled independently
  • Adobe Acrobat 7.0.2 and Reader 7.0.2 update could NOT be uninstalled independently
  • Adobe Acrobat 7.0.3 and Reader 7.0.3 update could NOT be uninstalled independently
  • When the about box pops up It say "Version 7.0.0" even if all files version is 7.0.3: Check next post
  • When check for updates still say it need the 7.0.1 update: Check next post
  • When check for updates still say it need the 7.0.2 update: Check next post
  • When check for updates still say it need the 7.0.3 update: Check next post
  • When a component is removed then re-added from preferences ask for .msi source. That source has been deleted by 7-zip normal operation. An Inno Setup solution is on way...

Changelog:

  • Removed a stupid bug in foolproof section: search for AdobeReader.exe and prevent execution if not found
  • Split instructions on newer 7-zip distribution files.
  • Split instructions on copy and paste code due to browser issues
  • Added Code attachment due to browser issues on copy and paste
  • Added update to version 7.0.2
  • Split instructions on 7.0.1 full, 7 full and 7 basic
  • Added complete support for basic version
  • Split instructions for 7-zip 4.20 release (again)
  • Fixed some typos
  • Renamed FAQ to Bugs
  • Added a bug about adding components from preferences.
  • Added instruction to apply the registry patch of next post.
  • Confirmed functionality specially crafted for Swedish (Svenska) users. Many thanks CEoCEo! :thumbup
  • Removed Basic Version dead link
  • Added 7.0.3 update link and instructions

Edited by Nilfred
Link to comment
Share on other sites


All the problems listed abobe gone with this Reader7.reg Registry entries:

Windows Registry Editor Version 5.00

;Updates version in about box:
[HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\7.0\Installer]
"VersionMin"=dword:00000003

;Add updates to already updated list
[HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\7.0\Installer\Updates]
@="{AC76BA86-0000-7EC8-7489-000000000704}"
"1"=dword:000002bd
"2"="702"
"3"="703"

[HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\7.0\Installer\Updates\701]
@="{AC76BA86-0000-7EC8-7489-000000000701}"
"Feature"="RDR_Update"
"VersionMin"=dword:00000001
"VersionMax"=dword:00000007

[HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\7.0\Installer\Updates\702]
@="{AC76BA86-0000-7EC8-7489-000000000703}"
"Feature"="RDR_Update"
"VersionMin"=dword:00000002
"VersionMax"=dword:00000007
"Suffix"=".701.bak"
"1"="{4AE0D15C-17B8-4CB5-A1EC-FD33E8519B4E}"
"2"="{DF43C8F8-CB59-40A2-8072-B8DCBE9B9DF0}"
"3"="{DD400CAC-14AB-40A2-9EB5-C799620CD61C}"
"{4AE0D15C-17B8-4CB5-A1EC-FD33E8519B4E}"="Rdr700_702.rtp"
"{DF43C8F8-CB59-40A2-8072-B8DCBE9B9DF0}"=""
"{DD400CAC-14AB-40A2-9EB5-C799620CD61C}"="patchw32.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\7.0\Installer\Updates\702\Restore]

[HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\7.0\Installer\Updates\703]
"{7B6F789A-0407-4985-8D49-DE19DC05D1DB}"=""
"{C4B939CE-61BA-447B-8E2A-E2572C62CDCD}"="patchw32.dll"
"VersionMin"=dword:00000003
"Feature"="RDR_Update"
@="{AC76BA86-0000-7EC8-7489-000000000704}"
"Suffix"=".702.bak"
"1"="{20082671-27E4-45AE-B9B0-58C5C064C8BC}"
"VersionMax"=dword:00000007
"2"="{DF43C8F8-CB59-40A2-8072-B8DCBE9B9DF0}"
"{4AE0D15C-17B8-4CB5-A1EC-FD33E8519B4E}"="Rdr702_703.rtp"
"3"="{C4B939CE-61BA-447B-8E2A-E2572C62CDCD}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\7.0\Installer\Updates\703\Restore]
"AcroForm.api"="AcroForm.api.702.bak"

;Disable some unneeded features
[HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\7.0\FeatureLockdown]
"bEFIPrintMe"=dword:00000000
"bShowAdsAllow"=dword:00000000

[HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\7.0\AVGeneral\cToolbars\cWebSearchView\cPositions\cInternal]
"bHidden"=dword:00000001

[HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\7.0\Originals]
"bDisplayedSplash"=dword:00000001
"bDisplayAboutDialog"=dword:00000000

;Remove the EULA at first run
[HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\7.0\AdobeViewer]
"EULA"=dword:00000001

[HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\7.0\AdobeViewer]
"EULA"=dword:00000001

Some tweaks borrowed somewhere else are also includes for simplicity

Edited by Nilfred
Link to comment
Share on other sites

  • 1 month later...
Any way to incorporate the newly released spell checkers for other languages?

I dunno. If these were in the original package is possible. Refer to the copy files section to add the newly files.

It's weird that the main post gets updated with only french, when I (before Vier even) reported it working with danish.

Vier confirmed in another topic before you. Updated now.

i haven't 7zS.sfx!!! :(

Newly 7-Zip distribution got it in the Extra folder instead of main folder.

is it possible to make Unattended but not silent installer..in other words with a PROGRESS BAR just to know the process steps

Sure: replace this line:

ECHO RunProgram="StartX.exe /WAIT \"msiexec /i %MsiName% /qb\"">>config.txt

with this other:

ECHO RunProgram="StartX.exe /WAIT \"msiexec /i %MsiName% /qn\"">>config.txt

or whatever you like for msi installer.

Link to comment
Share on other sites

Hi all

@Nilfred:

Help wanted, I got some issues:

How I should add the reg tweaks?

Need feedbak in other languages than Spanish

Firstly, it works with English version ;)

I've been playing with a few different methods myself, and in order to install the lot with the reg tweaks, the only thing so far i could come up with is wrapping the finished acrobatreader.exe with IExpress and using a post install command of:

regedit -s ar701.reg

which worked well.

If anyone wants the finished installer, you can get it from my site *here*.

Note: this installer gives a progress bar on the extraction process, creates a log - C:\ar701.log and has the registry entries mentioned in the first post - inc tweaks.

The only snag with this process is that the Add/Remove Programs entry only displays Adobe Reader 7.0 (with no indication of an update) but its not too much off a problem right? ;)

Regards,

Nath.

Link to comment
Share on other sites

@johnS:

look at http://www.microsoft.com/technet/treeview/...ocs/msiexec.asp for commands to msiexec - not the easiest document to read but all ya need for changing the line mentioned to what you want is there.

If you're on about where its gonna install Acrobat Reader 7.0(.1) then i think its possible but cant remember what the parameters are offhand.

but i can't copy the code for ar.bat directly to notepad

the code had no enters, so i hade to copied it first to word

Annoying wasn't it? lol spent a while manually making enters lol

Regards,

N.

Link to comment
Share on other sites

Firstly, it works with English version ;)

Thanks, the first post can't be updated anymore, the edit button gone.

wrapping the finished acrobatreader.exe with IExpress and using a post install command of:

regedit -s ar701.reg

In the line I told to Wasmosis, is easier to replace the StartX command with a .bat file instead, but the not-so-fashion black box appears when installing. I personally prefer a .inf intall of reg tweaks for very silent install.

The only snag with this process is that the Add/Remove Programs entry only displays Adobe Reader 7.0 (with no indication of an update) but its not too much off a problem right? ;)

Oops, Is just another reg tweak... I will play with it later to see if uninstall really works.

Dutch works

but i can't copy the code for ar.bat directly to notepad

the code had no enters, so i hade to copied it first to word

Thanks. I can't update the first post anymore to give you credit.

I copy and paste from Opera 7.54 to notepad and get double-enters instead so I think an atachment is necessary.

Edited by Nilfred
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...