Re: Problem with CmdAfter - WeOnlyDo Discussion board

Re: Problem with CmdAfter (General questions)

by Paco, Thursday, July 10, 2008, 18:35 (5979 days ago) @ wodDamir

Win XP SP2. Visual Basic 6. wodAppUpdate 1.3.2.87

Config file (update.txt):
#Signature

[Global]
CmdAfter=c:setup.exe

[File]
Name=Setup.exe
Path=c:setup.exe
URL=\neo2programasAplicaciones EMSAEmsa LogonSetup.exe
MD5=08666352C08ECE0B1C828A13E2412833

A simple form with a button and a wodAppUpdate control
Form code:

Private Sub Command1_Click()
With wodAppUpdate1
.Blocking = False
.ForceRestart = True
.Visible = False
.URL = \neo2programasAplicaciones EMSAEmsa LogonUPDATE.TXT
.Check
End With
End Sub

Private Sub wodAppUpdate1_CheckDone(ByVal NewFiles As Long, ByVal ErrorCode As Long, ByVal ErrorText As String)
If ErrorCode = 0 Then
wodAppUpdate1.Download
Else
MsgBox ErrorText, , check error
End If
End Sub

Private Sub wodAppUpdate1_DownloadDone(ByVal ErrorCode As Long, ByVal ErrorText As String)
If ErrorCode = 0 Then
wodAppUpdate1.Update
Else
MsgBox ErrorText, , download error
End If
End Sub

Private Sub wodAppUpdate1_UpdateDone(ByVal ErrorCode As Long, ByVal ErrorText As String)
If ErrorCode = 0 Then
MsgBox update ok
Else
MsgBox ErrorText, , update error
End If
End Sub

I get error 3006 (Signature on retrieved document is invalid.) in checkDone event.

If i use a mapped link, the code runs ok, but:
1) The first time (without a local setup.exe file) the file setup.exe is downloaded, VB6 close, setup.exe runs and VB6 start ok (note I use wodAppUpdate service).
2) I run the code again, click the button and nothing occurs (local and remote setup.exe are the same, so this is correct)
3) If I click the button again (without stop vb), the local setup.exe is deleted and the download start again...

Thanks (and sorry for my english...)


Complete thread: