Posted February 18, 201312 yr 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, 201312 yr by Ctrl
February 18, 201312 yr 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.
February 18, 201312 yr 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, 201312 yr by George King
February 19, 201312 yr 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
February 20, 201312 yr 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.
February 22, 201312 yr Author many tank for help all...I love this forum.. :giveheart: I once again thank all of his :prop:
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.