Since SilverLight 1.0 has been released I thought it best if I deployed this to all the machines I manage. Naturally it was quite early after the release that I tried to do this and Microsoft hadn’t exactly been helpful with how to do it. So I worked it out 🙂 Not that hard as usual.
Here’s what you do:
1. Get the .exe [link is for version 1.0.20816.0]
2. Unpack the .exe with the command: “Silverlight 1.0.exe” /x and put the files in an empty folder, eg. c:tempsilverlight
The files you’ve unpacked will include an .msi and an .msp – we need both of those as the .msi seems to do nothing much more than put the prog in Add/Remove Progs.
4. Now create your package in SMS, or modify your script, and use the following command from within a .cmd script file:
msiexec /qn /norestart /i “%~dp0silverlight.msi” /update “%~dp0silverlight.msp” ALLUSERS=2 (the %~dp0 command here is to put the path in to allow the update part of the command to work, as msiexec doesn’t seem to like /update usage when you don’t put the path to the file in)
5. Change the settings for the package so it runs from a drive letter and runs whether or not a user is logged in. You need a drive letter because you’re running a .cmd and these rarely work properly when run from a unc path.
That will install SilverLight 1.0 for all users of the computer silently and without rebooting the machines. It might need a reboot if IE is in use when the install starts so best to stop that too. It’ll shove its plug-in into Firefox if it’s installed as well which is handy.
One thing of note is that like Flash, SilverLight will try to install updates automatically. We probably don’t want that (I certainly don’t) and fortunately there’s a reg key to stop this happening… I made a group policy template for this one so it was set automatically.
Updated on 2007-12-06…
Since doing all this Microsoft did release a needlessly long document on how to do all this, all they really needed to say was: the quiet install option is… “/q” OK, whatever. Here’s their document: http://download.microsoft.com/download/7/8/d/78da8ec9-8801-42e5-89e5-3809386f1316/Silverlight%20Deployment%20Guide.doc