FWSUpdates for WPKG on iPasserelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
595 B

Set objShell = CreateObject("Wscript.Shell")
Set fsObject = CreateObject("Scripting.FileSystemObject")
objShell.Run """" & objShell.ExpandEnvironmentStrings("%SYSTEMDRIVE%") & "\FWSUpdates\bin\on_shutdown.bat" & """", 0, True
If fsObject.FileExists(objShell.ExpandEnvironmentStrings("%SYSTEMDRIVE%") & "\FWSUpdates\offline_upgrade.bat") Then
objShell.Run """" & objShell.ExpandEnvironmentStrings("%SYSTEMDRIVE%") & "\FWSUpdates\offline_upgrade.bat" & """", 0, True
fsObject.DeleteFile(objShell.ExpandEnvironmentStrings("%SYSTEMDRIVE%") & "\FWSUpdates\offline_upgrade.bat")
End If