I first noticed with 8u20 that the 64bit version when extracted had different file names so the rename commands failed. ren "%~dp0JRE_TEMP64\%JAVAFN64%_101_JAVA_INSTALLER.bin" jre64_inst.msi ren "%~dp0JRE_TEMP64\%JAVAFN64%_102_JAVA_INSTALLER.bin" Data1.cab
needed to be changed to ren "%~dp0JRE_TEMP64\%JAVAFN64%_105_JAVA_INSTALLER.bin" jre64_inst.msi ren "%~dp0JRE_TEMP64\%JAVAFN64%_103_JAVA_INSTALLER.bin" Data1.cab
Then with 8u25, the files did not extract correctly, so I changed the script (see below) to launch the exe(s) and then grab the msi from the profile temp and then kill the exe(s). It seems to work nicely so far.
The lines in bold are where the changes can be found.
@echo off setlocal enableextensions if not exist "%~dp0bin\7za.exe" goto :No7za if not exist "%~dp0bin\JavaInst.sfx" goto :No7SFX if not exist "%~dp0bin\ResourcesExtract.exe" goto :NoResExtr SET SZ="%~dp0bin\7za.exe" if exist "%~dp0jre-*-windows-i586.exe" GOTO :X86 if not exist "%~dp0jre-*-windows-i586.exe" GOTO :X64
:X86 if exist "%~dp0jre-*-windows-x64.exe" GOTO :DUAL set JAVAFILE= for %%j in (%~dp0jre-*-windows-i586.exe) do call :GETJAVAVER %%~nxj if "%JAVAFILE%"=="" goto :NoJavaInst for /f "delims=- tokens=2" %%j in ("%JAVAFILE%") do set JAVAVER=%%j SET MAJ=%JAVAVER:~0,1% SET MIN=%JAVAVER:~2,3% if exist "%~dp0JRE_TEMP" rmdir /s /q "%~dp0JRE_TEMP" mkdir "%~dp0JRE_TEMP" ::start /w "Unpacking JRE..." "%~dp0bin\ResourcesExtract.exe" /Source "%~dp0%JAVAFILE%" /DestFolder "%~dp0JRE_TEMP" /ExtractIcons 0 /ExtractCursors 0 /ExtractBitmaps 0 /ExtractHTML 0 /ExtractManifests 0 /ExtractAnimatedIcons 0 /ExtractAnimatedCursors 0 /ExtractAVI 0 /ExtractTypeLib 0 /ExtractBinary 1 /ScanSubFolders 0 /FileExistMode 1 /OpenDestFolder 0 ::ren "%~dp0JRE_TEMP\%JAVAFN%_101_JAVA_INSTALLER.bin" jre_inst.msi ::ren "%~dp0JRE_TEMP\%JAVAFN%_102_JAVA_INSTALLER.bin" Data1.cab ::del /f /q "%~dp0JRE_TEMP\%JAVAFN%*"
:NoJavaInst echo ================================================================================ echo ================================================================================ echo. JRE x86 and/or x64 redistributable not found. echo. Place it/them in the same directory than this script. echo. Correct JRE install name for x86 is "jre-XuXX-windows-i586.exe". echo. Correct JRE install name for x64 is "jre-XuXX-windows-x64.exe". echo ================================================================================ echo ================================================================================ pause goto :eof
:NoResExtr echo ================================================================================ echo ================================================================================ echo. NirSoft ResourcesExtract not found. Download and unpack it in "bin" directory. echo. Get it here - http://nirsoft.net/utils/resources_extract.html echo ================================================================================ echo ================================================================================ pause goto :eof
:No7za echo ================================================================================ echo ================================================================================ echo. 7za.exe not found. Download and unpack it in "bin" directory. echo. Get it here - http://sourceforge.net/projects/sevenzip/files/7-Zip/ echo ================================================================================ echo ================================================================================ pause goto :eof
:No7SFX echo ================================================================================ echo ================================================================================ echo. JavaInst.sfx not found. Place it in "bin" directory. echo ================================================================================ echo ================================================================================ pause goto :eof
This script can make silent installers & nLite/RVMi AddOns for Adobe Flash Player ActiveX, NPAPI and PPAPI Plugins.
Why using this script instead of an already made addon/SFX?
No need to wait after someone to create/update addon/SFX (and downloading it on file sharing website with annoying ads & captchas).
The script always download the latest version(s) available directly on Adobe servers.
You are sure there is no adware/spyware inside.
Usage:
- Extract the content of the archive and run Flash_Maker.cmd
- The script will ask you which version(s) of Flash Player you want:
ActiveX is for Internet Explorer in Windows XP/Vista/7
NPAPI is for Firefox, Palemoon, and other browsers using Nestcape Plugin API.
PPAPI is for Chromium, Opera, and other browsers using Pepper Plugin API.
Internet Explorer in Windows 8/8.1/10 and Chrome have their own Flash Player Plugin embedded.
- Then it will download (in the download folder) the latest setup(s) from Adobe website and repack it (or them) into a silent installer (& AddOn) in the output folder.
Switches available:
-ai autoupdate disabled, autoupdate task deleted, autoupdate service uninstalled & deleted.
-ai1 autoupdate disabled
-ai2 autoupdate enabled
If no switch is used, autoupdate is not configured (only check but ask for update, default behavior of Flash Player)
The silent installer can be used in any Windows version that is compatible with the originals setups.
If you also want to make an AddOn ( designed for RVMi & nLite ), you have to set a variable to 1 in the script (open it with Notepad).
- Original installers repacked to made them silent
- SumatraPDF will be installed in %ProgramFiles%.
- The Dual version automatically install the version corresponding to your architecture (x86 or x64)
- Compatible from Vista to 11, 32/64 bits
- Multilingual
- PDF format associated to SumatraPDF (only on Windows 7 & below)
- Uninstallable
Starting from version 3.4.1, you can use the -ai switch on the sfx to let Windows Search index the content of your PDF.