I am trying to programatically change the location where updates are located on a local network, but cannot get it to work. We will have an application running on serveral customer networks where updates will be stored in various directory paths. As such we are providing an update location setting and want to pass that value to the Automatic updater. I have attached the three methods we have tried and the returned errors. Any help getting this working is greatly appreciated. If Not AutomaticUpdater.ClosingForInstall Then 'strServer = "-updatepath = 'file://C:/TEMP/TestUpdate'" strServer = "-Server = 'file://C:/TEMP/TestUpdate'" AutomaticUpdater.wyUpdateCommandline = strServer AutomaticUpdater.ForceCheckForUpdate()End If
Error trying to save file: Error downloading "file://C:/TEMP/TestUpdate": Access to the path 'C:\TEMP\TestUpdate' is denied.
If Not AutomaticUpdater.ClosingForInstall Then strServer = "-updatepath = 'file://C:/TEMP/TestUpdate'" 'strServer = "-Server = 'file://C:/TEMP/TestUpdate'" AutomaticUpdater.wyUpdateCommandline = strServer AutomaticUpdater.ForceCheckForUpdate()End If
Error trying to save file: Error downloading "file://R:\Main\Databases\ABC\EFGHI\Updates\wyserver.wys": Could not find file 'R:\Main\Databases\ABC\EFGHI\Updates\wyserver.wys'.
If Not AutomaticUpdater.ClosingForInstall Then strServer = "-Server = 'file://C:/TEMP/TestUpdate'" strServer = strServer & " -updatepath = 'file://C:/TEMP/TestUpdate'" AutomaticUpdater.wyUpdateCommandline = strServer AutomaticUpdater.ForceCheckForUpdate() End If
Error trying to save file: Error downloading "file://C:/TEMP/TestUpdate": Access to the path 'C:\TEMP\TestUpdate' is denied.