Is there a way to automate (silently) install a VLC player update?
A year or so ago I rolled out VLC player across our network (500 pc’s). I choose to do this using a startup script (pushed by GPO).
The startup script was as below:
if exist " C:\Program Files\VideoLAN\VLC" goto end
ECHO VLC has been installed >> "C:\Program Files\VLC_has_been_installed.txt"
As you can see, this checks for the existence of a text file, if it exists the script terminates. If the text file does not exist, VLC silently installs.
This method has been working perfectly for a year, but now it is time to update. I understand that I can use a script to execute "C:\Program Files\VideoLAN\VLC\uninstall.exe" /S and uninstall silently, but how can I automate this process, but avoid the script getting itself in a loop everytime the PC restarts?
Is there a way in the script that I can say, ‘uninstall IF vlc 1.0.5 exists and install vlc 1.1.0, but DON’T uninstall vlc 1.1.0’
Are am I going to have to execute the uninstall command manually?