Dynamic download location
Hi again, I'm trying to find a solution that allows for the download location of the software to be unknown until setup is run. Essentially we copy the setup.exe to the client site, and then it is run from there. Because it's copied to the client site before being run, we cannot control the location it will be copied to and run from. Are there any suggestions on handling this situation? Just to make it clearer setup.exe is copied to location x:\location It's run from there, installing on some users' computer The Update.exe in place at c:\users\someone\appdata\myapp needs to know to look back at x:\location for further updates, but we don't know x:\location address until we copy setup.exe there the first time. Thanks Martin
Do you mean that the setup's path ('x:\location') is also the location where your updates (and 'RELEASES' file) will be located? So you need to keep track of the initial setup path to pass to the UpdateManager?
The Update.exe in place at c:\users\someone\appdata\myapp needs to know to look back at x:\location for further updates, but we don't know x:\location address until we copy setup.exe there the first time.
This isn't true in the normal case
engdata - yes, but how? Paul, the location of setup.exe is on a client's network over which we have no control. Hence we don't know what location will be used ahead of time. We also can't rely on any native proxy caching from the internet, because it simply might not exist..
I'd be very interested to hear how others have managed to do this. We have the same issue: currently, we ship a smart client desktop app to many of our own clients' servers. They configure the server with an IP address or DNS entry to allow their users to download and update the desktop app. That is done via a custom install powershell script which executes mage.exe, updating the installation source of the ClickOnce app. We have no control over what they name the server, or the addresses they use. Perhaps a similar option to customise the setup.exe via a command line, so that when it calls Update.exe on installation it can provide the eventual update source?