Hey ColdZero! Awesome job with the offline updates. Do you have any links where i can download it again? It seems that mediafire link does not work anymore...thanks and keep it up!
this my code ,the problem is that the scripts cant divide and detect X86 from x64,what should i do to divide x64 and x86 in way that cod can install x 86 and x64 programs? Code: @Echo off IF %PROCESSOR_ARCHITECTURE% == AMD64 goto :x86 IF %PROCESSOR_ARCHITEW6432% == AMD64 goto :x64 :x86 For %%# in (*86.msu) Do ( Echo: Installing update: %%# Wusa "%%#" /quiet /norestart ) :x64 For %%# in (*64.msu) Do ( Echo: Installing update: %%# Wusa "%%#" /quiet /norestart ) Echo Windows Update finished. Exit
Should be something like this: Code: @Echo off IF exist "C:\Program Files (x86)" ( goto :x64 ) ELSE ( goto :x86) :x86 Echo X86 Detected For %%# in (*86.msu) Do ( Echo: Installing update: %%# Wusa "%%#" /quiet /norestart ) Echo Windows Update finished. pause exit :x64 Echo X64 Detected For %%# in (*64.msu) Do ( Echo: Installing update: %%# Wusa "%%#" /quiet /norestart ) Echo Windows Update finished. pause Exit
This will work: Code: @Echo off set msu=*86.msu IF %PROCESSOR_ARCHITECTURE% == AMD64 set msu=*64.msu For %%# in (%msu%) Do ( Echo: Installing update: %%# Wusa "%%#" /quiet /norestart ) Echo Windows Update finished.