Re: Problem with CmdAfter (General questions)
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:
- Problem with CmdAfter - Paco, 2008-07-09, 10:34
- Re: Problem with CmdAfter - woddrazen, 2008-07-09, 12:29
- Re: Problem with CmdAfter - Paco, 2008-07-09, 13:13
- Re: Problem with CmdAfter - wodgrof, 2008-07-10, 02:00
- Re: Problem with CmdAfter - Paco, 2008-07-10, 17:09
- Re: Problem with CmdAfter - wodDamir, 2008-07-10, 18:13
- Re: Problem with CmdAfter - wodDamir, 2008-07-10, 18:32
- Re: Problem with CmdAfter - Paco, 2008-07-10, 18:35
- Re: Problem with CmdAfter - wodDamir, 2008-07-10, 19:27
- Re: Problem with CmdAfter - Paco, 2008-07-11, 10:11
- Re: Problem with CmdAfter - wodDamir, 2008-07-11, 11:07
- Re: Problem with CmdAfter - Paco, 2008-07-11, 12:47
- Re: Problem with CmdAfter - wodDamir, 2008-07-11, 13:14
- Re: Problem with CmdAfter - Paco, 2008-07-11, 13:36
- Re: Problem with CmdAfter - wodDamir, 2008-07-11, 13:57
- Re: Problem with CmdAfter - Paco, 2008-07-11, 13:59
- Re: Problem with CmdAfter - Paco, 2008-07-11, 14:13
- Re: Problem with CmdAfter - Paco, 2008-07-11, 13:59
- Re: Problem with CmdAfter - wodDamir, 2008-07-11, 13:57
- Re: Problem with CmdAfter - Paco, 2008-07-11, 13:36
- Re: Problem with CmdAfter - wodDamir, 2008-07-11, 13:14
- Re: Problem with CmdAfter - Paco, 2008-07-11, 12:47
- Re: Problem with CmdAfter - wodDamir, 2008-07-11, 11:07
- Re: Problem with CmdAfter - Paco, 2008-07-11, 10:11
- Re: Problem with CmdAfter - wodDamir, 2008-07-10, 19:27
- Re: Problem with CmdAfter - Paco, 2008-07-10, 18:35
- Re: Problem with CmdAfter - wodDamir, 2008-07-10, 18:32
- Re: Problem with CmdAfter - wodDamir, 2008-07-10, 18:13
- Re: Problem with CmdAfter - Paco, 2008-07-10, 17:09
- Re: Problem with CmdAfter - wodgrof, 2008-07-10, 02:00
- Re: Problem with CmdAfter - Paco, 2008-07-09, 13:13
- Re: Problem with CmdAfter - woddrazen, 2008-07-09, 12:29