Nilfred Posted April 7, 2005 Share Posted April 7, 2005 (edited) [Warning: This still Beta stage] As I learn from bitmonster here is a small guide how to create your own silent install package:Get the Adobe Acrobat Reader 7.0.1 full, 7.0 full or 7.0 basic package in your native tongue and install it.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.Get the Adobe Acrobat Reader 7.0.2 update package and install it.Get the Adobe Acrobat Reader 7.0.3 update package and install it.Create or select an empty working folderIf 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.Get 7-Zip Command Line Version and grab the 7za.exe file from the archive to your working folder.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.Get the UPX-package (Win32 console version), unpack it and copy the upx.exe to your folderGet the StartX-package, grab the StartX.exe out of the archive (you find it in the 'Release' folder) and move it to your folder.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 OFFSET Target=AdobeReaderSET BuildDir=%~dp0build\REM FoolProof:%~d0CD "%~p0"SET Errors=0FOR %%I in (StartX.exe 7za.exe) DO IF NOT EXIST %%I CALL :Error %%IIF NOT EXIST 7zAR.sfx FOR %%I in (upx.exe 7zS.sfx) DO IF NOT EXIST %%I CALL :Error %%IIF NOT EXIST "%ProgramFiles%\Adobe\Acrobat 7.0\Reader\AcroRd32.exe" CALL :Error2IF %Errors%==1 PauseIF %Errors%==1 GOTO :CleanUPMD "%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=%%ISTART /wait msiexec /a "%MsiName%" TARGETDIR="%BuildDir%" /QB%~d0CD "%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.dllCOPY /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%.msiFOR %%I in (*.msi) DO REN "%%I" %Target%.msiREM 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.txtIF EXIST Empty.txt ECHO ;!@Install@!UTF-8!>>config.txtIF NOT EXIST Empty.txt ECHO ;!@Install@!UTF-8!>config.txtECHO RunProgram="StartX.exe /WAIT \"msiexec /i %MsiName% /qb\"">>config.txtECHO ;!@InstallEnd@!>>config.txtIF NOT EXIST 7zAR.sfx upx.exe 7zS.sfx -o7zAR.sfxCOPY /b 7zAR.sfx + config.txt + %Target%.7z %Target%7.exeDEL config.txtDEL %Target%.7zSET MsiName=:CleanUPSET Target=SET BuildDir=SET Errors=GOTO:EOF:ErrorECHO Needed file not found: %1SET Errors=1GOTO:EOF:Error2ECHO Acrobat Reader 7 shoud be instaled and updated!SET Errors=1GOTO:EOFNow you should have the following files in your folder:7za.exe7zS.sfxupx.exeStartX.exear.batOptionally you may:Create an Empty.txt text file with Notepad and save as UTF8. Some guys here may call this critical.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.Delete 7zAR.sfx from previous run if you recently updated 7zC.sfxStart 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.exeAlso apply the registry entries of the next post:REGEDIT /S Reader7.reg[/Warning: This still Beta stage] Help wanted, I got some issues:How should I add the reg tweaks to the installer?Need feedbak in other languages than SpanishLanguages tested so far:Croatian by maki1908Danish by StalkieDutch by spacedEnglish by it_ybdFrench by VierGerman by MadgenNorwegian by svortevikPortuguese by JohnSRussian by fanatf1Spanish by myselfSwedish by CEoCEoBugs:Adobe Acrobat 7.0.1 and Reader 7.0.1 update could NOT be uninstalled independentlyAdobe Acrobat 7.0.2 and Reader 7.0.2 update could NOT be uninstalled independentlyAdobe Acrobat 7.0.3 and Reader 7.0.3 update could NOT be uninstalled independentlyWhen the about box pops up It say "Version 7.0.0" even if all files version is 7.0.3: Check next postWhen check for updates still say it need the 7.0.1 update: Check next postWhen check for updates still say it need the 7.0.2 update: Check next postWhen check for updates still say it need the 7.0.3 update: Check next postWhen 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 foundSplit instructions on newer 7-zip distribution files.Split instructions on copy and paste code due to browser issuesAdded Code attachment due to browser issues on copy and pasteAdded update to version 7.0.2Split instructions on 7.0.1 full, 7 full and 7 basicAdded complete support for basic versionSplit instructions for 7-zip 4.20 release (again)Fixed some typosRenamed FAQ to BugsAdded 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! Removed Basic Version dead linkAdded 7.0.3 update link and instructions Edited August 31, 2005 by Nilfred Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now