N
nzpcmad
I have a C# .NET application that automatically updates software. It
downloads an update if available, gets the version numbers of the
downloaded and current files, displays these and if the user is happy,
deletes the current file and copies the downloaded one.
I get the version number of the current file via:
Version assOldVer = System.Reflection.Assembly.LoadFrom(applicationFileName).GetName().Version;
However, when I try and delete via
File.Delete (applicationFileName);
I get an error. It seems that the files is in use?
I can't find any "Close" method for the Reflection method.
Any ideas?
Many thanks
downloads an update if available, gets the version numbers of the
downloaded and current files, displays these and if the user is happy,
deletes the current file and copies the downloaded one.
I get the version number of the current file via:
Version assOldVer = System.Reflection.Assembly.LoadFrom(applicationFileName).GetName().Version;
However, when I try and delete via
File.Delete (applicationFileName);
I get an error. It seems that the files is in use?
I can't find any "Close" method for the Reflection method.
Any ideas?
Many thanks