r/vbscript • u/bruhdoge69 • Nov 05 '21
VBS - Update program scripts like in Windows Update
Hello. I would like to know how to make script that will find updates for program and suggest you to update program's scripts if user has agreed to update.
How that works: for example, user haves program with special variable that is equals to program name (value is 1.0.0). User started program, and program detected update 1.0.1 is available, looking at cloud variable "Newest Version" and at spec-variable "Program Version", and yes/no dialog do user wants to update. If pressed no, continue to program with version 1.0.0, if yes then rewrite program scripts. How can i do that?
1
u/hackoofr Nov 05 '21 edited Nov 05 '21
What program do you want to check for update? Just give an example!
Here is an old vbscript that check version of firefox but i don't know if this is still working or not ?
Determine installed firefox versions via vbs?
2
u/hackoofr Nov 06 '21
I found a french vbscript that can help you to build your own script, and i tried to translate it for you in english.
Self-Auto-Update_Vbscript.vbs
Github Project
1
u/Mordac85 Nov 06 '21
The problem with a solution like this is the backend admin work to keep up with the various app updates, packaging for scripted deployment, etc. but you could stage them centrally from a local share and maybe run an inventory script to report stragglers and problems. How many users are we talking and what apps? I mean it can be done but it's more complex than you think. How do you handle folks that never want to update? How do you handle update failures? How do you roll back if the update causes unexpected issues?