Download a .msi from my WPF app

sarita54

Member
Joined
May 31, 2022
Messages
10
Programming Experience
Beginner
Hi , I have 2 questions :
1 . where i have to put my .msi file in order that users can download it ?
2 . To test , i have put it in my drive , and use this:
System.IO.Directory.CreateDirectory("C:\\temp");
WebClient client = new WebClient();
client.DownloadFile(new Uri("MyDriveLink"), "C:\\temp\\Update.msi");
but when i try do execute it , I received " This installation package could not be opened "

Could you help me please?
 
1. You would put it either on a file share if distributing within a LAN, or on a web site if distributing over the internet or corporate network that doesn't use file shares.

2. I doubt that it is the download operation which is giving you that error. How exactly are you trying to "execute" the installation?
 
1. You would put it either on a file share if distributing within a LAN, or on a web site if distributing over the internet or corporate network that doesn't use file shares.

2. I doubt that it is the download operation which is giving you that error. How exactly are you trying to "execute" the installation?
I have found the problem , i tried to execute the installer before the end of the downloading , thank you
 
Back
Top Bottom