First of all sorry for my bad english... It's not my native language. Thanks
I've done AIO Windows 7 by myself with post-install setupcomplete.cmd script.
Here is my script:
@echo off setlocal enableextensions disabledelayedexpansion (set CDROM=) for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (if exist %%i:\sources\install.wim set "CDROM=%%i:") if not defined CDROM goto :eof :: KB2533552 IF NOT EXIST %SystemRoot%\SysWOW64 start /wait wusa.exe %CDROM%\updates\Windows6.1-KB2533552-x86.msu /quiet /norestart IF EXIST %SystemRoot%\SysWOW64 start /wait wusa.exe %CDROM%\updates\Windows6.1-KB2533552-x64.msu /quiet /norestart :: http://www.microsoft.com/pl-pl/download/details.aspx?id=16 IF NOT EXIST %SystemRoot%\SysWOW64 start /wait %CDROM%\updates\Windows-KB890830-V4.12.exe /Q IF EXIST %SystemRoot%\SysWOW64 start /wait %CDROM%\updates\Windows-KB890830-x64-V4.12.exe /Q :: Windows Defender defs IF NOT EXIST %SystemRoot%\SysWOW64 start /wait %CDROM%\updates\mpas-fe.exe /Q IF EXIST %SystemRoot%\SysWOW64 start /wait %CDROM%\updates\mpas-fe-x64.exe /Q :: DirectX start /wait %CDROM%\updates\directx\DXSETUP /silent :: .NET Framework 4.5 start /wait %CDROM%\updates\dotnetfx45_full_x86_x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT start /wait %CDROM%\updates\dotNetFx45LP_Full_x86_x64pl.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT :: Silverlight IF NOT EXIST %SystemRoot%\SysWOW64 start /wait %CDROM%\updates\Silverlight.exe /Q IF EXIST %SystemRoot%\SysWOW64 start /wait %CDROM%\updates\Silverlight_x64.exe /Q :: Java JRE IF EXIST %SystemRoot%\SysWOW64 start /wait %CDROM%\updates\jre-7u7-windows-x64.exe /s /v"/qn" :: timeout /t 10 > nul start /wait %CDROM%\updates\jre-7u7-windows-i586.exe /s /v"/qn" :: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= :: Adobe Flash Player start /wait %CDROM%\updates\install_flash_player_11_active_x.exe -install start /wait %CDROM%\updates\install_flash_player_11_plugin.exe -install :: Ending :: shutdown /R /T 5 rmdir /s /q "%systemdrive%\Users\Public\Videos" rmdir /s /q "%systemdrive%\Users\Public\Pictures" rmdir /s /q "%systemdrive%\Users\Public\Music" rmdir /s /q "%systemdrive%\Users\Public\Downloads" rmdir /s /q "%systemdrive%\Users\Public\Documents" rmdir /s /q "%systemdrive%\Users\Public\Desktop" rmdir /s /q "%systemdrive%\Users\Public\Libraries" rmdir /s /q "%systemdrive%\Users\Public\Favorites" IF EXIST %WinDir%\Setup\scripts RD /S /Q %WinDir%\Setup\scripts >nul DEL /F /Q %0% >nul
OK, every soft is installing correctly except Java Runtime i586 on brand new x64 system installed. (I'm testing it on Oracle VirtualBox). I underlined failing line above with =-=-=-= signs.
So, if Windows 7 is 64-bit, the setupcomplete.cmd script installs jre-7u7-windows-x64.exe only, but the i586 version setup is omitted
If I install 32-bit Windows, then the script correctly installs i586 jre version.
I also tried to get more info by adding /L switch to command:
... jre-7u7-windows-x64.exe /s /v"/qn /L C:\javax64.txt" ... jre-7u7-windows-i586.exe /s /v"/qn /L C:\javax86.txt"
In this case, the logfile for 64-bit version is filled with full installer output (15kb file), but the logfile for 32-bit installer is absolutely empty (just file created)
I did one more test - commented x64 setup line to pass only 32 bit version - the script did not install it too!
What's wrong with it? Could you help me, please...
Thanks!
This post has been edited by khimtiki: 24 September 2012 - 04:41 AM



Help
Back to top














