Ctrl Posted February 18, 2013 Posted February 18, 2013 (edited) hello all...how to create setupcomplete.cmd so multi architecture windows 7 x86 - x64 AIO, 1dvd .ISOexample :installing KB2533552-x86 KB2592687-x86 KB2506143-x64 KB2533552-x64 KB2592687-x64 KB2603229-x64 KB2758694How to..??Thanks in advance Bro... Edited February 18, 2013 by Ctrl Quote
crashfly Posted February 18, 2013 Posted February 18, 2013 You would need to test for the archeticture bitness in the batch file. There have been several discussions on how to properly do that. Try searching for those. After that is put in, running the correct updates should be rather easy. Quote
George King Posted February 18, 2013 Posted February 18, 2013 (edited) I wrote script, that works like you want. When i will be at home (+3 or more hour), I will post it here. I use it as RunOnceEx maker for multiple system installation. But its oobe.cmd Edited February 18, 2013 by George King Quote
George King Posted February 19, 2013 Posted February 19, 2013 OOBE.CMD @echo Off 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: SET ROE=HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %ROE% /v TITLE /d "Finishing installation" /f REG ADD %ROE% /v Flags /t REG_DWORD /d "00000014" /f REG ADD %ROE%\000 /ve /d "Installing updates.." /f FOR %%U IN ("%CDROM%\sources\setup\%PROCESSOR_ARCHITECTURE%\*.msu") DO REG ADD %ROE%\000 /v %%U /d "%%U /quiet /norestart" /f REG ADD %ROE%\001 /ve /d "Microsoft.NET Framework 4.0" /f REG ADD %ROE%\001 /v DOTNET4 /d "%CDROM%\sources\setup\.NET40.exe /aif" /f REG ADD %ROE%\002 /ve /d "Microsoft.NET Framework 4.5" /f REG ADD %ROE%\002 /v DOTNET45 /d "%CDROM%\sources\setup\.NET45.exe /ai" /f REG ADD %ROE%\003 /ve /d "Microsoft Silverlight" /f REG ADD %ROE%\003 /v SILVERLIGHT /d "%CDROM%\sources\setup\%PROCESSOR_ARCHITECTURE%\Silerlight.msi /qn" /f REG ADD %ROE%\004 /ve /d "Windows Live Essentials" /f REG ADD %ROE%\004 /v WINDOWSLIVE /d "%CDROM%\sources\setup\WLE.exe" /f REG ADD %ROE%\005 /ve /d "Microsoft DirectX" /f REG ADD %ROE%\005 /v DIRECTX /d "%CDROM%\sources\setup\%PROCESSOR_ARCHITECTURE%\DirectX.exe" /f REG ADD HKLM\Microsoft\Windows\CurrentVersion\RunOnceEx /d "%WinDir%\System32\rundll32.exe %WinDir%\System32\iernonce.dll,RunOnceExProcess" /f Quote
OnePiece Posted February 20, 2013 Posted February 20, 2013 orIF /I %PROCESSOR_ARCHITECTURE% == x86 (CALL :X32) Else (CALL :X64)http://blogs.msdn.com/b/david.wang/archive/2006/03/26/howto-detect-process-bitness.aspxMicrosoft Example in ..\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\DandISetEnv.cmd @Echo off REM REM Sets the PROCESSOR_ARCHITECTURE according to native platform for x86 and x64. REM IF /I %PROCESSOR_ARCHITECTURE%==x86 ( IF NOT "%PROCESSOR_ARCHITEW6432%"=="" ( SET PROCESSOR_ARCHITECTURE=%PROCESSOR_ARCHITEW6432% ) ) ELSE IF /I NOT %PROCESSOR_ARCHITECTURE%==amd64 ( @echo Not implemented for PROCESSOR_ARCHITECTURE of %PROCESSOR_ARCHITECTURE%. @echo Using "%ProgramFiles%" SET NewPath="%ProgramFiles%" goto SetPath ) Ciao a tutti. Quote
bphlpt Posted February 20, 2013 Posted February 20, 2013 See here for a detailed discussion. Cheers and Regards Quote
Ctrl Posted February 22, 2013 Author Posted February 22, 2013 many tank for help all...I love this forum.. :giveheart: I once again thank all of his :prop: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.