Yep, that's exactly it.
-server="http://example.com/yourdiffserver.wys"
In my app, the server address will change depending the customer. I see that I can runwyupdate.exe -server="http://example.com/server.wys" but I want to use the .net control. How do I set the AutomaticUpdater Property wyUpdateCommandLine to use a different server -- is just -server="..." ?
ThanksMark
Yep, that's exactly it.
-server="http://example.com/yourdiffserver.wys"
Thanks for the quick reply. I need both the server AND the update site to be the same and based upon whatever URL I pass to it. Our application runs in a browser and for the most part in an intranet. What I wanted to be able to do is after the initial install of a .net com interop dll is be able to call the wyUpdate with a URL that I pass in.
So I would just call in vbscript:
<OBJECT ID=ctest style="display:none" CLASSID="CLSID:79EC1317-8762-455d-B2C5-824134B76670"></OBJECT>
ctest.CheckForUpdates <%=Request.ServerVariables("SERVER_NAME")%>/updates_or_something_like_this
The CheckForUpdates would set wyUpdateCommandline to the server and update URL and then call ForceCheckForUpdate
Well I downloaded the wyUpdater source and just to test -- I created my download site in wyBuild as http://%site%/ibidsql/updates/%file%
I know this is probably not the best way -- but I couldn't think of another name I added a -site option to the commandline so I could call wyUpdate -site localhost I just modified the Load routine in ServerFile.Load.cs to pass the updateSite and changed the case 0x03 to do a replace of %site% with updateSite
It seemed to fly
So I just added it to wyUpdateCommandlline as -site=localhost and that worked too
I noticed that it calls off to wyday for updating or something. Will my change get overwritten somehow by that?
Well, if you have different servers and each server references different update files it might be easier just to build a separate "client.wyc" file. The Client.wyc file contains the server file location, and the server file contains the location to the update files.
Well I downloaded the wyUpdater source and just to test -- I created my download site in wyBuild as http://%site%/ibidsql/updates/%file%
I know this is probably not the best way -- but I couldn't think of another name I added a -site option to the commandline so I could call wyUpdate -site localhost I just modified the Load routine in ServerFile.Load.cs to pass the updateSite and changed the case 0x03 to do a replace of %site% with updateSite
It seemed to fly
So I just added it to wyUpdateCommandlline as -site=localhost and that worked too
I noticed that it calls off to wyday for updating or something. Will my change get overwritten somehow by that?
Yes, wyUpdate has a self-update algorithm - read this topic learn how to host your own version of wyUpdate.