You can have multiple update servers so the sites download locally.
How would I package silverlight as an MSI?Īs for the script, I certainly don't want to deploy a script with an administrative password in plain text.
I'm running multiple site locations, so from a bandwidth perspective, it doesn't make sense for all the sites to download windows updates from the server. 'Replace the string yourpassword~ below with OShell.Run "runas /user:administrator ""\\SERVER\VOLUME\PATHTOEXECUTABLE.EXE""" Set oShell= Wscript.CreateObject("WScript.Shell") 'Not responsible for any problems arising from use of the script
'Your antivirus program may need to be set to allow scripts. 'to this script file can then be put on the student Desktop. 'folder with the executable program file for PA. 'This script allows limited accounts to use PrintArtist (PA) Save this, run this, send out your patch, and then delete it after as the password is stored in plaintext. The password in the quotes below needs to have the ~ after it or it wont work. Packaging as an MSI and sending out via GPO will work.įailing that, and since I used to be in your shoes many many moons ago, here you go.
ie: If you don't have it, get it running. "%CD%\%version%\%deploypath%\install.exe" /qu REM if the operating system is a 32-bit edition of windows IF EXIST "%silverlightpath%\%version%" GOTO end IF EXIST "%silverlightpath%\8.0" GOTO uninstall IF EXIST "%silverlightpath%\9.0" GOTO uninstall IF EXIST "%silverlightpath%\1.0" GOTO uninstall SET silverlightpath=%ProgramFiles%\microsoft silverlight REM add new line for each silverlight version you wish to uninstall REM change this when deploying a new version REM this is the current version of silverlight REM this is the path for the x86/圆4 version of silverlight In group policy under "software installation", add the 32-bit and 64-bit edition MSI installer packages.ĭone! The next time that you shutdown/restart, the uninstall-silverlight.bat script will run, and at startup, the new version of silverlight will be installed.
Upload the the installation files for the 32-bit edition in the "silverlight" subfolder and the files for the 64-bit edition in the "silverlight_圆4" subfolder. Then, create two subfolders-one named "silverlight" and the other "silverlight_圆4". Upload all the resulting silverlight installation files in //server/share/silverlight/5.0 (or whatever version you're working with). It should be located at //server/share/silverlight In Group policy, include this script as a shutdown script. The uninstall-silverlight.bat script runs silverlight's "install.exe /qu" silent installer.
Since the new version won't install on top of the old version, it will need to be uninstalled first. Msiexec /a silverlight.msi /p silverlight.msp /qb You will be prompted to extract the installer files and MSI to a folder.Įxtract the silverlight.msp file from the silverlight.7z file.įrom the command line (and for each edition of silverlight), run: To download the 圆4 version of silverlight, use internet explorer. To downlaod the x86 version of silverlight, use chrome (or a 32-bit O/S).Īfter downloading each EXE file, go to the command line and run: The silverlight installation files are located here:ģ2-bit edition: //server/share/silverlight/5.0/silverlightĦ4-bit edition: //server/share/silverlight/5.0/silverlight_圆4 server/share/silverlight/uninstall-silverlight.bat After some tinkering, I found a method/procedure that seemed to work reliably (without needing to invest time in a whole new process or expose account passwords).