Re: Problem with CmdAfter (General questions)
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
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