|
@@ -7,10 +7,9 @@
|
7
|
7
|
End Sub
|
8
|
8
|
Private Sub SYS_UPDATE_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
|
9
|
9
|
MyModule1.進度條() : Delay(30000)
|
10
|
|
- MyModule1.進度條() : Dim Str As String = Application.StartupPath
|
11
|
|
- If IO.File.Exists(Str + "\DotNetBarcode.dll") Then : Else
|
12
|
|
- MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & "DotNetBarcode.dll", Str + "\DotNetBarcode.dll")
|
13
|
|
- End If
|
|
10
|
+ MyModule1.進度條() : Dim Str As String = Application.StartupPath : Dim FS As String
|
|
11
|
+ FS = "DotNetBarcode.dll" : If IO.File.Exists(Str & "\" & FS) Then : Else : MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & FS, Str & "\" & FS) : End If
|
|
12
|
+ FS = "YSLOGO2.png" : If IO.File.Exists(Str & "\" & FS) Then : Else : MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & FS, Str & "\" & FS) : End If
|
14
|
13
|
MyModule1.進度條() : If IO.File.Exists(Str + "\YS-ERP-SYS.exe") Then : IO.File.Delete(Str + "\YS-ERP-SYS.exe") : End If
|
15
|
14
|
MyModule1.進度條() : My.Computer.Network.DownloadFile(Target & "YS-ERP-SYS.exe", Str + "\YS-ERP-SYS.exe")
|
16
|
15
|
MyModule1.進度條() : Shell(Str + "\YS-ERP-SYS.exe", vbNormalFocus)
|