andre72
asked on
Problem with UAC when downloading a exe using WebClient
Hi,
I'm using this to download a application (exe) from the web:
webClient = new WebClient();
webClient.DownloadFileComp leted += new AsyncCompletedEventHandler (Completed );
webClient.DownloadProgress Changed += new DownloadProgressChangedEve ntHandler( ProgressCh anged);
webClient.DownloadFileAsyn c(new Uri(downloadpath), file);
This works fine if UAC is disabled and also when UAC is enabled as long my application is not installed to the "Program Files".
If UAC is enabled and my app try to download an exe using the WebClient fiddler doesn't show any action that I try to download anything (so no error message for sure).
In case I download a zip archive anything works fine ...
Is there a workaround to let the WebClient download an exe also when UAC is enabled and the downloading app is installed to the "Program Files"?
Thanks
Andre
I'm using this to download a application (exe) from the web:
webClient = new WebClient();
webClient.DownloadFileComp
webClient.DownloadProgress
webClient.DownloadFileAsyn
This works fine if UAC is disabled and also when UAC is enabled as long my application is not installed to the "Program Files".
If UAC is enabled and my app try to download an exe using the WebClient fiddler doesn't show any action that I try to download anything (so no error message for sure).
In case I download a zip archive anything works fine ...
Is there a workaround to let the WebClient download an exe also when UAC is enabled and the downloading app is installed to the "Program Files"?
Thanks
Andre
ASKER
And why is it possible to download a zip archive but not an exe?
try to adjust you virus realtime protection to permissive not aggressive.
try to adjust your ANTI virus software realtime protection to permissive not aggressive.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
-Rowan