The JRiver installer has a \Silent switch, but I'm not sure if the self-extractor passed the command line to the installer.
It does, and thank you for that. It's /silent by the way.
I made a better code here for automation install and upgrade on several machines (tested and working):
Option Explicit
Dim strMainProgram
Dim objFSO, objFolder, objShell, objFile
Dim strDirectory, strFile
strDirectory = "d:\temp2"
strFile = "\MachineName.txt"
strMainProgram = "\\Machine\sharedFolder\directory\setup.exe /silent"
' ---- Create the Object
Set objFSO = CreateObject("Scripting.FileSystemObject")
set objShell=CreateObject("Wscript.Shell")
' ---- Check that the strDirectory folder exists
If objFSO.FolderExists(strDirectory) Then
Set objFolder = objFSO.GetFolder(strDirectory)
Else
' ---- Create strDirectory
Set objFolder = objFSO.CreateFolder(strDirectory)
End If
' ---- Check if file exists
If objFSO.FileExists(strDirectory & strFile) Then
Set objFolder = objFSO.GetFolder(strDirectory)
Else
' ---- If not, create file
Set objFile = objFSO.CreateTextFile(strDirectory & strFile)
' Run app
objShell.Run(strMainProgram)
End If
WScript.Quit
What you have to do initially is:
1. Make a .vbs file, copy the above code into the file and save.
2. Replace directory on line 6 who will point to the directory the text files form each computer is saved. Easiest to have them together with the MC12 setup file.
3. Replace directory on line 8 with the place you have put your J River MC 12 setup file.
4. Copy the vbs script to each of your computers.
5. Edit the vbs file and replace strFilename value with the right computer name (should be different on each computer if you want to be able to control individual upgrades).
6. Make a scheduled task that runs the script for example each half hour.
What you have to do each upgrade:
1. Download and rename the setup file to f.eks. setup.exe (as written in the script)
2. Delete the MachinName.txt files representing the machines you wich to upgrade.
If the .txt files are there, MC will not be upgraded each time. But they HAVE to be removed the one time you want to upgrade.
This script does NOT handle spaces in directories or file names well! If you need it you have to edit the script.