Problem with CmdAfter (General questions)
wodAppUpdate version 1.3.1.86
Config file:
#Update file signature
[Global]
CmdAfter=c:setup.exe
[File]
Name=Setup.exe
Path=c:setup.exe
URL=file://I:My AppsSETUP.exe
MD5=0866635.....
After Update, the file Setup.exe is copied correctly in c: but does not run.
Any ideas?
Thanks
Re: Problem with CmdAfter
Hi Paco,
I duplicated your problem. I will now forward it to our developers to see if they can done same in debug mode.
You should receive response from them during a day.
Regards,
Drazen
Re: Problem with CmdAfter
More info:
- If I set Visible = False, I get ErrorCode = 1400, ErrorText = Unrecognized Error. in the CheckDone event.
- The control always delete the file c:setup.exe (in the checkdone event the file has already been erased) so it always download it
Thanks
Re: Problem with CmdAfter
Paco,
Can you try setting ForceRestart property to true? That should help with CmdAfter property.
As for the error you were receiving when Visible is set to false, the issue is fixed. Please request a new version of the component from our website.
Regards,
Grof
Re: Problem with CmdAfter
CmdAfter and Visible problems solved, but:
- I get Signature invalid error if config file URL is a UNC link (\serverappupdate.txt). If I use a mapped link (I:appupdate.txt) it is ok.
- The component is deleting my local setup.exe file after call check method, so it is always downloading it
Thanks!
Paco,
Can you try setting ForceRestart property to true? That should help with CmdAfter property.
As for the error you were receiving when Visible is set to false, the issue is fixed. Please request a new version of the component from our website.
Regards,
Grof
Re: Problem with CmdAfter
Paco,
Are you sure about the Signature Invalid error? What version are you using? Also, what OS is this happening on?
As for the second problem, I can't duplicate this. Local file doesn't get deleted on Check. Is there any chance you could write us a simple sample which we could run on our side in order to duplicate the same bahaviour?
If so, you can send it to techsupport@weonlydo.com
Regards,
Damba
Re: Problem with CmdAfter
Paco,
Regarding the Signature Invalid . Can you please try using Check method and supplying it with something like this:
file://\\192.168.0.1\Network Path\configFile.txt
Ofcourse, replace the above IP with your local one. This does work on my side.
Hope this helps.
Regards,
Damba
Re: Problem with CmdAfter
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...)
Re: Problem with CmdAfter
Paco,
Did you receive my last response about the network paths?
Basically, you should use paths like this: file://\\192.168.0.1\Your_Share\config.txt
As for file being deleted each time, can you please add CloseApp Event to your application and put an End statemens in it?
Like this:
[code]Private Sub wodAppUpdate1_CloseApp()
End
End Sub[/code]
Did that help?
Regards,
Damba
Re: Problem with CmdAfter
Signature problem solved using paths like file://\\server\...
As for file being deleted each time, adding CloseApp event does not work. The problem seems to be do a download method call when there are not newfiles. If I modify the CheckDone event adding:
...
If NewFiles > 0 Then wodAppUpdate1.Download
...
Setup.exe file is not deleted never!
An issue more:
I want the setup.exe file be copied to application directory, not to root. How must I set the config file? I try
[Global]
CmdAfter= APPDIR \setup.exe
[File]
Name=Setup.exe
Path= APPDIR \setup.exe
...
file is downloaded but is not copied to my application directory and so, the setup is not run.
Thanks!
Paco,
Did you receive my last response about the network paths?
Basically, you should use paths like this: file://\\192.168.0.1\Your_Share\config.txt
As for file being deleted each time, can you please add CloseApp Event to your application and put an End statemens in it?
Like this:
[code]Private Sub wodAppUpdate1_CloseApp()
End
End Sub[/code]Did that help?
Regards,
Damba
Re: Problem with CmdAfter
Paco,
Actually, You should set path in your config file to APPDIR , instead to APPDIR Setup.exe , since this will try to download it to YourAPPDirSetup.exeSetup.exe , and since most probably folder Setup.exe doesn't exist it fails.
You can check that by checking wodAppUpdate1.Files(0).Path property in CheckDone event.
Another thing you will have to probably modify is [Global] section of config file to look similiar to this:
[code][Global]
CmdLine= APP
CmdAfter=Setup.exe[/code]
These settings set the CommandLine to Application directory, so that simple call to file will execute it.
Can you try that?
Regards,
Damba
Re: Problem with CmdAfter
Config file:
[Global]
CmdLine= APP
CmdAfter=setup.exe
[File]
Name=Setup.exe
Path= APPDIR
URL=file://\\server\apps\Setup.exe
MD5=08666352C08ECE0B1C828A13E2412833
Setup.exe is copied to appdir and runs ok, but if already exists a setup.exe file (of another application) in the temp (...\Local Configuration\temp) directory, wodAppUpdateUpd.exe launch this setup not mine!!
2 more questions:
- If my user is not an administrator (so using the wod service for update), what account is used to run setup.exe? I need setup.exe run with administrative privileges
- It seems that the component does not detect a change of the MD5 of setup.exe. If I replace local setup.exe by a old setup I get 0 NewFiles in the CheckDone event. Only if I delete the file it is downloaded again.
Thanks!
Paco,
Actually, You should set path in your config file to APPDIR , instead to APPDIR Setup.exe , since this will try to download it to YourAPPDirSetup.exeSetup.exe , and since most probably folder Setup.exe doesn't exist it fails.
You can check that by checking wodAppUpdate1.Files(0).Path property in CheckDone event.
Another thing you will have to probably modify is [Global] section of config file to look similiar to this:
[code][Global]
CmdLine= APP
CmdAfter=Setup.exe[/code]These settings set the CommandLine to Application directory, so that simple call to file will execute it.
Can you try that?
Regards,
Damba
Re: Problem with CmdAfter
Paco,
How exactly did you check? Can you go to Task Manager, and check properties from where the Setup utility is ran?
Also, do you use PrevDetected Event? Can you please call update method from there if a previous update is found.
Also, the Setup will be ran with Admin privileges when specified with CmdAfter property.
Hope this helped.
regards,
Damba
Re: Problem with CmdAfter
I use ProcessExplorer from Sysinternals to check it
PrevDetected is not fired
Thanks!
Paco,
How exactly did you check? Can you go to Task Manager, and check properties from where the Setup utility is ran?
Also, do you use PrevDetected Event? Can you please call update method from there if a previous update is found.
Also, the Setup will be ran with Admin privileges when specified with CmdAfter property.
Hope this helped.
regards,
Damba
Re: Problem with CmdAfter
Paco,
I can't seem to duplicate this. Can you change APP in CmdLine to APPDIR . If this doesn't work, can you please prepare some sample for us to duplicate on our side?
Regards,
Damba
Re: Problem with CmdAfter
I have sent an image of the check to techsupport( at )weonlydo( point )com
Re: Problem with CmdAfter
... and a sample
Thanks!