who can teach m to make a .cmd file to install hotfix?

Discussion in 'Windows XP / Older OS' started by -IamLittle-, May 23, 2010.

  1. -IamLittle-

    -IamLittle- MDL Novice

    May 21, 2010
    34
    3
    0
    i got many hotfix for windows xp, donno how to install them at once
     
  2. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,354
    632
    60
    copy this to notepad and save as install.cmd

    IF EXIST "%~dp0*.msu" (FOR /F "tokens=*" %%A IN ('DIR /B "%~dp0*.msu"') DO (start /wait %~dp0%%A /quiet /norestart))
     
  3. urie

    urie Moderator
    Staff Member

    May 21, 2007
    8,692
    3,044
    300
    Windows Update Standalone or MSU files were only introduced into Vista and Windows Server 2008. They are not supported by XP
     
  4. -IamLittle-

    -IamLittle- MDL Novice

    May 21, 2010
    34
    3
    0
    so what is your suggestion?
     
  5. urie

    urie Moderator
    Staff Member

    May 21, 2007
    8,692
    3,044
    300
    you can use the following code inside a cmd file and store it in the folder where ur hotfixes resides and simply run it. no matter how many hotfixes are there, everything would get installed.

    TITLE hotfixes Install
    CLS
    ECHO.
    ECHO installing hotfixes
    ECHO Please wait...
    FOR %%f IN (*.exe) DO "%%f" /passive /norestart
    ECHO.
    ECHO installation Completed!
    ECHO.
    pause
    EXIT