You can easily install the MSU file silently without reboot with the following command line:
wusa.exe Windows6.1-KB123456-x86.msu /quiet /norestart
To Uninstall it Silently you need to follow this simple procedure:
1) Run this command:
expand c:\temp\Windows6.0-KB123456-x86.msu –F:Windows6.0-KB123456-x86.xml c:\temp
2) This will create an XML file in temp folder as per the name above.
Edit this xml in notepad.
3)Find the assemblyidentity tag. Then, note the values of the following attributes:
- The name attribute
- The publickeytoken attribute
- The processArchitecture attribute
- The version attribute
start /w pkgmgr /up:name~publickeytoken~processArchitecture~~version
Note: The variables above need to be replaced by the vaules you have copied in step 3.
7 comments:
For uninstall:
wusa.exe /uninstall Windows6.1-KB123456-x86.msu /quiet /norestart
this does not work for all .msu
If it works for you.. Good.
Here's my reply to the first 2 comments.
Instead of using this:
wusa /uninstall Windows6.1-KB123456-x86.msu /quiet /norestart
Try using the /uninstall parameter with /kb -parameter aswell, works like a charm, example below:
wusa /uninstall /kb:123456/quiet /norestart
Absolute filename could have -x86 or -x64 at the end, leave all those away. (aswell as .msu ofcourse)
Lately had a couple situations where uninstallation of .msu -files was necessary and unintallation has worked great so far.
Ville
Can be install/uninstall Remote Server Administration Tools for Windows 8.1 silent using powershell ?
Ideal world.
Programmatically save the download package to a local computer or share
Detect appropriate for your computer's architecture: Windows8.1-KB2693643-x64.msu or Windows8.1-KB2693643-x86.msu
Install programmatically silent Windows8.1-KB2693643-x64.msu or Windows8.1-KB2693643-x86.msu
Activate feature programmatically using Powershell Active Directory Module for Windows PowerShell
Can be install/uninstall Remote Server Administration Tools for Windows 8.1 silent using powershell ?
Ideal world.
Programmatically save the download package to a local computer or share
Detect appropriate for your computer's architecture: Windows8.1-KB2693643-x64.msu or Windows8.1-KB2693643-x86.msu
Install programmatically silent Windows8.1-KB2693643-x64.msu or Windows8.1-KB2693643-x86.msu
Activate feature programmatically using Powershell Active Directory Module for Windows PowerShell
/restart restarted for me. so be warned.
Yeah using /restart has a habit of restarting (ie doing that that means). If you want to avoid restarting you would want to use /norestart as shown above.
Post a Comment