Bountyhunter50 Posted December 22, 2013 Share Posted December 22, 2013 Hey guys. So I'm creating an auto-run USB Drive for the guys in my shop to further help automate the update/re-image process. I'm a little rusty on my VB. Here's my code in it's current state: x=MsgBox("Do not be afraid, vital software update is in progress. Please direct any errors to your System Administrator",0, "Derek's Auto Update") Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "C:\updates\Firefox Setup Stub 25.0.1" d=MsgBox("Is the Firefox installation Complete",4, "I have a question for you.") if d=vbYes then e=MsgBox("Please download the installer from http://mozilla.org",,"I'm sorry...") else f=MsgBox("Excellent. Please click OK for the next installer.",, "Success!") End If PAUSE Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.Run "C:\updates\lenovographics.exe" PAUSE a=MsgBox("Was there any errors during this update?",4, "I have a question for you.") if a=vbYes then b=MsgBox("Please send a detailed message to firstname.lastname@example.org of any errors that occured",, "I'm sorry...") else c=MsgBox("Excellent. Thank you for your participation and cooperation.",, "Success!") End If My ultimate goal is this: I'm not sure of the syntax to do this, but I'd like to keep the installer files on the USB drive rather than having to copy them over to the C:\ drive then run the installer. I'm wanting to have this all fully automated. Once the user completes an installation (for example: Firefox), have a MsgBox pop up "did it complete?" If yes = open method z = next installer. The idea to have it all a nested IF/THEN. Any advice is always appreciated. Thanks gang! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.