This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- FlexNet Connect
- :
- FlexNet Connect Forum
- :
- Re: Change Download Location
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 04, 2006
02:38 PM
Change Download Location
I use following codes to check updates and download available updates. It seems working fine to me. However I would like to change download target location before I start downloading, i.e before UpdateInstance.Download(True). I cann't find a property to do this. Is there any property I can set and let me download the files to my designated folder?
Thanks for your help
fei_css
Dim UpdateAgent As DWUpdateServiceLib.Agent = New DWUpdateServiceLib.Agent()
Dim UpdateCollection As DWUpdateServiceLib.Updates
Dim pszProductCode As String = "{094E330A-45A1-4277-9DE8-8EE79E698FC8}"
If UpdateAgent.IsConnectedEx(pszProductCode) Then
UpdateCollection = UpdateAgent.EnumUpdates(pszProductCode)
UpdateInstance = UpdateCollection.Item(UpdateCollection.Count)
UpdateInstance.Download(True)
End If
Thanks for your help
fei_css
Dim UpdateAgent As DWUpdateServiceLib.Agent = New DWUpdateServiceLib.Agent()
Dim UpdateCollection As DWUpdateServiceLib.Updates
Dim pszProductCode As String = "{094E330A-45A1-4277-9DE8-8EE79E698FC8}"
If UpdateAgent.IsConnectedEx(pszProductCode) Then
UpdateCollection = UpdateAgent.EnumUpdates(pszProductCode)
UpdateInstance = UpdateCollection.Item(UpdateCollection.Count)
UpdateInstance.Download(True)
End If
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 05, 2006
10:54 AM
You can do this before Download:
UpdateInstance.SetValue(DownloadURL, "C:\\downloadedApps")
If this method is not available, then you need to download the latest version of the client files (agent.exe).
UpdateInstance.SetValue(DownloadURL, "C:\\downloadedApps")
If this method is not available, then you need to download the latest version of the client files (agent.exe).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 05, 2006
11:05 AM
Ritesh,
First thanks for helping me on this problem.
But does it work? I keep getting 404 error. Also, I use this to see the previous value of DownloadURL:
Debug.WriteLine(UpdateInstance.QueryValue(DWUpdateServiceLib.UpdateProperty.DownloadUrl).ToString)
It tells me the URL that holds my updates. So based on your suggestion, if I change this property, how come update agent knows where available update is? I am really confusing....
fei_css
First thanks for helping me on this problem.
But does it work? I keep getting 404 error. Also, I use this to see the previous value of DownloadURL:
Debug.WriteLine(UpdateInstance.QueryValue(DWUpdateServiceLib.UpdateProperty.DownloadUrl).ToString)
It tells me the URL that holds my updates. So based on your suggestion, if I change this property, how come update agent knows where available update is? I am really confusing....
fei_css
Ritesh wrote:
You can do this before Download:
UpdateInstance.SetValue(DownloadURL, "C:\\downloadedApps")
If this method is not available, then you need to download the latest version of the client files (agent.exe).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 05, 2006
12:30 PM
On the Publisher's web site, when you created the update, you specified the location of the update (step 2).
The agent retrieves this information when you call EnumUpdates.
Before calling the Download method, you can call the SetValue method to set a different location of the update (DownloadUrl property). The agent will use that for the location of where to download from.
My example I posted earlier is a bit incorrect. It should be like
UpdateInstance.SetValue(DownloadUrl, "http://www.mycompany.com/myupdate.exe")
The agent retrieves this information when you call EnumUpdates.
Before calling the Download method, you can call the SetValue method to set a different location of the update (DownloadUrl property). The agent will use that for the location of where to download from.
My example I posted earlier is a bit incorrect. It should be like
UpdateInstance.SetValue(DownloadUrl, "http://www.mycompany.com/myupdate.exe")
fei_css wrote:
Ritesh,
First thanks for helping me on this problem.
But does it work? I keep getting 404 error. Also, I use this to see the previous value of DownloadURL:
Debug.WriteLine(UpdateInstance.QueryValue(DWUpdateServiceLib.UpdateProperty.DownloadUrl).ToString)
It tells me the URL that holds my updates. So based on your suggestion, if I change this property, how come update agent knows where available update is? I am really confusing....
fei_css
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 05, 2006
12:35 PM
fei_css,
Out of curiosity, when you said change the "download location" you were referring to the _source_ from which you'd be downloading your executable, right? If so, then yes, Ritesh is spot-on. :cool:
If you're looking to just change the _target_ download location, then I would need to ask why. The agent would download your executable and run it, so where it downloads is irrelevant.
Regards,
Kelly
Out of curiosity, when you said change the "download location" you were referring to the _source_ from which you'd be downloading your executable, right? If so, then yes, Ritesh is spot-on. :cool:
If you're looking to just change the _target_ download location, then I would need to ask why. The agent would download your executable and run it, so where it downloads is irrelevant.
Regards,
Kelly
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 05, 2006
02:43 PM
Kelly,
Thanks for pointing out that. I mislead Ritesh. I hope it is clear to everybody right now. 😉
In my project, I don't want to install msi right away until some thing happens. But I don't want to hold downloading either. I really want to download update or patch as soon as it is availabe in the server. I will control when to install it. Is this possible?
Thanks for any suggestions.
fei_css
Thanks for pointing out that. I mislead Ritesh. I hope it is clear to everybody right now. 😉
In my project, I don't want to install msi right away until some thing happens. But I don't want to hold downloading either. I really want to download update or patch as soon as it is availabe in the server. I will control when to install it. Is this possible?
Thanks for any suggestions.
fei_css