Is it possible to use shared directory as download sites

Hi

I would like to find out if we could use shared folder instead of http or ftp as the download site path. For example \\server\\folder.

Thanks,Chi

hi, sorry to resurrect this thread, just one quick question.

im deploying something like this. so to make it basic and test it first, im downloading the updates from C:/update folder of my laptop

I saw this http://wyday.com/wybuild/help/offline-updates.php and followed it step by step,

your last instruction, you said that i should "append" the wyupdate.exe with something like this, wyUpdate.exe -server="file:///C:/path/to/wyserver.wys" -updatepath="file:///C:/path/to".

What i did in my work is wyupdate.exe -server="file:///C:/update/wyserver.wys" -updatepath="file:///C:/update"

it returned an Access Denied error, when i read one of the thread, you said to paste the file:///C:/update to a browser, which i did and i showed all my files (therefore, i have access)..

so i modified the updatepath to "file:///C:/update/%file%/, but it returned the error:

Error trying to save file: Error downloading "file:///C:/update/%file%": Could not find file 'C:\update\%file%'

Am i missing something? thanks for helping

hi, sorry to resurrect this thread, just one quick question.

No problem.

Am i missing something? thanks for helping

Yes. If you're using -updatepath then you need to use the corresponding %updatepath% variable in your download sites. For example, a download site like this:

%updatepath%/%file%

And if you pass in an url to wyUpdate:

wyUpdate.exe -updatepath="http://example.com/updates"

wyUpdate will replace the %updatepath% variable with you passed in url to form: http://example.com/updates/%file%

thanks for the prompt reply.

I tried your instructions and put %updatepath%/%file% in my Download Sites section, re-built WyUpdate and tried it, with the same error message as before.

any other instructions please?

Mr. Sam,

which one is correct?

"file:///C:/update"

or

"file:///C:/update/%file%"

thanks

It sounds like you're passing the %file% in the -updatepath commandline argument. Don't do that. The %file% variable should only appear in the downloads site list in wyBuild. After you've fixed that, if you're still getting an error then copy and paste your error exactly as it's shown and I'll help you from there.

which one is correct?

"file:///C:/update"

The first one.

Followed your instructions,

%file% only in download section

"file:///C:/update" only

Error trying to save file: Error downloading "file:///C:/update": Access to the path 'C:\update' is denied.

I copied and pasted C:\update in my browser (chrome) and i was able to see all files inside said folder.

hi everyone, would appreciate a reply if any of you has a suggestion. thanks

%file% only in download section

There's your problem. It should be %updatepath%/%file%. After fixing that rebuild wyUpdate (include the latest client.wyc with your app) and rebuild your updates. Then re-upload the updates to your server.

hi sam,

what i meant was i removed the suffix and just put %file%, making it %updatepath%/%file%.

i already rebuilt it, ran my application and it still displays the same error.

Double click the client.wyc file and make sure the download site is correct. Double click the *.wys file on the server and make sure the download sites are correct.

Error trying to save file: Error downloading "file:///C:/update": Access to the path 'C:\update' is denied.

The error shouldn't say that. That is, it shouldn't be trying to download a folder. It should be trying to download a specific file (e.g. wyserver.wys). This means you're typing something wrong in one of the download sites.

@servo327: I had exactly the same problem.

Are you using both options "-server" and "-updatepath" when starting "wyUpdate.exe"?I did so and got the same access denied error as you.

Then I removed the "-server" option and just kept the "-updatepath" option, and now it seems to work.

@Sam: Can you confirm that only "-updatepath" has to be used, but not the "-server" option?

Best regards,Markus

-updatepath replaces the variable %updatepath%. The "-server" , on the other hand, means that wyUpdate will download a specific *.wys file you specify.

Thanks a lot for the clarification, Sam.

Best regards,Markus