After integrating msie11 cab and the dutch languagepack no microsoft update

Discussion in 'Windows 7' started by Enthousiast, Aug 18, 2014.

  1. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,765
    450
    Hi,

    Can somebody help me with this problem?

    I integrate the 5 pre msie11 updates, then i integrate the latest msie11 cab (and the dutch languagepack) and then i make an iso. After installing the windows i can't set windows update to microsoft update. See sshot:

    W7x86HPmsie11test.iso-2014-08-18-02-39-26.png

    W7x86HPmsie11test.iso-2014-08-18-02-39-43.png

    As you can see, i don't get the question to give permission to start microsoft update after clicking on "toestaan/give permission" in the first screen.

    Anyone?
     
  2. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    #2 murphy78, Aug 18, 2014
    Last edited by a moderator: Apr 20, 2017
    I've noticed that as well. I've included a cmd script in my releases to enable it.
    Code:
    @echo off
    color 1f
    :Begin UAC check and Auto-Elevate Permissions
    :-------------------------------------
    REM  --> Check for permissions
    >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
    
    
    REM --> If error flag set, we do not have admin.
    if '%errorlevel%' NEQ '0' (
    echo:
    echo   Requesting Administrative Privileges...
    echo   Press YES in UAC Prompt to Continue
    echo:
    
    
        goto UACPrompt
    ) else ( goto gotAdmin )
    
    
    :UACPrompt
        echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
        echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
    
    
        "%temp%\getadmin.vbs"
        exit /B
    
    
    :gotAdmin
        if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
        pushd "%CD%"
        CD /D "%~dp0"
    :--------------------------------------
    ECHO -------------------------------------------------------------------------------
    echo.                MicroSoft Update Opt-In Script
    ECHO -------------------------------------------------------------------------------
    
    
    ECHO Sometimes Windows Update will prevent you from opting into MS Update.
    ECHO This script will add the GUID to your servicing that allows MS Update to run.
    ECHO This allows you to receive Office updates, among other things.
    ECHO -------------------------------------------------------------------------------
    CHOICE /c YN /n /M "Run this script? (Y/N): "
    set errortemp=%ERRORLEVEL%
    IF %ERRORTEMP% EQU 2 EXIT
    IF %ERRORTEMP% EQU 0 EXIT
    net stop wuauserv >NUL 2>&1
    if exist %TEMP%\MSU.vbs del %TEMP%\MSU.vbs
    echo Set ServiceManager = CreateObject^("Microsoft.Update.ServiceManager"^)>%TEMP%\MSU.vbs
    echo ServiceManager.ClientApplicationID = "My App">>%TEMP%\MSU.vbs
    echo Set NewUpdateService = ServiceManager.AddService2^("7971f918-a847-4430-9279-4a52d1efe18d",7,""^)>>%TEMP%\MSU.vbs
    %windir%\system32\wscript.exe %TEMP%\MSU.vbs
    del %TEMP%\MSU.vbs
    ECHO -------------------------------------------------------------------------------
    echo.                                 Finished
    ECHO -------------------------------------------------------------------------------
    echo Press any key to exit...
    pause>NUL
     
  3. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,765
    450
    Murphy78, thank U very much for this solution :):)

    It solved my problem but (a small but) can i change this script into unattended (without screens and te question to say Yes or No)?

    I'm going to integrate this script in my setupcomplete.cmd or my run.cmd (which would do the trick better?).
     
  5. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    #6 murphy78, Aug 18, 2014
    Last edited by a moderator: Apr 20, 2017
    You could do that by just omitting the options and elevation stuff and just put:
    Code:
    echo Set ServiceManager = CreateObject^("Microsoft.Update.ServiceManager"^)>%TEMP%\MSU.vbs
    echo ServiceManager.ClientApplicationID = "My App">>%TEMP%\MSU.vbs
    echo Set NewUpdateService = ServiceManager.AddService2^("7971f918-a847-4430-9279-4a52d1efe18d",7,""^)>>%TEMP%\MSU.vbs
    %windir%\system32\wscript.exe %TEMP%\MSU.vbs
    del %TEMP%\MSU.vbs
    setupcomplete.cmd runs with system permissions so there's no need to elevate.
    You should know that it will just change it so that the user needs to disable the extra updates if they don't want to use Microsoft Update and revert to Windows Update.
    What I mean is, It doesn't make the option work, it forces the option on.
     
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,765
    450
    Again, thank U very much, Murphy.

    I've put your latest piece of code in my setupcomplete.cmd and it works 100%.

    Now the msupdate is set automaticly after installing windows.

    Just one more question, if I may?

    After windows install is ready and I go to Windows/MSupdate I have to hit the "search for updates" button manually, can that also be set to automatic updates or at least that msupdate searches automaticly for updates but asks if you want to download and install them? For the moment I try to do this by a register file but i'm afraid it doesn't work properly in combination with this script.
     
  7. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    #8 murphy78, Aug 19, 2014
    Last edited by a moderator: Apr 20, 2017
  8. DioNZB

    DioNZB MDL Member

    Jun 23, 2013
    238
    419
    10
    i think he means:

    He want in combination with your script...
    That MSupdate wil set to Install Updates Automatic but It ask of you want to install and download it

    Another wise..

    i think he is meaning... Do you have a script that set MSupdate to automatic but ask for that you will download/install the update?

    Do you have that

    thx
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    I already mentioned how to do that.
     
  10. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,274
    94,765
    450
    Murphy78,

    My last question answered itself. If you wait, the "search for updates" button disappears because the defender definition update (which i didn't integrate) installs itself automatically and that results in showing all leftover updates instead of the "search for downloads" button.

    I didn't had to do anything more than wait for a little while.

    Thanks for your adequate help :)