Jump to content
Ctrl

How to create setupcomplete.cmd multiple arhitecture

Recommended Posts

hello all...how to create setupcomplete.cmd so multi architecture windows 7 x86 - x64 AIO, 1dvd .ISO

example :
installing KB2533552-x86 KB2592687-x86 KB2506143-x64 KB2533552-x64 KB2592687-x64 KB2603229-x64 KB2758694

How to..??

Thanks in advance Bro... :)

Edited by Ctrl

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 by George King

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

or

IF /I %PROCESSOR_ARCHITECTURE% == x86 (
CALL :X32
) Else (
CALL :X64
)

http://blogs.msdn.com/b/david.wang/archive/2006/03/26/howto-detect-process-bitness.aspx

Microsoft 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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...