Re: Problem with CmdAfter - WeOnlyDo Discussion board

Re: Problem with CmdAfter (General questions)

by Paco, Friday, July 11, 2008, 12:47 (5979 days ago) @ wodDamir

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: