-
Posts
2,370 -
Joined
-
Last visited
-
Days Won
151
Content Type
Profiles
Forums
Events
Everything posted by mooms
-
Version 2.3 of the script is on the first post. What's new: After some researches, I've found a way to extract the x86 MSI with ResourcesExtract: the x86 setup is compressed with UPX, once uncompressed the MSi can be extracted without launching the setup first, like the old Java setup (x64 setup is not compressed with UPX). Now the maker behave like in v1.x: That eliminate the need to run the script as admin, and the bug with the auto uninstallation. That means both issues mentioned by Himan and Thiersee are now fixed ! I've also found that creating an admin install point is not needed anymore. Bonus: it is now possible to create the x64 & dual installers on x86 Windows.
-
@Thiersee: this code is only for checking if the batch have admin rights & re-launching it with them if not, hence the UAC prompt. edit: I see the problem now, when the script launch the installers to extract the MSI, Java is also uninstalled ! Apparently it's a new feature starting from Java8u20.... I don't understand why the uninstallation is automatically done, maybe because the previous install was an admin install ? I will try to come with a fix....
-
@Himan: The BatchGotAdmin code is not mine, but you can easily fix the script, just remove those lines in the beginning: :: BatchGotAdmin::-------------------------------------REM --> Check for permissions>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"REM --> If error flag set, we do not have admin.if '%errorlevel%' NEQ '0' ( echo Requesting administrative privileges... goto UACPrompt) else ( goto gotAdmin ):UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" exit /B:gotAdmin if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" ) pushd "%CD%" CD /D "%~dp0":--------------------------------------
-
Version 2.2 Quoi de neuf:
-
version 2.2 Whats new: Sorry, can't reproduce it, try with v2.2 and report.
-
Version 2.1 Quoi de neuf:
-
Version 2.1 What's new:
-
@Hamzaan: the maker has been updated for Java 8, check the first post.
-
If you want a fully silent install (noGUI), you can use this code: :CONFIGECHO ;!@Install@!UTF-8!> "%~dp032.cfg"ECHO SetEnvironment="swUninst_x64=HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall">> "%~dp032.cfg"ECHO SetEnvironment="swUninst_x86=HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall">> "%~dp032.cfg"ECHO SetEnvironment="DelOldVer=%%%%P:hidcon:cmd /c For /F \"tokens=2 delims={}\" %%a In ('Reg Query %%swUninst_%%%%P%% ^| FINDSTR \"{26A24AE4-039D-4CA4-87B4-2F[0-9A-F]*}\"') Do MsiExec /x{%%a}">> "%~dp032.cfg"ECHO GUIMode="2">> "%~dp032.cfg"ECHO MiscFlags="4">> "%~dp032.cfg"ECHO RunProgram="%%DelOldVer%% /qn">> "%~dp032.cfg"ECHO RunProgram="jre_inst.msi /qn WEB_JAVA=0">> "%~dp032.cfg"ECHO RunProgram="x86:hidcon:cmd /c \"%programfiles%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp032.cfg"ECHO RunProgram="x64:hidcon:cmd /c \"%programfiles(x86)%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp032.cfg"ECHO AutoInstall="%%DelOldVer%% /qn">> "%~dp032.cfg"ECHO AutoInstall="jre_inst.msi /qn WEB_JAVA=1">> "%~dp032.cfg"ECHO AutoInstall="x86:hidcon:cmd /c \"%programfiles%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp032.cfg"ECHO AutoInstall="x64:hidcon:cmd /c \"%programfiles(x86)%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp032.cfg"ECHO ;!@InstallEnd@!>> "%~dp032.cfg"ECHO. >> "%~dp032.cfg"GOTO :EOF:CONFIG_64ECHO ;!@Install@!UTF-8!> "%~dp064.cfg"ECHO SetEnvironment="swUninst=HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall">> "%~dp064.cfg"ECHO SetEnvironment="DelOldVer64=hidcon:cmd /c For /F \"tokens=2 delims={}\" %%a In ('Reg Query %%swUninst%% ^| FINDSTR \"{26A24AE4-039D-4CA4-87B4-2F[0-9A-F]*}\"') Do MsiExec /x{%%a}">> "%~dp064.cfg"ECHO GUIMode="2">> "%~dp064.cfg"ECHO MiscFlags="4">> "%~dp064.cfg"ECHO RunProgram="x64:%%DelOldVer64%% /qn">> "%~dp064.cfg"ECHO RunProgram="x64:jre64_inst.msi /qn WEB_JAVA=0">> "%~dp064.cfg"ECHO AutoInstall="x64:%%DelOldVer64%% /qn">> "%~dp064.cfg"ECHO AutoInstall="x64:jre64_inst.msi /qn WEB_JAVA=1">> "%~dp064.cfg"ECHO ;!@InstallEnd@!>> "%~dp064.cfg"ECHO. >> "%~dp064.cfg"GOTO :EOF:CONFIG_AIOECHO ;!@Install@!UTF-8!> "%~dp0AIO.cfg"ECHO SetEnvironment="swUninst_x64=HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall">> "%~dp0AIO.cfg"ECHO SetEnvironment="swUninst_x86=HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall">> "%~dp0AIO.cfg"ECHO SetEnvironment="DelOldVer=%%%%P:hidcon:cmd /c For /F \"tokens=2 delims={}\" %%a In ('Reg Query %%swUninst_%%%%P%% ^| FINDSTR \"{26A24AE4-039D-4CA4-87B4-2F[0-9A-F]*}\"') Do MsiExec /x{%%a}">> "%~dp0AIO.cfg"ECHO SetEnvironment="DelOldVer64=hidcon:cmd /c For /F \"tokens=2 delims={}\" %%a In ('Reg Query %%swUninst_x86%% ^| FINDSTR \"{26A24AE4-039D-4CA4-87B4-2F[0-9A-F]*}\"') Do MsiExec /x{%%a}">> "%~dp0AIO.cfg"ECHO GUIMode="2">> "%~dp0AIO.cfg"ECHO MiscFlags="4">> "%~dp0AIO.cfg"ECHO RunProgram="%%DelOldVer%% /qn">> "%~dp0AIO.cfg"ECHO RunProgram="x64:%%DelOldVer64%% /qn">> "%~dp0AIO.cfg"ECHO RunProgram="jre_inst.msi /qn WEB_JAVA=0">> "%~dp0AIO.cfg"ECHO RunProgram="x64:jre64_inst.msi /qn WEB_JAVA=0">> "%~dp0AIO.cfg"ECHO RunProgram="x86:hidcon:cmd /c \"%programfiles%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp0AIO.cfg"ECHO RunProgram="x64:hidcon:cmd /c \"%ProgramFiles(x86)%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp0AIO.cfg"ECHO AutoInstall="%%DelOldVer%% /qn">> "%~dp0AIO.cfg"ECHO AutoInstall="x64:%%DelOldVer64%% /qn">> "%~dp0AIO.cfg"ECHO AutoInstall="jre_inst.msi /qn WEB_JAVA=1">> "%~dp0AIO.cfg"ECHO AutoInstall="x64:jre64_inst.msi /qn WEB_JAVA=1">> "%~dp0AIO.cfg"ECHO AutoInstall="x86:hidcon:cmd /c \"%programfiles%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp0AIO.cfg"ECHO AutoInstall="x64:hidcon:cmd /c \"%ProgramFiles(x86)%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp0AIO.cfg"ECHO ;!@InstallEnd@!>> "%~dp0AIO.cfg"ECHO. >> "%~dp0AIO.cfg"GOTO :EOF Default install (no switch): no web plugins. -ai switch: web plugins.
-
If you use -ai1 (or /ai1), you should only see the extraction progress, the install itself is silent. Why using SFXMaker anyway, can't you run the SFX with the switch ?
-
Yes, it's stated in the first post: And also shown in the GUI of the SFX:
-
Hello Thiersee, Happy New Year too ! 1) You're right, I've updated the script (no version bump, it's very minor) you can replace it with this if that bothers you and don't want to redownload : :NoJavaInstecho ================================================================================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 ================================================================================pausegoto :eof2): Also reported by Escorpiom. That's not something I can fix.
-
Version 2.0 Quoi de neuf:
-
Version 2.0 of the maker, what's new:
-
Updated for CCleaner 5
-
MAJ pour CCleaner 5
-
MAJ pour Java 8u20 et + récent.
-
New version, updated (with the help of papageorgiou) to be used with Java 8u20 and newer. See first post.
-
@bphlpt: Indeed, at that time I had just tested the install (it worked) but Java 8 itself don't run on XP. I have edited the post to state this.
-
Java 8 don't run on XP.
-
fr_windows_8.1_with_update_x64_dvd_6051484.iso est dispo sur les NewsGroups. (Ainsi qu'une iso x64 de win 7 à jour du 18/12, faite avec WinToolkit et sans doute les ULs de rhahgleuhargh à en juger par les NFO...si le posteur me lit, merci à lui pour le post sur 8.1 )
-
Attends quelques jours ça sera dispo dans les endroits habituels
-
Welcome here Kabutokong :welcome:
-
Mis à jour, merci ryback.