Groups | Blog | Home
all groups > dotnet clr > april 2005 >

dotnet clr : AutoUpdate WinformApp (AppDomain.ShadowCopyFiles default setting)


Stefan G.
4/9/2005 4:15:01 AM
hi,

we've to develop an self-and-on-the-fly updating winform-app and are
considering to count on the CLRs shadow copy features.

can we assume, that shadow copying is enabled by default (it seems to be on
our development- and some test-pcs)?

is there any possibility to config shadow-copying for the current appdomain?

or is it nescessary to implement a "starter"-app, which creates an appdomain
and explicitly sets ShadowCopyFiles=true?

thanks in advance,
v-jetan NO[at]SPAM online.microsoft.com (
4/11/2005 8:00:51 AM
Hi stefan,

Thanks for your post!!

Based on my understanding, you want to implement a dynamic updating
application, which leverage the shadow copy function of appdomain.

Normally, we use AppDomainSetup.ShadowCopyFiles property to config the
appdomain setting. If you view AppDomainSetup.ShadowCopyFiles property MSDN
you will see that: This property cannot be changed after the AppDomain has
finished its first bind.

So I think we should create a starter application to config dynamic
updating function of our application. This technology is described in the
below good article by Eric Gunnerson:
"AppDomains and Dynamic Loading"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/htm
l/csharp05162002.asp

Below is a little FAQ about AppDomain shadow copy:
http://blogs.msdn.com/junfeng/archive/2004/02/09/69919.aspx

Hope this helps

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
v-jetan NO[at]SPAM online.microsoft.com (
4/13/2005 12:00:00 AM
Hi stefan,

Is the information I introduced helpful? Is your problem resolved? Please
feel free to tell me, thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button