Variables in the Path keys of the [File] section - WeOnlyDo Discussion board

Variables in the Path keys of the [File] section (General questions)

by Rik Arpino, Thursday, March 13, 2008, 10:50 (6099 days ago)

Since my application can be installed anywhere, is there a variable which represents where the application is currently running from?

What happens if I dont provide a 'Path' key - where does wodAppUpdate expect to locate the file in question?

I have files in subdirectories off the main installation directory which need updating using wodAppUpdate.

Any Ideas?


Rik

Re: Variables in the Path keys of the [File] sec

by woddrazen, Thursday, March 13, 2008, 11:51 (6099 days ago) @ Rik Arpino

Hi Rik,


wodAppUpdate will try to update file in same folder where your executable is. Probably this is installation folder.

You can try to add in configuration file APPDIR \subfolder_name if you want to update file in sub folder.

Let us know how it goes.


Regards,
Drazen

Re: Variables in the Path keys of the [File] sec

by Rik Arpino, Thursday, March 13, 2008, 11:55 (6099 days ago) @ woddrazen

Made a space to play and here are some answers to my own questions!!

If no path is provided, the file will be located in the working directory of the application running wodAppUpdate, which makes sense.

Although the manual states that paths cannot be relative, my tests seem to indicate that this is fine e.g. Path=testapp.exe - even directory is created if absent.

APPDIR variable does something a little weird - it creates a directory called the same as the file and puts the file in it.

Hope this helps someone,


Rik

Re: Variables in the Path keys of the [File] sec

by Rik Arpino, Thursday, March 13, 2008, 11:57 (6099 days ago) @ Rik Arpino

Thanks Drazen, placed order a few minutes ago.

APPDIR seems to work differently on my system - is it supposed to be the current working directory?

Posts must have crossed each other.... :)


Rik

Re: Variables in the Path keys of the [File] sec

by woddrazen, Thursday, March 13, 2008, 11:59 (6099 days ago) @ Rik Arpino

Rik,


Yes you are in right. APPDIR will provide working directory.


Drazen