Here is the sub, I edited the command line per the quotes you mentioned. Using the watch I verified the value of variable strServer is:
"-server=""file:///R:/pda/Updates/wyserver.wys"" -updatepath=""file:///R:/pda/Updates"""
The server command is correctly redirecting and we get no errors whe the app is up to date, but as soon as we add an update we get the error below the sub I included. It appears the -updatepath value is not being passed.
Private Sub AutomaticUpdater_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AutomaticUpdater.Click, mnuCheckForUpdates.Click Dim strUpdate As String, strServer As String
On Error Resume Next
If Not AutomaticUpdater.ClosingForInstall Then AutomaticUpdater.Visible = True If gstrUpdateServer = "" Then AutomaticUpdater.Visible = False MsgBox("No update server specified.") Exit Sub End If If gstrUpdatePath <> "" Then strServer = "-server=""""" & gstrUpdateServer & """"" -updatepath=" & """""" & gstrUpdatePath & """""" Else strServer = "-server=""""" & gstrUpdateServer & """""" End If
AutomaticUpdater.wyUpdateCommandline = strServer AutomaticUpdater.ForceCheckForUpdate() End If End Sub
Error trying to save file: Error downloading "file:///C:/Temp/uas-m.1.0.3.7.to.1.0.3.8.wyu": Could not find file 'C:\Temp\uas-m.1.0.3.7.to.1.0.3.8.wyu'.