Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Windows 7 ultimate 64 bit edition. I install windows updates (msu files) offline through a script which does a batch silent install of updates without requesting reboot. Now I need to install dot net 4.5 updates and security patches offline which are exe files. I have got the corresponding exe files of the updates. To do this I will have to open each exe file and wait for the installation to complete. This takes reasonable amount of time.

So, how can I do batch installation dot net 4.5 updates (exe files) without user interaction.

share|improve this question

2 Answers 2

Something as simple as using /? would have shown you a list of all the command-line parameters supported by the installer, including /q, /passive and /norestart, among others.

share|improve this answer

Here are my scripts:

64Bit:

@ECHO OFF
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
FOR /R "%~dp0" %%A IN (NDP45*x64*.exe) DO (
        CALL :SUB %%~nA        
    ECHO= Installing KB!KB_NUM!        
    "%%A" /passive /norestart)
>NUL PAUSE

GOTO :EOF

:SUB

SET "KB_NUM=%*"
FOR /F "DELIMS=-" %%B IN ("%KB_NUM:*-KB=%") DO SET "KB_NUM=%%B"

32Bit:

@ECHO OFF
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
FOR /R "%~dp0" %%A IN (NDP45*x86*.exe) DO (
        CALL :SUB %%~nA        
    ECHO= Installing KB!KB_NUM!        
    "%%A" /passive /norestart)
>NUL PAUSE

GOTO :EOF

:SUB

SET "KB_NUM=%*"
FOR /F "DELIMS=-" %%B IN ("%KB_NUM:*-KB=%") DO SET "KB_NUM=%%B"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.