Here is the link.
http://msdn2.microsoft.com/en-us/library/ms978557.aspx
I get an error in the following section. ConfigurationNamespace should
be Configuration. But I also have problem with TypeName.
Thanks for in advance. I really need to make this work.
Olgu.
[XmlRoot("downloader",
Namespace=ApplicationUpdaterSettings.Configuration Namespace )]
public sealed class UNCDownloaderProviderData : DownloadProviderData
{
public UNCDownloaderProviderData()
{
}
public override string TypeName
{
get { return typeof( UNCDownloader ).AssemblyQualifiedName; }
set {}
}
ServerManifest looks like
<application applicationId="{215E1AD7-9ABA-432f-A952-24BABA556850}">
<entryPoint file="ExeName.exe" />
<location>C:\Client</location>
</application>
<files base="C:\Server"
hashComparison="Yes" hashProvider="MD5CryptoServiceProvider" >
<file hash="a5aqUnlIyzu670VDJW8lSwXJdJM=" source="ExeName.exe"
transient="No" />
<file hash="0UOXi/+fNtBihjD9Vv8WS+1NBCo="
source="ExeName.Forms.dll" transient="No" />
</files>
<downloader name="UNCDownloader" />
<activation>
<tasks>
<task name="WaitForApplicationExitProcessor"
type="Microsoft.ApplicationBlocks.Updater.Activati onProcessors.WaitForApplicationExitProcessor,
Microsoft.ApplicationBlocks.Updater.ActivationProc essors"/>
<task name="ApplicationDeployProcessor"
type="Microsoft.ApplicationBlocks.Updater.Activati onProcessors.ApplicationDeployProcessor,
Microsoft.ApplicationBlocks.Updater.ActivationProc essors"/>
</tasks>
</activation>
</manifest>
......
App.config
.....
<UpdaterConfiguration defaultDownloader="UNCDownloader"
applicationId="{215E1AD7-9ABA-432f-A952-24BABA556850}"
manifestUri="C:\Server\ServerManifest.xml">
<downloaders>
<add name="UNCDownloader"
type="ExeName.Forms.ManualUpdater.UNCDownloader,
ExeName.Forms.ManualUpdater"
/>
</downloaders>
.....
Chan Ming Man wrote:
Give a full msdn link.
chanmm
<ol********@yahoo.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...
Hi,
I am using the Updater Application Block Version 2.
I am trying to follow the instructions at
http://msdn.microsoft.com/library/de...ary/en-us/dnpa...
to build a custom downloader (UNC )
So far I was not successfull.
Firstly,
As it was stated I added
<includeTypes>
<includeType name="UNCDownloader"
type="MyApp.Downloaders.UNCDownloaderProviderData, MyApp" />
</includeTypesto app.config. But I am getting "Unrecognized element
IncludeTypes" error.
Secondly,
it says section
<downloaders>
<downloader xsi:type="UNCDownloaderProviderData"
name="UNCDownloader">
</downloader>
</downloaders>
should be added to Updaterconfiguration.config file. However I do not
have this file. Should I create it?
ServerManifest.xml
Looks like
...
<files base="\\MyApp\Server"
hashComparison="Yes" hashProvider="MD5CryptoServiceProvider" >
<file hash="a5aqUnlIyzu670VDJW8lSwXJdJM=" source="MyApp.exe"
transient="No" />
<file hash="0UOXi/+fNtBihjD9Vv8WS+1NBCo="
source="MyApp.Forms.dll" transient="No" />
</files>
<downloader name="UNCDownloader" />
...
App.Config file
...
<UpdaterConfiguration defaultDownloader="UNCDownloader"
applicationId="{345E1AD7-9ABA-432f-A458-24BABA556908}"
manifestUri="http://localhost/Servermanifest.xml">
<includeTypes>
<includeType name="UNCDownloader"
type="MyApp.UNCDownloaderProviderData, MyApp" />
</includeTypes>
</UpdaterConfiguration>
...
Has anybody had any idea what it can be wrong here...
Thanks in advance,
Olgu.