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...
Nilfred Posted April 7, 2005 Author Share Posted April 7, 2005 (edited) 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 August 31, 2005 by Nilfred Link to comment Share on other sites More sharing options...
Stalkie Posted May 29, 2005 Share Posted May 29, 2005 HiWorked just fine for my danish reader.Any way to incorporate the newly released spell checkers for other languages? Link to comment Share on other sites More sharing options...
Vier Posted May 29, 2005 Share Posted May 29, 2005 Works fine with french version Link to comment Share on other sites More sharing options...
Stalkie Posted May 29, 2005 Share Posted May 29, 2005 Hmmmm....It's weird that the main post gets updated with only french, when I (before Vier even) reported it working with danish.Oh well, just wanna help Link to comment Share on other sites More sharing options...
beppemito Posted May 29, 2005 Share Posted May 29, 2005 i haven't 7zS.sfx!!! Link to comment Share on other sites More sharing options...
Vier Posted May 29, 2005 Share Posted May 29, 2005 download 7zip 3.13 and not beta 4.19 version Link to comment Share on other sites More sharing options...
Wesmosis Posted May 29, 2005 Share Posted May 29, 2005 thank for your clear giudeis it possible to make Unattended but not silent installer..in other words with a PROGRESS BAR just to know the process steps Link to comment Share on other sites More sharing options...
Nilfred Posted May 30, 2005 Author Share Posted May 30, 2005 Any way to incorporate the newly released spell checkers for other languages?<{POST_SNAPBACK}>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.<{POST_SNAPBACK}>Vier confirmed in another topic before you. Updated now.i haven't 7zS.sfx!!! <{POST_SNAPBACK}>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<{POST_SNAPBACK}>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 More sharing options...
tarquel Posted June 1, 2005 Share Posted June 1, 2005 Hi all@Nilfred:Help wanted, I got some issues:How I should add the reg tweaks?Need feedbak in other languages than SpanishFirstly, 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.regwhich 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 More sharing options...
JohnS Posted June 1, 2005 Share Posted June 1, 2005 Is there anyway of creating a final file that install in a choosen directory (eg. c:\Programs\Util\Adobe\etc...)instead of the default one?Thanks Link to comment Share on other sites More sharing options...
Nilfred Posted June 1, 2005 Author Share Posted June 1, 2005 Replace the line I told to Wesmosis with your own MSI instaler options, search the forum for such options of type "Property=Value". Link to comment Share on other sites More sharing options...
spaced Posted June 1, 2005 Share Posted June 1, 2005 Dutch worksbut i can't copy the code for ar.bat directly to notepadthe code had no enters, so i hade to copied it first to wordbut ok, very much thank you well done Link to comment Share on other sites More sharing options...
tarquel Posted June 1, 2005 Share Posted June 1, 2005 @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 notepadthe code had no enters, so i hade to copied it first to wordAnnoying wasn't it? lol spent a while manually making enters lolRegards,N. Link to comment Share on other sites More sharing options...
Nilfred Posted June 1, 2005 Author Share Posted June 1, 2005 (edited) 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.regIn 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? <{POST_SNAPBACK}>Oops, Is just another reg tweak... I will play with it later to see if uninstall really works.Dutch worksbut i can't copy the code for ar.bat directly to notepadthe code had no enters, so i hade to copied it first to word<{POST_SNAPBACK}>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 June 16, 2005 by Nilfred Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now