Specifying download location

Topics: Updater Application Block
Apr 7, 2005 at 8:14 PM
originally posted by: kentcb


Is it possible to programmatically specify where files are to be downloaded prior to activation? I'd like to avoid any security issues by downloading them to a temp directory in the current user's 'My Documents' directory.

The config only lets you specify a hard-coded path. It therefore assumes that all users will have access to this path.

Apr 8, 2005 at 12:48 AM
originally posted by: AnuragRastogi

Hi ,

yes you can do that by using the Execute method of FileCopyProcessor.

The Execute method ensures the destination folder exists and then copies each required file to the target folder.

You can specify the destination location according to your requirement.

Hope you will find it usefull.

for more info visit following URL--http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/uabch02.asp
Apr 8, 2005 at 1:57 AM
originally posted by: kentcb

No, using a processor programmatically doesn't help because the files are already downloaded at that point. What I need to do is specify where to download the files to at runtime.

The only way I have found is a custom downloader, possibly with a static property.
May 20, 2005 at 2:44 AM
originally posted by: Duke_Nsk


You can use a property "Location" of manifest.


foreach(Manifest manifest in manifests)
manifest.Application.Location = "c:/yourdir";
manifest.Apply = true;

After that all files linked to manifest will be downloaded into dir "c:/yourdir".